Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

#include <iostream> int main() { int usersChoice = menu(); std::cout << userdCho

ID: 3625929 • Letter: #

Question

#include <iostream>

int main()
{
int usersChoice = menu();
std::cout << userdChoice << "You Choose ";

return 0;
} //end main

int menu(void);

{
//displays a menu and returns
//the integer value of the item
//selected by the user

std::cout << std::endl << "Choose From Freddy's Menu: ";
std::cout << std::endl << "1 - Dinner ";
std::cout << std::endl << "2 - Lunch ";
std::cout << std::endl << "3 - Breakfeast ";
std::cout << std::endl << "Enter a number:";


int choice = 0;
cin >> choice;


return 0;
} //end menu

Explanation / Answer

please rate - thanks

I think I highlighted all the lines I modified

#include <iostream>
int menu();
int main()
{
int usersChoice = menu();
std::cout << usersChoice << "You Choose ";

return 0;
} //end main

int menu(void)

{
//displays a menu and returns
//the integer value of the item
//selected by the user

std::cout << std::endl << "Choose From Freddy's Menu: ";
std::cout << std::endl << "1 - Dinner ";
std::cout << std::endl << "2 - Lunch ";
std::cout << std::endl << "3 - Breakfeast ";
std::cout << std::endl << "Enter a number:";


int choice = 0;
std::cin >> choice;


return 0;
} //end menu