Develop a Student Cafeteria Record System by using all concepts of c++ with the exception of using structures. Project Description Each student can open an account in the cafeteria. It has the following features: The system can hold data for 20 students. The student can deposit any amount in his/her account. The student can use the available amount in his/her account to buy lunches or snacks. Menu price list is as below: Item Cost in PKR Lunch 150 Snack 100 Drink 50 Each student account should have the following details stored: Roll no (Data type: int, format: BBRRRR, e.g. 201406) Account No (Data type: int) Balance (Data type: double) Student Name (Data type: char array) {Hint: Use 2D arrays for storing student first and last names: char Student_Name [20][30]} Functions to be Implemented The following functions should be implemented in your system. Decide for yourself the arguments and return type for each function.   Required Functions Functionality 1. Create_Account() Assign each student a unique account number. Get student Roll No and Name. Ask the user for the initial Deposit amount. 2. Display() Gives all details of a single Account. 3. Deposit_amount() Updates the Account Balance. 4. Purchase_Item() Following functionality must be implemented: ·         Displays menu of available items for student to choose ·         The student can select more than one item for purchase ·         Updates the account balance if item can be purchased with the available amount, else notifies if amount balance is not sufficient 5. Store_in_File () Writes data of the accounts in use into a file “Record_sys.txt”     Bonus Functions Implementing these functions will earn bonus marks 6. Display_Sorted() Sort the entire data on the basis of Roll No. and display it in an ascending order 7. Read_from_file()   At the beginning of your program update all the previously saved data from the file “Record_sys.txt”

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Develop a Student Cafeteria Record System by using all concepts of c++ with the exception of using structures.

Project Description

Each student can open an account in the cafeteria. It has the following features:

  • The system can hold data for 20 students.
  • The student can deposit any amount in his/her account.
  • The student can use the available amount in his/her account to buy lunches or snacks.
  • Menu price list is as below:

    Item

    Cost in PKR

    Lunch

    150

    Snack

    100

    Drink

    50

    • Each student account should have the following details stored:
    1. Roll no (Data type: int, format: BBRRRR, e.g. 201406)
    2. Account No (Data type: int)
    3. Balance (Data type: double)
    4. Student Name (Data type: char array)

    {Hint: Use 2D arrays for storing student first and last names: char Student_Name [20][30]}

    Functions to be Implemented

    The following functions should be implemented in your system. Decide for yourself the arguments and return type for each function.

     

    Required Functions

    Functionality

    1.

    Create_Account()

    Assign each student a unique account number.

    Get student Roll No and Name.

    Ask the user for the initial Deposit amount.

    2.

    Display()

    Gives all details of a single Account.

    3.

    Deposit_amount()

    Updates the Account Balance.

    4.

    Purchase_Item()

    Following functionality must be implemented:

    ·         Displays menu of available items for student to choose

    ·         The student can select more than one item for purchase

    ·         Updates the account balance if item can be purchased with the available amount, else notifies if amount balance is not sufficient

    5.

    Store_in_File ()

    Writes data of the accounts in use into a file “Record_sys.txt”


     

     

    Bonus Functions

    Implementing these functions will earn bonus marks

    6.

    Display_Sorted()

    Sort the entire data on the basis of Roll No. and display it in an ascending order

    7.

    Read_from_file()

     

    At the beginning of your program update all the previously saved data from the file “Record_sys.txt”

     

Expert Solution
steps

Step by step

Solved in 4 steps with 13 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY