Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
For Task 1 ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started