0

Please help me

Write a menu driven C++ program using several functions. Upon execution of the program, the program displays a menu as shown below and the user is prompted to make a selection from the menu. The menu options are: Help   SubIntegers    MulIFloats  Quit               Once the menu item is selected and validated, the program will proceed with processing that selection as explained below. If the user selects h or H, the program uses function help to display a help screen and tells the user how the program operates and what is needed from the user and how the program is terminated.

29th Jun 2020, 4:25 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
14 Antworten
+ 3
show us your approach
29th Jun 2020, 4:51 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
As I told you: show us your Try and we will help you to improve it! All things you need can be find in the tutorial... -switch case: https://www.sololearn.com/learn/CPlusPlus/1618/
29th Jun 2020, 6:14 PM
Alexander Thiem
Alexander Thiem - avatar
+ 1
Looks really good what you did so far👍. I suggest you to only link your code so that it is more easy for us to check that it does and to test our ideas to complete it...
1st Jul 2020, 11:26 AM
Alexander Thiem
Alexander Thiem - avatar
0
Please am a novice in cpp I have no idea about it So please help me
29th Jun 2020, 6:12 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
Ok thanks
29th Jun 2020, 8:04 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
your welcome
30th Jun 2020, 7:16 AM
Alexander Thiem
Alexander Thiem - avatar
0
#include "windows.h" #include <iostream> #include<string> using namespace std; void showChoices(); void help(void); void subIntegers(void); int getInteger(void); void MulFloats(void); float getFloat(void); int main() { char choice; showChoices(); do { cin >> choice; switch (choice) { case 'H': case 'h': help(); break; case 'S': case 's': subIntegers(); system("pause"); showChoices(); break; case 'M': case 'm': MulFloats(); system("pause"); showChoices(); break; case 'Q': case 'q': exit(EXIT_FAILURE); break; default: cout << "Invalid input" << endl; } }while (choice != 'q'||'Q'); return 0; } void showChoices() { cout << "MENU" << endl; cout << "1: Help " << endl;///Menu function cout << "2: SubIntegers" << endl; cout << "3: MulIFloats" << endl; cout << "4: Quit " << endl; cout << "Enter your choice :"; } void help(void)//help function { cout << "Help" << endl; cout << "selction of the menu below will help you do substraction or multiplication:"<<endl; s
1st Jul 2020, 10:42 AM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
Left with the rest please help me
1st Jul 2020, 10:42 AM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
Please how do I link it
1st Jul 2020, 3:56 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
Either: while writing: tap on the + in the left right corner, select insert code, switch to My code bits(instead of Hot today), tap on the code you want to share or: https://www.sololearn.com/Discuss/1093975/?ref=app
1st Jul 2020, 4:12 PM
Alexander Thiem
Alexander Thiem - avatar
0
Thanks
1st Jul 2020, 4:14 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
You are welcome.... so will you link the code?
1st Jul 2020, 4:16 PM
Alexander Thiem
Alexander Thiem - avatar
1st Jul 2020, 4:19 PM
Emmanuel Asamoah
Emmanuel Asamoah - avatar
0
1. your code seems to have an random end (line 116). Maybe you did copy something wrong 2. The code seems to look very good so far(if we ignore the ending). Only the other functions (subintegers.....) have to be implemented. To help you there I would need to know what they are supposed to do.
1st Jul 2020, 6:24 PM
Alexander Thiem
Alexander Thiem - avatar