Write a program that inputs the number of hours worked

Assignment Help Computer Engineering
Reference no: EM131270166

Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees; the user will terminate input by entering 0 for hours worked and pay rate. Use a class called Worker with

Attributes: Hours, Rate, Total

Methods: ComputerTotal(), and access methods (SetHours(), GetHours(), SetRate(), GetRate(), SetTotal(), and getTotal()) for each of the attributes.

Give the UML for the object and write a pseudocode for this program.

Reference no: EM131270166

Questions Cloud

Write a fraction class whose objects will represent fraction : Write a fraction class whose objects will represent fractions. You should provide the following member functions: Two constructors, a default constructor which assigns the value 0 to the fraction, and a constructor that takes two parameters.
Explain the pricing policy taken by apple : Describe what do you understand by the term "Cost plus Pricing "and highlight any limitations this may have. How does this differ from "Target Costing "pricing - Describe the type of pricing policy being applied by Hewlett- Packard in regard to the..
Is the anger usually directed at individual people : When researching this topic, some questions to consider in your response may include: Do your results parallel those of James Averill (see textbook), who found that most people become at least mildly angry several times a week, and sometimes sever..
Define your internal and external customers and suppliers : Briefly describe your work position and define your internal and external customers and suppliers. What are the four key roles that expatriates typically play? Why do a high percentage of expatriates fail abroad? Discuss two advantages and two disadv..
Write a program that inputs the number of hours worked : Write a program that inputs (from the user) the number of hours worked and hourly pay rate for employees and outputs their total pay. The program should process an arbitrary number of employees.
Describe how race and gender shape a person life : Thinking about these ideas, describe how race and gender shape a person's life. Which is most powerful in a person's life: race, gender, or class? How do all three intersect in your life? How are your own experiences different (or the same) as yo..
How much of the drug is eliminated during the first hour : The rate at which the body eliminates a certain drug.-  How much of the drug is eliminated during the first hour after it was administered? During the fourth hour?
What is the net effect on society : Who are the winners and losers? What is the size of their gains and losses? What is the net effect on society?
What is the duration of the critical path : Draw the network diagram. Which activities form the critical path? How much slack exists at activities A and F? What is the duration of the critical path?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questionthe high-class reporter for foreign affairs learned

questionthe high-class reporter for foreign affairs learned about asymmetric cryptography and proposed to security team

  What suggestions do you have that could have improved

At this point, Anne has just a 14% response rate, which she is sure will not please her team leader. What suggestions do you have that could have improved Anne's response rate to the questionnaire?

  Question1 what are the methods of defense and provide

question1. what are the methods of defense and provide examples? how do you deal with the damage?2. explain fundamental

  Why are most photographic images stored in a lossy format

Why are most photographic images stored in a lossy format

  How would you rank the principles of concurrency

How would you rank the principles of concurrency? Explain the design issues for which the concept of concurrency is rele

  Suppose that even parity is used for rows

many techniques (typically referred to as forward error correction) can be used to add redundant bits to a message in order to help a receiver right bits that have been damaged in transmission.

  Define a point made by a classmate

What rights to privacy do people have while using the Internet at home? Are their privacy rights limited? Do those same rights and limits exist at work? Explain your answer.

  Express why this algorithm favors i/o bound programs

express why this algorithm favors I/O bound programs and yet does not permanently deny processor time to processor bound programs.

  Birt is an open source eclipse-based reporting system

BIRT is an open source Eclipse-based reporting system that integrates with your Java/J2EE application to produce compelling reports BIRT provides core reporting features as in report layout, data access and scripting.

  Write down and justify an efficient relational algebra

write and justify an efficient relational algebra expression that is equivalent to the following given

  Create an array of peoples first names

Create an array of people's first names. Using a loop, read the names from a text (txt) file, and store each one into the array. The array should allow for a maximum of 100 entries

  Program requests the name of food and number of calories

The council suggest that at most 30% of the calories in our diet come from fat. however food labels give the number of calories and amount of fat per serving, they often do not give percentage of calories from fat.

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