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

  Explain relationship between xbrl and semantic web

How do HTML 5, RDF (Resource Description Framework), and OWL (Web Ontology Language) relate to the semantic web? Explain the relationship between XBRL and the semantic web.

  Write a program to print qrhiokmnc

Write a program to print "QRHIOKMNC" in ascending order of alphabet

  Write a program that prompts the user to enter the mass

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both the mass and the weight rounded to two decimal places

  Write program that uses recursive function to count number

Write a program that uses a recursive function to count the number of blobs in a square grid. Input to the program should consist of the locations of the asterisk in the grid.

  Evaluates and prints the value of the polynomial

Write a program that evaluates and prints the value of the polynomial ax2 + bx + c, given user inputs for a, b, c, and x using integers and floats.

  What is sequential flow of a program

What is sequential flow of a program? What is branching within a program? How is branching controlled? What is the role of an if statement in control structures

  Which of the following is not included in a pseudocode

Which of the following is not included in a pseudocode program?

  Write program that asks user to enter current value

Write a program which asks the user to enter the current value of a car. For new car, it is selling price of car. The program must display number of years it takes for the car's trade-in value to be below $1000.

  Implement the calculator using stacks and queues

You will implement the calculator using stacks and queues. Your calculator should support following operators: Parenthesis. The input will be given in form of infix expressions, e.g. ( 2 + 3 ) * 5.

  Implement a query functionality to the catalogue

Implement a query functionality to the Catalogue. This will return a list of Albums that match a given criteria. We specify the criteria as a search rule (based on a very simple query language) that is executed against all the Genres and albums in..

  Write a gui program that is a game to be played by the user.

Write a GUI program that is a game to be played by the user. A new employee is working on a classified mission and the program will randomly pick an expected profit to be guessed by the user. The program must randomly select a number within the ra..

  Divide the input space for the into three equivalence class

Furthermore, you may further divide the third classes into more classes: inputs whose length is long than 60 but less than 120, inputs whose length is long than 120 but less than 180, etc...

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