ok i have an assignement the assignment is to make a menu
with these selection
Write a program that displays a menu with the following choices to the user.
A - Find the largest # with a known quantity of numbers
B - Find the smallest # with an unknown quantity of numbers
C - Quit
Please enter your choice ___
If A is chosen, you should ask the user how many numbers he wants to enter. If he enters 5, you should read 5 numbers from him. You should then display the largest number he entered. Use a for loop to read these and display the largest.
If B is chosen, you should keep reading numbers no matter what until the user enters -99. Then you should display the smallest number he entered not counting the -99.
ok here is my code
#include <iostream>
using namespace std;
const int A_QUANTITY = 50; //amount of #s entered for choice A
const int B_SENTINAL = -99; //sentinal used to end choice B
int main()
{
bool again = true; //used to control main choice loop
int letter; //stores the choice made
int bigger; //stores current biggest #
int smaller; //stores current smallest #
int temp; //stores next number for comparison
int i; //controls the For loop
while (again)
{
//displays instructions for main options
cout << "What would you like to do?" << endl;
cout << "(enter the letter of your choice)" << endl;
cout << "A - Find the largest # with a known quantity of numbers" << endl;
cout << "B - Find the smallest # with an unknown quantity of numbers"<< endl;
cout << "C - End this program." << endl;
//choice
cin >> letter;
do (letter >= 'A' && letter <= 'C')
switch (letter)
{
case 'A':
cout << "Lets find the max numbers you entered " <<endl;
break;
case 'B':
cout << "Lets find the smallest numbers you entered" <<endl;
break;
case 'C':
cout << "We are all done" <<endl;
}// end of main
...i dont know what else i need as for the rest of the code casue i dont know where should i place and insert the rest of my code can someone point me to what else i need ?