subject

Online book merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with every purchase of 8 or more books. it offers regular customers 1 free book with every purchase of 7 or more books, and offers 2 free books with every purchase of 12 or more books. write a statement that assigns freebooks the appropriate value based on the values of the bool variable ispremiumcustomer and the int variable nbookspurchased .i triedif (ispremiumcustomer==true){if (nbookspurchased > = 5){freebooks==1; {if (nbookspurchased > = 8){freebooks==2; else if (ispremiumcustomer==false){if (nbookspurchased > = 7){freebooks==1; {if (nbookspurchased > = 12){freebooks==2; but the system said: remarks: ? at executionproblems detected: ? the value of freebooks is incorrect. ? you did not assign a value to freebooksand this one a loop that reads strings from standard input where the string is either "duck" or "goose". the loop terminates when "goose" is read in. after the loop, your code should print out the number of "duck" strings that were read.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
Melissa needs to add a topic to an email that she will send to her teacher. choose the name of the field where she should type her topic.
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
question
Computers and Technology, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
You know the right answer?
Online book merchants offers premium customers 1 free book with every purchase of 5 or more books an...
Questions
question
Mathematics, 08.07.2019 02:30
question
Mathematics, 08.07.2019 02:30
Questions on the website: 13722362