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 11:00
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Someone plzz me which of these defines a social search? a. asking a search engine a question that is answered by a real person on the other sideb. modifying search results based on popularity of a web pagec.modifying search results based on a ranking of a web page
Answers: 2
question
Computers and Technology, 24.06.2019 08:30
Formatting rows and columns is similar to cell formatting. in an openoffice calc spreadsheet, you can format data entered into rows and columns with the of the rows and columns options. you can insert rows and columns into, or delete rows and columns from, a spreadsheet. use the insert or delete rows and columns option on the insert tab. alternatively, select the row or column where you want new rows or columns to appear, right-click, and select insert only row or only column options. you can hide or show rows and columns in a spreadsheet. use the hide or show option on the format tab. for example, to hide a row, first select the row, then choose the insert tab, then select the row option, and then select hide. alternatively, you can select the row or columns, right-click, and select the hide or show option. you can adjust the height of rows and width of columns. select row and then select the height option on the format tab. similarly, select column, then select the width option on the format tab. alternatively, you can hold the mouse on the row and column divider, and drag the double arrow to the position. you can also use the autofit option on the table tab to resize rows and columns.
Answers: 1
You know the right answer?
This problem has been solved! see the answeronline book merchants offers premium customers 1 free bo...
Questions
question
Mathematics, 28.11.2021 19:00
question
Arts, 28.11.2021 19:00
Questions on the website: 13722360