Design a program using structured pseudocode

Assignment Help Programming Languages
Reference no: EM1358653

You have been asked by the Payroll department to create a program that will calculate the weekly pay for the company's 25 employees. The program will prompt the user to provide each employee's full name, hourly pay rate, and hours worked. The program will then ask if the employee is single or married. If an employee is married, the tax rate is 25%; if they are single, the tax rate is 20%. Also, if the employee worked more than 40 hours in a week, the number of hours greater than 40 is paid at a rate of 1.5 times of the provided tax rate.

The program will display a list of all the employee names and weekly pay. In addition, the program will display the total payroll for the week and the average weekly pay.

Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message.

Ensure the following input is validated as follows:
If the hours worked per week is less than zero, set the hours worked to zero.
If the hours worked per week is greater than 80, set the hours worked to 80.
If the pay rate is less than $10 per hour, set the pay rate to 10.
If the pay rate is greater than $50, set the pay rate to 50.

Provide a program introduction message that tells the user how to use the program.

Reference no: EM1358653

Questions Cloud

What is optimal strategy if n is known : Consider the numerical 20 questions game. In this game, player 1 thinks of a number in the range 1 to n. Player 2 What is an optimal strategy if n in known?
Determine the value of the electric potential : Determine the value of the electric potential. calculate the acceleration of the ball when it is 3 cm from the surface and again at the position determined in part b.
Current occupational environment : Current Occupational Environment - What changes in the economy and society have helped create the current occupational environment?
Elucidate what could be done to encourage people to spend : Elucidate what could be done to encourage people to spend more so as to increase aggregate demand and invariably, create employment possibilities.
Design a program using structured pseudocode : Design a program using structured pseudocode as demonstrated in the lectures and, ensuring all variables are declared, prompt the user for the appropriate input and display a meaningful output message.
How much time in seconds will it take the officer : how much time in seconds will it take the officer. A 63 resistor is connected in parallel with a 115.0 resistor. This parallel group is connected in series with a 19 resistor. The total combination is connected across a 15.0 V battery. Find the cur..
Explain how many paths will get built : To pay for these paths, it then taxes Andrew, Beth, and Cathy the prices a+b+c=MC. If the taxes are set so that each resident shares the cost evenly (a=b=c), explain how many paths will get built.
Write java program to enter number of marks : Write a java program called AverageMark.java. This program should allow the user to enter any number of marks and then display the minimum, maximum & average mark.
Companies that use four modes of transportation : Show why this mode is being used and what the costs are on a per ton-mile basis.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a menu type form that gives user to select subforms

Create a menu type form that provides the user the capability to select one of the following two subforms. Means of selection is programmers choice.

  Implementing class called card for standard playing card

Design and implement a aclass called Card that represents a standard playing card. each card has a suit and a face value.

  Design and algorithm that compute numbers of married men

Design and algorithm that will read through the file and compute the numbers of married men, single men, married women and single women.

  Programming problem

Programming Problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results.

  Describe purpose of keyword super in programs

Describe purpose of keyword 'super' in programs

  Appropriate for two classes to inherit from superclass

CDs and DVDs have several common characteristics. Would it be appropriate for these two classes to inherit from a common superclass?

  Applying constraints in program

You will require to set up constants in program for given: number of square feet per square yard.

  Build a student record managing system application

Build a student record managing system application

  Develop logic to accept number of passengers-zones as input

Develop the logic for a program that accepts the number of passengers and zones crossed as input. the output is the ticket charge.

  Approach for building site in-house with existing staff

Web site Consider your options for building the site in-house with existing staff, or outsourcing the entire operation. Decide which strategy you believe is in your company's best interest and create a brief presentation outlining your position.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Create program to calculate and display number of miles

Create a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the drivers speed.

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