Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Rr8. 

 

Requirements
1. Create a C++ program to perform various math functions.
2. The C++ project will will named Menu with Math operations. Spell it exactly
as written.
3. Display a menu that lists of the 5 operation that can be chosen + option 6 that
exits the program.
4. The 5 math operations are:
a. Area of a circle.
b. Volume of a cone.
c. Calculate Distance / vector / magniture.
d. Pythagorean Theorem
e. Quadratic Formula.
5. After a math function is completed, the user can choose another math
operation.
6. Display numbers, in fron of the menu choices to make it easier for the user to
choose a math operation, or choose exit.
7. Check the users input to see if its valid.
8. After user chooses a valid option, ask user for the input so can perform the
specific math operation
9. Call the math function and pass the data.
10.Receive a result back from the function that was called.
11.The main will print out the results.
12.The main() and the five math functions will be in the same .cpp file.
13.The quadFormula () function will return 3 values. They will all be stored in a
STRUCT, just like was demonstrated in class.
Transcribed Image Text:Requirements 1. Create a C++ program to perform various math functions. 2. The C++ project will will named Menu with Math operations. Spell it exactly as written. 3. Display a menu that lists of the 5 operation that can be chosen + option 6 that exits the program. 4. The 5 math operations are: a. Area of a circle. b. Volume of a cone. c. Calculate Distance / vector / magniture. d. Pythagorean Theorem e. Quadratic Formula. 5. After a math function is completed, the user can choose another math operation. 6. Display numbers, in fron of the menu choices to make it easier for the user to choose a math operation, or choose exit. 7. Check the users input to see if its valid. 8. After user chooses a valid option, ask user for the input so can perform the specific math operation 9. Call the math function and pass the data. 10.Receive a result back from the function that was called. 11.The main will print out the results. 12.The main() and the five math functions will be in the same .cpp file. 13.The quadFormula () function will return 3 values. They will all be stored in a STRUCT, just like was demonstrated in class.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY