Write a program to prompt the user for hours

Assignment Help Programming Languages
Reference no: EM131936631

Problem

Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times the hourly rate for all hours worked above 40 hours. Use 45 hours and a rate of 10.50 per hour to test the program (the pay should be 498.75). You should useinput to read a string andfloat() to convert the string to a number. Do not worry about error checking the user input - assume the user types numbers properly.

Reference no: EM131936631

Questions Cloud

Calculate the incremental profitability index : In order to determine which system should be selected, calculate the incremental profitability index
How much is the investment worth two years : At that time the interest rate is changed to 6.12% compounded monthly. How much is the investment worth two years after the change in interest rate?
How much will a registered retirement savings deposit : How much will a registered retirement savings deposit of $10000.00 be worth in 15 years at 6.00% compounded quarterly? How much of the amount is interest?
What is the worst-case npv and best-case npv for project : Consider project to supply Detroit with 20,000 tons of machine screws annually for automobile production.What is worst-case NPV and Best-case NPV for project?
Write a program to prompt the user for hours : Write a program to prompt the user for hours and rate per hour using input to compute gross pay. Pay the hourly rate for the hours up to 40 and 1.5 times.
Formulate the objective function of farmer : 1. Please formulate the objective function of this farmer. 2. Please write down all the constraints of this LP problem.
Calculate the profit-loss on your portfolio : Calculate the profit/loss (in terms of USD) on your portfolio if the spot rate is .8 euros per dollar when the options expire.
What would you do differently as student of entrepreneurship : ENTREPRENEURSHIP ASSIGNMENT - What are some of the primary reasons why an executive summary is critical to any business plan
Explain the purpose of the student degree progress project : Explain the purpose of the student degree progress project. Describe the end objectives or project outcomes. List the assigned tasks for each role.

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