answer.
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
Eduardwww
18 days ago
9

Assume the input data is structured as follows: first there is a non-negative integer specifying the number of employee timeshee

ts to be read in. This is followed by data for each of the employees. The first number for each employee is an integer that specifies their pay per hour in cents. Following this are 5 integers, the number of hours they worked on each of the days of the workweek. Given this data, and given that an int variable total has been declared, write a loop and any necessary code that reads the data and stores the total payroll of all employees in total. Note that you will have to add up the numbers worked by each employee and multiply that by that particular employee's pay rate to get the employee's pay for the week-- and sum those values into total.
Computers and Technology
You might be interested in
Define a function UpdateTimeWindow() with parameters timeStart, timeEnd, and offsetAmount. Each parameter is of type int. The fu
oksian1 [950]
The UpdateTimeWindow() function takes timeStart, timeEnd, and offsetAmount as parameters. Both timeEnd and timeStart are pointers. Within this function, the syntax to modify these parameters is as follows: *timeStart += offsetAmount, incrementing the start time by offsetAmount, and similarly, *timeEnd += offsetAmount increments the end time by the same amount.
8 0
2 months ago
Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel gravity with the result
maria [1035]

Response:

Written in Python

G = 6.673 *pow(10,-11)

M = 5.98 *pow(10,24)

d = float(input("Enter distance: "))

g = (G * M)/(pow(d,2))

print("Calculated gravity acceleration: "+str(g))

Explanation:

The following line sets the gravitational constant

G = 6.673 *pow(10,-11)

This line establishes the mass of the Earth

M = 5.98 *pow(10,24)

This prompts the user to input the object's distance

d = float(input("Enter distance: "))

This calculates the gravity exerted on the object

g = (G * M)/(pow(d,2))

This line outputs the gravity acceleration without rounding

print("Calculated gravity acceleration: "+str(g))

8 0
4 months ago
Other questions:
  • Your computer science teacher asks you to sample a black and white image that is 4" x 6". How would you sample the image to prov
    8·1 answer
  • When a CPU executes instructions as it converts input into output, it does so with
    12·1 answer
  • Assume that the following variables have been properly declared and initialized.
    12·1 answer
  • Which statement best describes the Tell Me feature in PowerPoint 2016?
    12·1 answer
  • While creating an animation, Gina has prepared a document stating the purpose and type of audience for the animation. What has
    6·1 answer
  • In step 4 of the CSMA/CA protocol, a station that successfully transmits a frame begins the CSMA/CA protocol for a second frame
    9·1 answer
  • The given SQL creates a Movie table with an auto-incrementing ID column. Write a single INSERT statement immediately after the C
    12·1 answer
  • Random Pivot Selection: In the algorithm input elements are divided into groups of 5.
    10·1 answer
  • what is the largest possible number of internal nodes in a redblack tree with black height k? what is the smallest possiblenumbe
    11·1 answer
  • The most commonly used method to connect to a WAN is through the telephone system. To do so, what piece of equipment would you r
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!