Question: Assembly Language Lab # 3 Base Conversions of Fractions Using C The main purpose of this lab is to provide an exercise in the ASCII

Assembly Language
Lab #3
Base Conversions of Fractions Using C
The main purpose of this lab is to provide an exercise in the ASCII code, null terminated strings in C and base converstion with non-decimal fractions. Write a C program to convert an input fraction of integers into the floating point of another base. This program should take input as four integers, the numerator, the denominator, the base, and the number of digits.
To do this you may use the statements:
)(10
in a loop. To print out the answer when the loop is finished a string representing the answer needs to be constructed as the loop executes.
char s[100];
Because the digits are calculated left to right, no reversal is needed.
It may then be printed out using printf (s); .
At the end of the string you must store a zero. This tells printf(); where to stop printing. Before that you should store an end of line character.
Demonstrate this program to me when you have it working.
 Assembly Language Lab #3 Base Conversions of Fractions Using C The

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!