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

  What is the name generally given to that internal connector

What is the name generally given to that internal connector and give a typical example of what might connect to it.

  Consider the reasons implementations fail for at least

1. consider the reasons implementations fail. for at least three of these reasons explain why this happens if there is

  Ethical dialectical process of thinking state

Ethical Dialectical Process of Thinking state

  Make short story consisting of several of these sentences

Write down an application that uses random-number generation to create sentences. Use four arrays of strings called article, noun, verb and preposition.

  Design the function definitions of pixel class constructor

Write the function definitions of the Pixel class constructor adn CurrentStatus member functions.

  Formal mission statement about soft-wear, limited

Explain how do the information systems help the people working individually and in groups make the decisions more efficiently? Write down a formal mission statement about the Soft-Wear, Limited (SWL).

  What is the degree of membership to the fuzzy set

Draw the graphic for the healthy set, representing the values, healthy and unhealthy and what is the degree of membership to the fuzzy set healthy of person B who has a BMI of 26.2? And to the fuzzy set unhealthy?

  Cloud computing security policy

Cloud Computing Security Policy

  Questionassume that you set up a data base for a credit

questionassume that you set up a data base for a credit card company and after initial analysis you have come up with

  Describe a disaster that would require database recovery

Describe a disaster that would require database recovery and discuss your thoughts on preparing for and recovering from that disaster.

  Question 1a define the term concurrency and no global clock

question 1a define the term concurrency and no global clock in distributed systemsb transparency is defined as the

  What are the pros of home networking

Do you find that most of the files are in real stored on a single computer or to you actually have a server configuration in your home with common files?

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