This program challenge was given to me by my Professor for extra credit. He said it includes some programming that we haven't learned yet in our C++ class. Messed up... Ideally I would love if someone would do this for me, but we all know that's not happening. lol Anyways...could anybody offer an idea of what I would do/use? [COLOR="Green"]"Write a program that will convert Roman numerals to Arabic numbers or Arabic numbers to Roman numerals. Your program should prompt the user to select the type of conversion they would like to perform, Roman to Arabic or Arabic to Roman, …

Member Avatar
Member Avatar
+0 forum 14

Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for loop features. Note that in Go the **:=** is shorthand for assigning a type (by inference) and a value to a variable. A slice is like an array that can grow, and a map is a key indexed list. Go has only the for loop, but the syntax is very flexible and can accomplish all the usual loop duties.

Member Avatar
+2 forum 0

hi. so i need help in understanding this program. its a hindu arabic - roman numeral converter. i got it from some site. i cant seem to understand how the whole process goes. Const sMatrix As String = "I~V~X~L~C~D~M" Private Function toroman(ByVal sDecNum As String) As String Text1.Text = sDecNum If sDecNum <> "0" And sDecNum <> vbNullString Then If Len(sDecNum) > 3 Then text2.Text = String(Mid(sDecNum, 1, Len(sDecNum) - 3), "M") If Len(sDecNum) > 2 Then text2.Text = text2.Text & GiveLetters(Mid(sDecNum, Len(sDecNum) - 2, 1), 4) If Len(sDecNum) > 1 Then text2.Text = text2.Text & GiveLetters(Mid(sDecNum, Len(sDecNum) - 1, …

Member Avatar
Member Avatar
+0 forum 5

Roman numbers is a standard programming exercise, to give it a small twist, we input roman numeral, turn it to value and prepare minimal version of it using the substraction rule. Correctness of the input is not checked so Garbage in - Garbage out.

Member Avatar
+0 forum 0

Hi, I have been working on this program for a few days.. and I am so far gone I lost myself in my own program. I usually just start from scratch when I get frustrated but there is too much time invested into my heap to give up so I thought I would come here. My assignment is as follows: Write a program that converts a number entered in Roman Numerals to decimal. Needs to consist of a class called romanType and an object that does the following: Store the number as a Roman numeral Convert and store the number …

Member Avatar
Member Avatar
+0 forum 6

the code takes each character and stores where and how many times a roman numeral appears and the assess the integer. this is my first code im posting. anything to make the code better is most welcome. roman numeral refers to M=1000 D=500 C=100 L=50 X=10 V=5 I=1 and uses the standard method of assessing roman numeral.

Member Avatar
Member Avatar
+0 forum 3

The End.