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. Put your input in a file and print the output. A sample of the output is shown below. The rubric is attached. Name of your store: Subject Text 1 Text2 Text3 Total Biology $***.** $***.** $***.** $***.** Chemistry $***.** $***.** $***.** $***.** English $***.** $***.** $***.** $***.** Computer $***.** $***.** $***.** $***.** Mathematics $***.** $***.** $***.** $***.** Total $***.** $***.** $***.** $***.** The input must be from a file and the answers must be displayed as shown, Please, test it before submit, thanks!
Explanation / Answer
I have your answer. Please rate! void main(){ char Subject[5][20]; float cost[5] = {0.0}; for(int i=0;i