Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago