Question: C-Language Programs . (5 Points). The roman number program above works correctly, provided the user enters valid roman digits followed by a newline at the

C-Language  C-Language Programs . (5 Points). The roman number program above works

Programs . (5 Points). The roman number program above works correctly, provided the user enters valid roman digits followed by a newline at the prompt. If the user enters an invalid roman digit (even spaces), the programs behaves somewhat reasonably (What does it do?), but we would like to make it better. r directory you will share my files using a symbolic link. To do this, first, copy the makefile from nee 60/Code lect/Roman to your Lab directory. Then run the command: make links We would like the program to be tolerent of white space (spaces and tabs, and still provide the result if all of the other characters are valid roman digits. o o If the user enters invalid characters, we would like the function to return 0 as a special value indicating an error instead of a partial result so far We can use 0 as a special value because there is no Roman number representation for o (the Romans didn't understand 0) so 0 would not be returned for normal input. The driver should print an error message when this occurs and let the user try entering another number. You may modify any of the files that you need to, but you will need to break the link and copy the file for those you want to change

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!