Write programs for the following (VS17 Express)
- Consider the following program in whic...
![Computers and Technology](/tpl/images/cats/informatica.png)
Computers and Technology, 09.03.2020 19:05, Ezonthekid
Write programs for the following (VS17 Express)
- Consider the following program in which the statements are in the incorrect order. Rearrange the statements so that the program prompts the user to input the height and the radius of the base of a cylinder and outputs the volume and surface area of the cylinder. Format the output to two decimal places.
#include
#include
int main()
{}
double height;
cout<<"Volume of the cylinder ="
<
cout<<"Enter the height of the cylinder:";
cin>>radius;
cout<
return 0;
cout<<"Surface area:"
<<2*PI *radius* height + 2 * PI * pow(radius, 2.0)
<
cout<
cout<<"Enter the radius of the base of the cylinder:";
cin>>height;
cout<
#include
const double PI=3.14159;
- Three employees in a company are up for a special pay increase. You are given a file, say Ch3_Ex6Data. txt, with the following data:
Miller Andrew 65789.87 5
Green Sheila 75892.56 6
Sethi Amit 74900.50 6.1
Each input line consists of an employee’s last name, first name, current salary, and percent pay increase. For example, in the first input line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87, and the pay increase is 5%. Write a program that reads data from the specified file and stores the output in the file Ch3_Ex6Output. dat. For each employee, the data must :firstNamelastName updatedSalary. Format the output of decimal numbers to two decimal places.
![answer](/tpl/images/cats/otvet.png)
Answers: 1
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 00:30, bargasdevon123
To insert a column without using commands in any tabs, a user can -click and then click insert column.
Answers: 3
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 13:30, mads000
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
Do you know the correct answer?
Questions in other subjects:
![Konu](/tpl/images/cats/biologiya.png)
Biology, 18.06.2021 08:00
![Konu](/tpl/images/cats/User.png)
SAT, 18.06.2021 08:00
![Konu](/tpl/images/cats/obshestvoznanie.png)
Social Studies, 18.06.2021 08:00
![Konu](/tpl/images/cats/ap.png)
Advanced Placement (AP), 18.06.2021 08:00
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 18.06.2021 08:00
![Konu](/tpl/images/cats/informatica.png)
Computers and Technology, 18.06.2021 08:00
![Konu](/tpl/images/cats/mkx.png)
Arts, 18.06.2021 08:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 18.06.2021 08:00