Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

There are numerous opportunities for error in any program, many times in places

ID: 3696372 • Letter: T

Question

There are numerous opportunities for error in any program, many times in places that seem too simple to require close attention. What do you think the following program is supposed to do? Create a new empty Visual C++ Console Application project Add a C source file (e.g., source.c) to the project Copy the code from Lab 1.1 into the source file. Try compiling the program. What were the results? What error messages did you receive? Fix the syntax errors in the program from Lab 1.1. What do you receive for output when you run the program? The program from Lab 1.3 has two logic errors. Fix them both and show the corrected program. the correct formulas for a sphere's volume V and a sphere's surface area A area: Sphere Volume

Explanation / Answer

1.1

This code is suppose to calculate Volume and Surface of Sphere.

1.2

1.3
Following are the syntax errors
   1. Statement missiing semicolon line no 6
   2. Comment is not closed so it will give error

1.4
double surface_area=4*pi*(radius*radius);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote