Question
C program to read a paragraph from a text file which contains roman numerals of ASCII values and print them as an equivalent character. You
C program to read a paragraph from a text file which contains roman numerals of ASCII values and print them as an equivalent character.
You can create any dummy file and fill it up given roman numeral in the same format as given.
Example: The roman numerals LXXII CV XXXII XXXIII would be converted to Hi ! as H = LXXII , i = CV , space = XXXII and ! = XXXIII .
THINGS TO CONSIDER:
*Reading paragraph from the file is important so don't miss it.
*It is a beginner assignment so don't create your own functions and use only
*It shouldn't give an error when compiling as gcc -Wall -pedantic -ansi program_name.c
*The program should be able to print a human-readable message from the below ROMAN numerals in the same format as they are: (Don't forget to copy the below numerals in a file which your program is reading)
XXXIV LXV XXXII CXV CIV CV CXII XXXII CV CX XXXII CXII CXI CXIV CXVI XXXII CV CXV XXXII CXV XCVII CII CI XLIV XCVIII CXVII CXVI XXXII CXVI CIV XCVII CXVI XXXII CV CXV XXXII CX CXI CXVI XXXII CXIX CIV XCVII CXVI XXXII CXV CIV CV CXII CXV XXXII XCVII CXIV CI XXXII CII CXI CXIV XLVI LXXXIII XCVII CV CVIII XXXII CXI CXVII CXVI XXXII CXVI CXI XXXII CXV CI XCVII XXXII XCVII CX C XXXII C CXI XXXII CX CI CXIX XXXII CXVI CIV CV CX CIII CXV XLVI XXXIV XLV LXXI CXIV XCVII XCIX CI XXXII LXXII CXI CXII CXII CI CXIV
Roman numerals needed:
C = 100, L = 50, X = 10; V = 5; X = 1
Specials: XC = 90, XL = 40, IX = 9, IV = 4;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started