Write the #define processor directive and declarations for a program that has a constant macro for PI
Question:
Write the #define processor directive and declarations for a program that has a constant macro for PI (3.14159) and variables radius, area, and circuit declared as double, variable num_circ as an int, and variable circ_name as a char.
Write a program that asks the user to enter the radius of a circle and then computes and displays the circle’s area. Use the formula
Area = PI * Radius * Radius
where PI is the constant macro 3.14159.
Write a program that stores the values ‘A’, ‘B’, 19, and -0.42E7 in separate memory cells that you have declared. Use an assignment statement to store the first value but get the other three values as input data from the user. Display all the values.
Continue your work in Temperature Conversion Program from E2 but now you have to ask the user for input and you have to display the converted temperature in Celsius.
Write a program that calculates taxi fare at a rate of ₱39.50 per mile. Your program should interact with the user in this manner:
TAXI FARE CALCULATOR
Enter beginning odometer reading=> 78602.5
Enter ending odometer reading=> 78622.7
You traveled a distance of 20.2 miles. At ₱39.50 per mile, your fare is $797.90.