subject

If a customer purchases 0 books, he/she earns 0 points. if a customer purchases 1-2 books, he/she earns 5 points. if a customer purchases 3-4 books, he/she earns 10 points. if a customer purchases 4-5 books, he/she earns 15 points. if a customer purchases 6-7 books, he/she earns 20 points. if a customer purchases 8 or more books, he/she earns 25 points. write a program that asks the user to enter their name (first and last name), and the number of books that he or she has purchased this month and displays their name and the number of points they have earned for the month. add the total number of points for the store for the month and display the total on the screen. remember to put your name on the lab with comments, and write comments in the program to tell what the program is doing.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, DestinyK8033
Why would a programmer use the logical operator and in an if statement? a: when an action is to be taken that requires both conditions to be falseb: when an action is to be taken that requires both conditions to be truec: when an action is to be taken that requires the first condition to be falsed: when an action is to be taken that requires the second condition to be truei took the test and the answer is b.
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 22.06.2019 22:10, Metlife
Asequential circuit contains a register of four flip-flops. initially a binary number n (0000 ≤ n ≤ 1100) is stored in the flip-flops. after a single clock pulse is applied to the circuit, the register should contain n + 0011. in other words, the function of the sequential circuit is to add 3 to the contents of a 4-bit register. design and implement this circuit using j-k flip-flops.
Answers: 1
image
Computers and Technology, 22.06.2019 22:50, youngboymark123
Assume the existence of a bankaccount class. define a derived class, savingsaccount that contains two instance variables: the first a double, named interestrate, and the second an integer named interesttype. the value of the interesttype variable can be 1 for simple interest and 2 for compound interest. there is also a constructor that accepts two parameters: a double that is used to initialize the interestrate variable, and a string that you may assume will contain either "simple", or "compound", and which should be used to initialize the interesttype variable appropriately. there should also be a pair of functions getinterestrate and getinteresttype that return the values of the corresponding data members (as double and int respectively).
Answers: 2
You know the right answer?
If a customer purchases 0 books, he/she earns 0 points. if a customer purchases 1-2 books, he/she ea...

Questions in other subjects: