Question: Text Shape Media Comment ENGR 112: Introduction to Computing Lab 1 Find PART 2 (Lab) a. Write a program that calculates and prints the surface
Text Shape Media Comment ENGR 112: Introduction to Computing Lab 1 Find PART 2 (Lab) a. Write a program that calculates and prints the surface area of a cylinder given the radius (t) and height (h). The formula to calculate the area of the cylinder is: For the purposes of this problem the value of pi is 3.14159. Please ente the radius of the cylinder: 3 Please enter the height of the cylinder: 4 The area of the cylinder is 131.95 b. Your instructor would like to calculate the course grade of a student. Write a C++ program that asks the user to enter three marks (all out of 100) that represent quizzes, midterm, and final exam grades. Quizzes account for 20%, project 15%, midterm 25%, and the final exam for 40%. A sample run of the program is (user input is indicated as bold): Grade Calculator Quiz grade: 100 Project grade: BO Midterm grade: 90 Final exam grade: 85 200 Course Grade 1 88.50
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
