Question: solve it in c++ program please i need the codes to copy and paste it in microsoft world so please type the codes here so
The department of History has just bought a new photocopier. Any person using the photocopier must enter his/her type and an identification code. You have been asked to do the following: Write a program that determines whether identification codes typed by users of a photocopier are valid, and prints appropriate messages. If the identification code, which is a four-digit number, is correct your program computes the cost of copying according to the table below. Your program should prompt the user for type, an identification code, and number of pages, read the information, and determine whether the code is valid or not. An identification code is valid if its rightmost digit is correct. A correct digit is equal to the remainder of the sum of the other three digits divided by 7. For example, a valid code that gives a correct digit is 7011 because (740+1) % 7-1. However, 9998 is not a valid code because (9+9+9) % 7-6 8. Write a program that reads the person's type (S, s, T, t, C, c, O, or o), person's code, and the number of pages. The program checks if the code is correct it calculates and prints the cost, while if the code is not correct it prints the message "Invalid code" and stops Correct digits are assigned as follows: Student (S): 1,2 (means 1 or 2) Number of 1 to 10 11 to 20 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
