subject

This problem has been solved! see the answeronline 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: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:30
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 23.06.2019 22:20
If i uninstall nba 2k 19 from my ps4 will my career be gone forever?
Answers: 2
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
You know the right answer?
This problem has been solved! see the answeronline book merchants offers premium customers 1 free bo...
Questions
question
Health, 11.02.2020 20:49
question
Mathematics, 11.02.2020 20:49
question
English, 11.02.2020 20:50
question
Mathematics, 11.02.2020 20:50
Questions on the website: 13722359