

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions for cs 2073 lab 1 at utsa, where students are required to write a c program that reads the radius of a circle and calculates its diameter, circumference, and area. The document also covers input validation and hand-in requirements.
Typology: Lab Reports
1 / 2
This page cannot be seen from the preview
Don't miss anything!


All laboratories will be submitted electronically through WebCT. Zip up your entire project folder to submit as the source. (Right click on the laboratory folder and follow the SentTo link.)
Write a program that reads in the radius of a circle and prints the circle’s diameter, circumference, and area. Validate the input ranging from 1 to 100. Any other values should terminate the program. Use the constant value 3. for π. Perform each of these calculations inside the printf statement(s) and use the conversion specifier %f.
1
Compile and run your program until there are no errors.