Programming in raptor / .rap files

User Generated

ibff916

Computer Science

Description

pp. 723-726: #1, #2

Use RAPTOR's OOP mode in object-oriented in Programming Challenges 1&2:

Program #1:

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: ComputeTotal() and access methods (SetHours(), GetHours(),
SetRate(), GetRate(), SetTotal(), and GetTotal()) for each of the attributes

Program #2:

Write a program that displays the income tax due in the state of Euphoria on a taxable income (in whole dollars) entered by the user, according to the tax table shown in Table 11.1.

Table 11.1 Tax table

Taxable Income

From -To Tax Due
$0 - $49,999 $0 + 5% of amount over $0
$50,000 - $99,999 $2,500 + 7% of amount over $50,000
$100,000... $6,000 + 9% of amount over $100,000

The program should allow the user to enter a series of incomes, terminated by 0. Use a class called Tax, with attributes Income and TaxDue and methods that include ComputeTax() and access methods (SetIncome(), GetIncome(), SetTaxDue(), and GetTaxDue()) for each of the attributes.




Raptor free download—latest version:

http://raptor.martincarlisle.com/

We will use RAPTOR software, which is flow chart based software that is non-binding to a programming

language to developing standard algorithms and to run and validate logic of program.




Source code files and screen capture of outputs need to be provided.

User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer

...


Anonymous
Super useful! Studypool never disappoints.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags