The prices of children's books, novels and dictionaries sold in a stationery are determined as follows: Children's book: 5 TL each Novel: 0.1 TL per page for the first 200 pages, and an additional 0.05 TL for each page after 200 Dictionary: Pocket dictionaries 7.5 TL, large dictionaries 15 TL Develop the C program that calculates the price of the book (c, C, r, R, s or S) whose first letter is entered as capital or lowercase letters, by reading the required information for each book type from the keyboard and writing it on the screen. If the type of book or dictionary type is entered incorrectly, an appropriate error message should be displayed on the screen and the program should be terminated. NOTE: For example, enter c or C for pocket dictionary and b or B for large dictionary.
The prices of children's books, novels and dictionaries sold in a stationery are determined as follows:
Children's book: 5 TL each
Novel: 0.1 TL per page for the first 200 pages, and an additional 0.05 TL for each page after 200
Dictionary: Pocket dictionaries 7.5 TL, large dictionaries 15 TL
Develop the C
NOTE: For example, enter c or C for pocket dictionary and b or B for large dictionary.
Step by step
Solved in 5 steps with 3 images