jadahlynnhuges2665 jadahlynnhuges2665
  • 03-03-2020
  • Computers and Technology
contestada

What would be the value of bonus after the following statements are executed? int bonus, sales = 1250; if (sales > 1000) bonus = 100; if (sales > 750) bonus = 50; if (sales > 500) bonus = 25; else bonus = 0;

Respuesta :

ijeggs
ijeggs ijeggs
  • 04-03-2020

Answer:

100

Explanation:

The statement uses a several if statements to check the variable sales and determine the amount of bonus.

The first if statement assigns the the value of 100 to bonus if sales is greater than 1000.   if (sales > 1000) bonus = 100;

Since sales has been assigned the value of 1250, sales = 1250; then this condition is true and the value of bonus becomes 100.

Answer Link

Otras preguntas

What is the same about both us and Florida constitution
recalcitrant n a sentence
Color in peppered moths is controlled by genes. A light-colored variety and a dark-colored variety of a peppered moth species exist in nature. The moths often r
Can you please help me
I haven’t got a response back from Brainly and I emailed them 3 days ago about my account. I was charged for the wrong membership! What do I need to do to talk
_______ species are species that are susceptible to endangerment in the future
Any driver under the age of 18 who are accumulates A 3 B 6 C 9 D 13 or more points within 12 months. If restricted for one year driving for business purposes on
A patient was supposed to take 560mg of medicine but took only 420mg. What percent of the Medicine was the Patient taking?
help me with english please ​
what is 90% written as a fraction in simplest form​