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.
14 Respuestas
+ 3
show us your approach
+ 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/
+ 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...
0
Please am a novice in cpp
I have no idea about it
So please help me
0
Ok thanks
0
your welcome
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
0
Left with the rest please help me
0
Please how do I link it
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
0
Thanks
0
You are welcome....
so will you link the code?
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.