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

  Program to accept candy name price per pound

A program that accepts a candy name (for example, "chocolate-covered blueberries"), price per pound, and number of pounds sold in the average month, and displays the item's data.

  Create application to enter five-digit credit card number

Create an application that allows the user to enter a five-digit credit card number; assume that the fifth digit is the check digit.

  Write a ruby program with the following specification

The second smallest number in the list, along with its position in the list, with 1 being the position of the first number.

  Write program that lets user enter charge account number

Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list.

  Create logic to enter item until sentinel value is entered

Create a logic for and create the application allows user to enter an order item continuously until a sentinel value is entered.

  Program to ask how many games are being purchased

Your program should ask the store clerk how many games are being purchased and calculate a total due (with 6% tax). The total number of games, the discount amount.

  Program to display employees-total hours in decreasing order

The following array stores work hours for eight employees, write program which display employees and their total hours in decreasing order of total hours.

  Html/css

"Validating Your Work" Please respond to the following:  Describe attribute minimization. Explain what would happen if you tried to validate a page containing instances of attribute minimization. Propose a solution to this problem.

  Program that uses a recursive function to print a string

Your program must contain a recursive function that prints the string backwards. Do not use any global variables; use appropriate parameters.

  Write function which takes string and returns vowels

Write a function which takes as a parameter an string and returns vowels (a, e, i, o, u). The function prototype should look like:

  Write application to store three tests grades of students

Write the application to store three tests grades of 20 students in two dimensional array GRADES. Then program must prompt user to select from the menu.

  Write a little man program that adds a column of input value

Write a Little Man program that adds a column of input values and produces the sum as output. An input value of zero will indicate the last value in the input stream of input values.

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