Week 4 Add loops to validate data. Add a menu to your program that allows users to use the various f

This preview shows page 1 - 3 out of 3 pages.

Week 4: Add loops to validate data. Add amenu to your program that allows usersto use the various features or exit theprogramTo Purchase This Material Click below Link-add-loops-to-validate-data-add-a-menu-to-your-program-that-allows-users-to-use-the-various-features-or-exit-the-programFOR MORE CLASSES VISITWeek 4: Add loops to validate data. Add a menu to your program that allows users to use the various features or exit the program.Examples: In the programming tutorial, add a tutorial on working with loops. Then use loops tovalidate user input and display an error message if they enter data outside the valid range. Usea main loop to allow the user to keep selecting different tutorials until they decide to exit theprogram. #include <iostream>using namespace std;int main(){char ch='Y';
int gateNo; // integer for gate numbercout << "Movies with their time and gate..." <<endl;while( ch=='y' || ch=='Y'){

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture