Question: find Objectives: Learn to analyze a computational problem and construct an algorithm to solve it Learn to use sequential statements to build a basic program

find
find Objectives: Learn to analyze a computational problem and construct an algorithm

Objectives: Learn to analyze a computational problem and construct an algorithm to solve it Learn to use sequential statements to build a basic program to implement the algorithm, using correct programming format Learn to use the scanf function to read and store values entered on the keyboard by the user, and the printf function used to display output results on the computer monitor Learn to convert math formulas into correct arithmetic expressions and use the pow function Learn to construct a test plan and provide appropriate documentation Description: For the following problem, assume that one of the early plans for a new campus building included a courtyard. The courtyard design was composed of one square shape surrounded with one or more semi-circles. The diameter of each semi-circle was the same size as each side of the square. Landscapers wanted a handy program that would calculate the total area of the courtyard based on the number of semicircles desired. The following drawing shows what the area would look like with a selection of 3 semi-circles: Your program should display a welcome message for the user when it starts. Define a separate function named greeting in addition to the moin function. This function is used to welcome the landscaper and explain that the program will compute the total area of the courtyard space. This function has no input parameters and does not return anything. Inputs: The user should be prompted to enter the side of the square (a double), the radius of the semi-circles it may not always be the same as the side of the square) and the number of semi-circles desired (an integer). Your program should define a constant for the value of . Processing: The program should compute the total area of the courtyard. Example Output: "The total area is 424.5 feet." (or whatever the computed number of feet turns out to be Testing Complete all parts of a Lab Report for your lab. Document your test plan. After you construct your program, test it using the same example values as used in the example solution, and at least one invalid value. Include screenshots of the output in your report. file as well as your Lab Report to To submit: Name your source code file "lastname_firstname_Labi.c". Upload your Piazza folder named Lab1 Scoring: Your grade for this assignment will be determined by five criteria: 11 Deewarnmoram comnile and run nedring the rect reci d ing to the instructions

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!