You work at the ECPI Bookstore, and you are asked by your supervisor to write a program for students to reserve their textbooks. Your supervisor needs help with the following:
- Tracking the number of books reserved per student and the cost of those books
- You can break the books into departments
- For example:
- CIS Books
- Math Books
- ** You can change the departments
- Be sure to have at least 2 departments, but you can add more
- Once you have included the departments, and the book prices:
- Calculate the total cost of books per department
- And then the total cost of the books
- Most students at ECPI do qualify for financial aid
- Be sure to calculate what percent of financial will cover the cost of books
- And then create a New Total, for what the student owes out of pocket
Instructions
Write a program and flowchart and include a snippet of your program running.
The program you write should include these components at a minimum. Remember though: Get creative and feel free to add different components that you feel are applicable in a grading program.
-
- You must have at least two different arrays – These are, in effect, parallel arrays:
- One for each dept of books
- For example: CIS Books; and Math Books
- ** Please note: The example image shown below includes 2 arrays
- The arrays are for CIS Books and Math Books; and the price for each book
- ** You can also add extra categories
- Such as English Books
- Or, you can include categories, such as stationary
-
- Remember to use a “for” loop for each array
- You should have Totals that calculates the totals of all textbook prices
- If you have 2 textbook categories, both should have their own price totals; and then also a total for all the books reserved
- Hints and Suggestions:
- You can set your own book prices – for example, see the prices in the example below
- You can set how many books for each section
- You can also write the program to ask the user for this input, but this is not required
- At the end, it prints out the totals for each section; the % paid by financial aid; and the new total the student must pay out of pocket