Question: This laboratory work covers the following concepts in C++ programming language: usage of the iostream and iomanip libraries for the console input and output

This laboratory work covers the following concepts in ( mathrm{C}++ ) programming language: - usage of the iostream and io

This laboratory work covers the following concepts in C++ programming language: usage of the iostream and iomanip libraries for the console input and output structured programming skills (sequential, selective, and repetitive statements) Create a Win32 Console application and an empty C++ source file in Visual Studio IDE to be able to start typing programs. Task-1: Write a C++ program that: a. Asks user to specify five floating-point values, adds them, and then displays the result to the console screen, b. Asks user to specify five integers, finds the smallest one, and then displays the result to the console screen, c. Calculates the power of n raised by m, where n and m are user-specified values. Task-2: Write a menu-driven C++ program that performs the following according to user's choice: 1. Add 2. Subtract 3. Multiply 4. Quit The program should ask the user to choose an option between one and four, and then perform the desired calculation. For instance, if user specifies one, then the program requests from the user two values, calculates the summation of them, and finally displays the result obtained to the console screen. Hint: Use switch-case statements for the menu! Task-3: Rewrite the program written for Task-2 in which the user can enter symbols '+', and for quitting.

Step by Step Solution

3.58 Rating (166 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Lets tackle each task one by one in C Task 1 a Sum of Five FloatingPoint Values cpp include using namespace std int main float numbers5 float sum 00 c... View full answer

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 Computer Network Questions!