Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions