Your assignment is to create the solution for the following interacti.docx - Your assignment is to create the solution for the following interactive

Your assignment is to create the solution for the following interacti.docx

  • No School
  • AA 1
  • 5

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

Image of page 1

Subscribe to view the full document.

Your assignment is to create the solution for the following interactive program. Please read the program description carefully and use the suggestions below. Although your program will receive input from the keyboard, your final photo on bglinux will get input from a file through a special command. Name the program file: prog2.cpp. Program Design: 1. Define a struct called Customer that contains members: struct Customer int id; // id string name; // Name string zip; // ZIP code double balance; // Account balance string lastPay; // Date of last payment 2. Your main function should do the following: a. Declare an array of 30 structures to hold the data. b. Call a function called menu to get the valid menu choice. The function has no parameter list but will return a number between 1 and 4. USE DATA VALIDATION in the function to make sure the value is valid. (see my sample _menu.cpp) // Display a menu. cout << "1. Enter new account information\n"; cout << "2. Change account information\n"; cout << "3. Display all account information\n"; cout << "4. Exit the program\n\n"; c. Create a loop that will execute until the user enters 4 to exit the program. Inside the loop your code should do the
Image of page 2
Image of page 3
  • Fall '19
  • Control flow, main function, Imperative programming, Carriage return

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes