Question: solve please in c++ program i need the codes to copy and paste them on microsoft world so please type them here so i can

solve please in c++ program
i need the codes to copy and paste them on microsoft world so please type them here so i can take them  solve please in c++ program i need the codes to copy
and paste them on microsoft world so please type them 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 (7+0+1) % 7 1. However, 9998 is not a valid code because (9+9+9) 96 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!