1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
solong [7]
3 years ago
5

Online Book Merchants offers premium customers 1 free book with every purchase of 5 or more books and offers 2 free books with e

very 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 ......Write 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.
Computers and Technology
1 answer:
docker41 [41]3 years ago
8 0

Answer:

8/9

Explanation:

i remember this question on my daughters book

You might be interested in
Refer to the following statement: “We have implemented several IT solutions:
Roman55 [17]

Answer:

vary best questions few minutes i solve it

4 0
3 years ago
A compiler is a separate program that converts the entire source program into a machine language before executing it
NISA [10]
A compiler is a series of programs that (usually) convert source code into machine language. There are also compilers that compile into byte code, Java for instance.

No compiler is responsible for executing a freshly compiled program. That would be done in an IDE (Integrated Development Environment).
4 0
3 years ago
An antonym for the word “help” which may be found in a dictionary is a. Assist c. Hold b. Abandon d. None of these
Luba_88 [7]
I would have to say the answer is abondon
5 0
3 years ago
Read 2 more answers
3. How many bytes of storage space would be required to store a 400-page novel in which each page contains 3500 characters if AS
VladimirAG [237]

Answer:

A total of 79.3mb will be needed

5 0
3 years ago
Adrian has decided to subscribe to a new internet service. He wants a high-speed connection so he can stream video content smoot
vichka [17]
I believe the answer is A but then again it could be c because if u mess the cable cord up the internet will stop working 
7 0
4 years ago
Read 2 more answers
Other questions:
  • BOTH INTERNATIONAL & INLAND Which procedure(s) shall be used to determine risk of collision?
    14·1 answer
  • In Word, a red wavy underline indicates a/an
    15·1 answer
  • What does it mean to calculate frequencies within a dataset?
    13·1 answer
  • What is the memory of a computer called
    12·2 answers
  • A(n) ____ circular reference occurs when a formula in a cell refers to another cell or cells that include a formula that refers
    6·1 answer
  • How do I get the bot token for discord? (scripting etc)
    5·1 answer
  • How do we make a acount
    15·2 answers
  • Most significant effect the rotary press had on printing
    9·1 answer
  • What are some other possible causes of an overheating laptop
    7·1 answer
  • One word for The characters typed by a user using a<br> keyboard.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!