1 of 4 C++ Practice Activities (General math) The perimeter, approximate surface area, and approximate volume of an in-g

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1 of 4 C++ Practice Activities (General math) The perimeter, approximate surface area, and approximate volume of an in-g

Post by answerhappygod »

1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 1
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 1 (45.92 KiB) Viewed 54 times
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 2
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 2 (34.85 KiB) Viewed 54 times
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 3
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 3 (21.83 KiB) Viewed 54 times
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 4
1 Of 4 C Practice Activities General Math The Perimeter Approximate Surface Area And Approximate Volume Of An In G 4 (24.95 KiB) Viewed 54 times
1 of 4 C++ Practice Activities (General math) The perimeter, approximate surface area, and approximate volume of an in-ground pool are given by the following formulas: perimeter = 2(length + width) colume = length x width x aurrage depth underground surface area = 2(length + width Moverage depth + length x width Using these formulas as a basis, write a C++ program that accepts the length, width, and aver- age depth measurements, and then calculates the pool's perimeter, volume, and underground surface area. In writing your program, make these two calculations immediately after entering the input data: length x width and length + width. The results of these two calculations should be used as needed in the assignment statements for determining the perimeter, volume, and underground surface area without recalculating them for each equation. Verify your program's results by doing a hand calculation, using the following test data: length = 25 feet, width = 15 feet, and average depth = 5.5 feet. After verifying that your program is working, use it to complete the following chart: Length Width Depth Perimeter Volume Underground Surface Area 25 25 25 25 30 30 30 30 10 10 10 10 12 12 12 12 laululaulu 5.0 5.5 6.0 6.5 5.0 5.5 6.0 6.5 oulouloulolu

(Data processing) a. Write a C++ program to compute and display a person's weekly salary as determined by the following conditions: If the hours worked are less than or equal to 40, the person receives $12.00 per hour otherwise, the person receives $480.00 plus $17.00 for cach hour worked over 40 hours. The program should request the hours worked as input and display the salary as output (General math) The area of an ellipse (see Figure 3.5) is given by this formula: Area - na Using this formula, write a C++ program to calculate the area of an ellipse having a minor anis, 4of 2.5 inches and a major axis, b. of 6.4 inches Figure 3.5 The minor axis, a, and the major axis, b, of an ellipse A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a program that does the following: #Prompts the user to enter the total amount of milk produced in the morning . Outputs the number of milk cartons needed to hold milk. (Round your answer to the nearest integer.) Outputs the cost of producing milk. d. Outputs the profit for producing milk.

The following program has syntax errors. Correct them. On each successive line, assume that any preceding error has been corrected. #include <iostream> using namespace std; int main() int temp: string first; cout << "Enter first name: ; cin >> first cout << endl; cout << "Enter last name: ; cin >> last; cout << endl; cout << "Enter today's temperature: "; cin >> temperature; cout << endl; cout << first << " " << last << today's temperature is: "; << temperature << endl; return 0;

Consider the following C++ program in which the statements are in the incorrect order. Rearrange the statements so that it prompts the user to input the length and width of a rectangle and output the area and perimeter of the rectangle #include <iostream> int main() cout << "Enter the length: "; cin >> length; cout << endl; int length; area - length • width; return 0; int width: cin>> width; cout << "Enter the width: cout << endl; cout << "Area - « area << endl; cout << "Perimeter - " << perimeter << endl; int area; using namespace std; int perimeter;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply