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

i’ll mark you brainliest and give more points, please show workkkk
Factorise 6x2 - x - 2
What are the zeros of the polynomial function? f(x)=x^3+x^2−9x−9
sin2 30+cos2 60- tan 260​
Identify the difference between natural and artificial dyes.
Gen-Fast Shoes wants to expand internationally and is deciding if its line of tennis shoes can be sold at a high price in Europe. One way for Gen-Fast Shoes to
The last group of elements on the periodic table are called _____. noble gases halogens metals noble solids
A firm has a debt-to-equity of 0.69 and a market-to-book ratio of 3.0. What is the ratio of the book value of debt to the market value of equity?
PLEASE HELP!!! Look at the image, read, and choose the correct sentence that goes with the image. Debajo del edificio de la iglesia hay un centro comercial con
Help please answer the two questions​