I need help finishing this program. Most of it is pretty much in place (i hope).
ID: 3641123 • Letter: I
Question
I need help finishing this program. Most of it is pretty much in place (i hope). I know there are some errors but i am in the middle of trying to fix them and i am just lost. Here is the entire assignment.Write a C++ program, which converts each Roman numeral number to Arabic form (an integer) and then
prints the result. Your program must contain the following features:
a. Code to convert the character read from the file into an uppercase letter. This is accomplished by utilizing
the header files cctype and cstdlib with the function call toupper. Example of usage:
char var =
Explanation / Answer
I personally think that you should use infile.fail intead of !infile, that could be one error. Also, why do you have exit(1106) instead of exit()? Also, is there only one line of code in the file? Why do you say if(romanDigit(Value))? I was always taught that a value returning function had to be called in a cout statement.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.