Question: Follow the following pseudo code to complete a C program: invoke a library file to be able to utilize functions to get data from the
Follow the following pseudo code to complete a C program:
invoke a library file to be able to utilize functions to get data from the keyboard and print data to the console
declare global constant called PI to store the value 3.14
declare a global variable called num3 and store in it 7.3
start of main() function (make sure that its signature shows that it will return an integer and that it doesn't require any parameters)
declare 3 float type variables, name them (num1, num2, result. There are local variables)
ask the user to enter a value for num1
ask the user to enter a value for num2
process result to store the sum of num1 and num2
print the result at 1 decimal precision
ask for another number and store in num1
repeat for num2
this time subtract num2 from num1 in the print function and set the precision to 1 decimal point
print the value stored in num3
make num3 equal result
print num3 and result
change result so that it's equal to 2 * PI * num3
print num3 at 2 decimal point precision.
end the function main by returning a 0 to the operating system
Part 2
Write a program that asks the user to enter a name, a date of birth, and a balance amount.
Repeat this request several times
print the data to the screen with an appropriate number of tabs to line them up, make sure the date format is mm/dd/yy and that the balance has a $ and at 2 decimal points.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
