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
11111nata11111 [884]
3 years ago
6

Please check my answer! (Java)

Computers and Technology
1 answer:
gtnhenbr [62]3 years ago
7 0

13 is the correct answer.

You might be interested in
What does the Design Templates option on the
Mars2501 [29]

Answer:change the background of the slides

Explanation:

4 0
4 years ago
Write a program to process weekly employee time cards for all employees of an organization. Each employee will have three data i
Naddika [18.5K]

Answer:

The cpp program for the scenario is shown.

#include <iostream>

using namespace std;

 int main() {

 

     int count;

     int empNum[count];

     double work_hrs[count];

     double hrly_wage[count];

     double ot_wage[count];

     double hour = 40.00;

     double gross_pay[count];

     double tax=3.625;

     double total_pay = 0, avg_pay;

     

   

   cout<<"Enter the number of employees "<<endl;

   cin>>count;

   cout<<"Enter the details for the employees "<<endl;

   

   int i=0;

   

   while(i<count)

   {

       cout<<"Enter the id"<<endl;

       cin>>empNum[i];  

       

       cout<<"Enter the working hours"<<endl;

       cin>>work_hrs[i];

       

       cout<<"Enter the hourly pay"<<endl;

       cin>>hrly_wage[i];

       ot_wage[i] = hrly_wage[i]*1.5;

       

       i++;

       

   }

   

   cout<<"The payroll for the employees "<<endl;

   

   i=0;

   

   while(i<count)

   {

       if(work_hrs[i] > hour)

           gross_pay[i] = ( hour*hrly_wage[i] );

       else

           gross_pay[i] = ( hrly_wage[i]*work_hrs[i] );

       

       if(work_hrs[i] > hour)

           gross_pay[i] = gross_pay[i] + ( (work_hrs[i]-hour)*ot_wage[i] );

           

       gross_pay[i] = gross_pay[i]-( (gross_pay[i]*tax)/100 );

       

       total_pay = total_pay + gross_pay[i];

       i++;

       

   }

   

   avg_pay = total_pay/count;

   i=0;

   

   while(i<count)

   {

       cout<<"Gross pay of employee "<<empNum[i]<<" : "<<gross_pay[i]<<endl;

   

       i++;

   }

   cout<<"Average amount paid to all employees is "<<avg_pay<<endl;

   

   return 0;

 }

OUTPUT

Enter the number of employees                                                                                                                

2                                                                                                                                            

Enter the details for the employees                                                                                                    

Enter the id                                                                                                                                  

111                                                                                                                                          

Enter the working hours                                                                                                                      

46                                                                                                                                            

Enter the hourly pay                                                                                                                          

12                                                                                                                                            

Enter the id                                                                                                                                  

222                                                                                                                                          

Enter the working hours                                                                                                                      

50                                                                                                                                            

Enter the hourly pay                                                                                                                          

14                                                                                                                                            

The payroll for the employees                                                                                                          

Gross pay of employee 111 : 566.685                                                                                                          

Gross pay of employee 222 : 742.087                                                                                                          

Average amount paid to all employees is 654.386                                                                                              

Explanation:

1. User enters the number of employees.

2. User enters all pieces of information including identification number, hourly wage rate and number of hours worked.

3. Inside a while loop, user input is taken in the arrays.

4. Inside another while loop, the gross pay of each employee is computed. The gross pay of each employee is added to the variable, total_pay.

5. The value of the variable, avg_pay, is computed outside the loop.

6. All the while loops work over variable i till the value of i becomes 1 less than count.

7. The value of the variable, i, is made 0 before the loop begins.

8. The employee number and the gross pay of each employee is displayed followed by the average pay.

5 0
4 years ago
How will a packet tracer environment be affected if a heater is added to a container named branch office and turned on?
viktelen [127]
 <span>Packet Tracer introduced dynamic environent management (temperature, gas, pressure, light, ...) to make IoT device simulation more realistic.</span><span>
If a heater is added to a container named branch office and turned on this will affect the packet tracer environment ins the following way:
</span>The temperature inside Branch Office will increase along with any child containers that exist within Branch Office.
6 0
4 years ago
A proxy is something that​
julia-pushkina [17]

Answer:

helps protects your data and you from viruses or bad things on the internet

Explanation:

8 0
3 years ago
/****************************************************************************** [25 points] Exercise #3.29, p. 115: write a prog
Gemiola [76]

your have no luck here

Explanation:

8 0
4 years ago
Other questions:
  • What is the part of the computer system that receives inputs, directs those inputs to the processor, and redirects the processed
    14·1 answer
  • Implement function translate() that provides a rudimentary translation service. The function input is a dictionary mapping words
    9·1 answer
  • The trim video feature allows you to trim your clip by time measurements that are accurate to ____ of a second.
    5·1 answer
  • How do you guys feel about the coronavirus and being Homeschooled
    10·1 answer
  • Releasing refrigerator R -12 into the atmosphere is a criminal offense. A)true B) false
    5·2 answers
  • If a node receives a frame and the calculated CRC does not match the CRC in the FCS,
    12·1 answer
  • To change the design of a query, right-click the query in the Navigation Pane and then click ____ on the shortcut menu.
    9·1 answer
  • What is technology? *
    10·1 answer
  • Number the steps to describe how Tristan can complete
    6·2 answers
  • What is a major advantage of medical simulators?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!