required to write a program that prompts the user to enter the radius of circle
as an input and display the circle’s diameter, circumference and area. Use the
constant value 3.14159 for л. Perform
each of these calculations inside the printf
statements and use the conversion specifier %f.
(a)Write a pseudo-code to solve this problem.
(b)Write a full program using C programming language to
solve this problem.
Write a C program to read in a
collection of exam scores ranging from 0 to 100 using sentinel-based while loop. Then, it should count and
display the number of outstanding scores (90 to 100), the number of
satisfactory scores (60 to 89), and the number of unsatisfactory scores (0 to
59). You must also include the following requirements in the program:
the average score at the end of the program.
each score is valid (in the range 0 to 100). If invalid score is entered, you
must prompt with a suitable message and user needs to re-enter again the score.