answersLogoWhite

0


Best Answer

// If statement
if(hours > 40)
payrate *= 1.5;


// Single statement using ternary operator
payRate *= (hours>40)?1.5:1.0;

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Meer Hamza

Lvl 2
1y ago

if (hours > 40)

{

payrate *= 1.5

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: If statement that multiplies pay rate by 1.5 if hours is greater than 40?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is A true statement about diffusion?

The greater the concentration gradient, the faster the rate of diffusion.


At what rate is the income statement converted for US comparison?

Average rate.


What happens when a glaciers rate of melting is greater than its rate of movement?

An ice front recedes when a glaciers rate of melting is greater than its rate of movement. It is the end of the glacier.


What is a higher birth rate?

A higher birth rate is a rate of reproduction greater than the current norm, or average, or a rate of reproduction greater than a norm or average at a given time.


Which statement describes the rate of change of the following function?

Which statement describes the rate of change of the following function?f(x) = -6x - 9


How does kinetic energy affect diffusion rate?

The greater the collision rate, the greater the diffusion rate. As the molecules of the substance that is diffusing are more concentrated, the molecules collide more. As they diffuse and spread apart, there are less collisions and diffusion slows down.


Birth and death rate in kolkata?

birth rate greater than death rate


What controls the rate of diffusion?

The rate of diffusion is directly related to the concentration of gradient. For example, the greater the amount between the concentration of the areas, the greater the greater to difference in diffusion.


Rate of change of distance?

wrong statement


How do you use rate in a math sentence?

If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?If they travelled 350 miles in 7 hours, what rate of speed were they doing?


What is set rate 5.75 an example of?

"Set rate 5.75" is an example of an imperative statement.


What are the main reasons for the change in growth rate?

-If the death rate is greater than the birth rate, the growth rate decreases -If the birth rate is greater than the death rate, the growth rate increases -If there are good resources like medicine, good food suply and water, the death rate will decrease.