Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

#include #include #include #include using namespace std; // Function prototypes int menuOption(); void Challenge3(); void Challenge5(); void Challenge7(); void Challenge9(); void Challenge10(); void Challenge11(); void

#include #include #include #include using namespace std; // Function prototypes int menuOption(); void Challenge3(); void Challenge5(); void Challenge7(); void Challenge9(); void Challenge10(); void Challenge11(); void Challenge18(); void Challenge20(); void Challenge23(); void Challenge24(); int main() { do { switch (menuOption()) { case 0: exit(1); break; case 3: system("cls"); Challenge3(); break; case 5: system("cls"); Challenge5(); break; case 7: system("cls"); Challenge7(); break; case 9: system("cls"); Challenge9(); break; case 10: system("cls"); Challenge10(); break; case 11: system("cls"); Challenge11(); break; case 18: system("cls"); Challenge18(); break; case 20: system("cls"); Challenge20(); break; case 23: system("cls"); Challenge23(); break; case 24: system("cls"); Challenge24(); break; default: cout << "\t\tERROR - Invalid option. Please re-enter."; break; } cout << " "; system("pause"); } while (true); return EXIT_SUCCESS; } int menuOption() { system("cls"); cout << " \t\tChapter 6: Functions (page 372-380) by your name"; cout << " \t" + string(60, char(205)); cout << " \t\t 3. Winning Division "; cout << " \t\t 5. Falling Distance "; cout << " \t\t 7. Celsius Temperature Table "; cout << " \t\t 9. Present Value "; cout << " \t\t 10. Future Value "; cout << " \t\t 11. Lowest Score Drop "; cout << " \t\t 18. Paint Job Estimator "; cout << " \t\t 20. Stock Profit "; cout << " \t\t 23. Prime Number List "; cout << " \t\t 24. Rock, Paper, Scissors Game"; cout << " \t" + string(60, char(196)); cout << " \t\t 0. Quit"; cout << " \t" + string(60, char(205)); cout << " \t\t Option: "; int option; cin >> option; cin.clear(); cin.ignore(999, ' '); return option; } void Challenge3() { // You will implement } void Challenge5() { // You will implement } void Challenge7() { // You will implement } void Challenge9() { // You will implement } void Challenge10() { // You will implement } void Challenge11() { // You will implement } void Challenge18() { // You will implement } void Challenge20() { // You will implement } void Challenge23() { // You will implement } void Challenge24() { // You will implement }

Textbook: Starting Out with C++ from Control Structures to Objects

Chapter 6 Programing challenge.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Unity From Zero To Proficiency Beginner A Step By Step Guide To Coding Your First Game

Authors: Patrick Felicia

1st Edition

1091872023, 978-1091872028

More Books

Students also viewed these Programming questions