Write an application that asks the user to enter hourly wage

Assignment Help Programming Languages
Reference no: EM131062057

Revised Instructions - For this assignment, let's do the following:

1. Write an application that asks the user to enter the base hourly wage for an employee and then asks the user to enter the number of hours worked for each week in the 4-week pay period. The application should then calculate the gross pay for the monthly (4-week) pay period. As indicated, the employee is paid time and half for any hours over 40 in a given week.

2. The code for your application can use either a for loop or a while loop to handle the user input. (A for loop makes better sense.)

3. Make sure that your application uses at least 1 custom function (i.e., a function that you define). Your code will also need to use appropriate conditional structures, but that shouldn't be a problem given the nature of the program. Pass values to the custom function as parameters - don't rely on global variables.

Since you need to keep the hours for each of the 4 weeks separate (for determining overtime), it makes sense to use an array to pass the hours data to the custom function.

Reference no: EM131062057

Questions Cloud

Identify the constitutional issue : Discuss the relevant issues of this case. Identify the Constitutional issue and describe the process of deciding a Supreme Court case. If you can, demonstrate how this case relates to the issue of crime control versus due process models of crimina..
Determine the maximum tensile compressive : Determine the maximum tensile, compressive, and shear stresses acting on the cross section of the tube at point A of the hitch bicycle rack shown in the figure.
Do you feel that above groups have been unfairly categorized : Conflict theory often overlaps labeling theory. Both theories provide an explanation of behavior in the context of trying to approach with some form of functionalism. When looking at behavior, one must ascertain how individuals are able to functio..
Create business value for a firm : Please write a two page (approx. 800 words) report that outlines how your chosen theme can create business value for a firm or an industry of your choice. The chosen theme is Social Media.
Write an application that asks the user to enter hourly wage : Write an application that asks the user to enter the base hourly wage for an employee and then asks the user to enter the number of hours worked for each week in the 4-week pay period.
Determine the required thickness of the wall of the tank : A large spherical tank (see figure) contains gas at a pressure of 450 psi. The tank is 42 ft in diameter and is constructed of high-strength steel having a yield stress in tension of 80 ksi. Determine the required thickness (to the nearest 1/4 inc..
One molecule of dissolve sulfur : A solution containing 3.24g of sulfur in 40g of benzene boils 0.81 C above the boiling point of pure benzene. Determine the number of S atoms in one molecule of dissolve sulfur. Kb for benzene is 2.53 C/m
Independent variable of the activity : What is the independent variable of the activity? What is the dependent variable of the activity? What variables were controlled during the activity?
Write a program to read in a file : You will write a program to read in a file and found out how many groupings (blobs) of characters there are in the file. The image below is a sample input file. Note that it contains 6 groupings of characters or blobs.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd