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
Sauron [17]
3 years ago
3

Write a conditional that multiplies the values of the variable pay by one-and-a-half if the value of the boolean variable worked

Overtime is true.
Computers and Technology
1 answer:
kirza4 [7]3 years ago
6 0

Answer:

workedOvertime==true ?  pay=pay*1.5 : pay ;

Explanation:

Above written statement is written by using the conditional operator. Conditional operator uses ? : .The expression written on the left is evaluated if it comes out to be true then the written to the left of : and to the right of ? will be executed if it is false then the expression on the right of : will be executed. In above expression If workedOver time is true then pay will be multiplied ny 1.5 else it does not do anything.

You might be interested in
To connect multiple usb devices to a single usb port, a ____ can be used.
elena55 [62]
<span>USB hubs can be used in this situation. These hubs typically have four to six USB ports, and can thereby allow the connection of more devices than the typical one-to-one connection that a standard USB port will give. This allows the user to expand the number of devices that the computer can read at any one time.</span>
4 0
3 years ago
Can you predict what changes will come to data storage in the next decade? 
Marizza181 [45]

Answer:

Explanation:

More data storage will become available currently there are kilobytes (KB), megabytes (MB), gigabytes (GB) and terabytes (1TB) of storage but in the future maybe there will be tetrabytes

7 0
2 years ago
The software concept ___________and defines a need for the new system.
lubasha [3.4K]

Answer:

application

hope it helps you

3 0
3 years ago
Hdhdhrhdh you are not the intended recipient. xmp-qite-xsy.​
Aleks04 [339]

Answer:

ummmm... okay

Explanation:

3 0
3 years ago
The Open Systems Interconnection (OSI) is a conceptual model whose purpose is to make networks more manageable. Its objectives i
andrew-mc [135]

Answer:

A. data-link layer

Explanation:

Data-link layer is the first layer and allows a contiguous sequence of bits to be transmitted through the network.

On top of it is the Network Layer and it handles the task of routing network messages from one computer to another.

Then comes the Transport Layer which is the basic layer at which one network computer communicates with another network computer.

6 0
3 years ago
Other questions:
  • For C++ (please make sure it runs properly)
    14·1 answer
  • How many buttons does a gamecube controller have?
    7·1 answer
  • The term integration refers to the ability to
    6·1 answer
  • What is a quick way to close the header or footer view in a microsoft word document?
    12·1 answer
  • Jenny is the project manager and her company. She needs to break her current project into parts that her employees can work on.
    10·1 answer
  • In "When Is a Planet Not a Planet?" why does the author say that the outer planets are made of gas when the inner planets are ma
    5·1 answer
  • Write a program to read a list of exam scores given as integer percentages in the range 0-100. Display the total number of grade
    10·1 answer
  • Do u have to divide or multiply this problem 5300 yd = mi
    9·1 answer
  • 7 steps in infographic design​
    6·1 answer
  • Help please i will mark brainlist!
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!