Question
You are running a book store. Your store contains books in 5 subjects and each subject contains 3 books. Write a program that will print
You are running a book store. Your store contains books in 5 subjects and each subject contains 3 books. Write a program that will print the subject of texts, cost of texts and total cost across and down. Also print the name and value of the cheapest text. In the last program you actually read and wrote the information 5 times, this time read and write it only once using a loop. Create a function to print your information. Pass 7 parameters to the function to print your information. Put your input in a file and print the output. A sample of the output is shown below.
Name of your store:
Subject Text 1 Text2 Text3 Total Chepest/amount
Biology $***.** $***.** $***.** $***.** Text #/$***.**
Chemistry $***.** $***.** $***.** $***.** Text #/$***.**
English $***.** $***.** $***.** $***.** Text #/$***.**
Computer $***.** $***.** $***.** $***.** Text #/$***.**
Mathematics $***.** $***.** $***.** $***.** Text #/$***.**
Total $***.** $***.** $***.** $***.** **** n/a ****
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started