in the following problems you will need


In the following problems, you will need to:

• define the problem by constructing a defining diagram
• create a solution algorithm using pseudocode
• desk check the solution algorithm using two valid test cases.

Q1 Construct an algorithm that will prompt an operator to input three characters, receive those three characters, and display a welcoming message to the screen such as 'Hello xxx! We hope you have a nice day'.

Q2 You require an algorithm that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product and quotient.

Q3 You require an algorithm that will receive an integer from the screen, add 5 to it, double it, subtract 7 from it, and display the final number to the screen.

Q4 You require an algorithm that will read in a tax rate (as a percentage) and the prices of five items. The program is to calculate the total price, before tax, of the items, then the tax payable on those items. The tax payable is calculated by applying the tax rate percentage to the total price. Print the total price and the tax payable as output.

Q5 You require an algorithm to read in one customer's account balance at the beginning of the month, a total of all withdrawals for the month, and a total of all deposits made during the month. A federal tax charge of 1 % is applied to all trans¬actions made during the month. The program is to calculate the account balance at the end of the month by (1) subtracting the total withdrawals from the account balance at the beginning of the month, (2) adding the total deposits to this new bal¬ance, (3) calculating the federal tax (1 % of total transactions - that is, total with¬drawals + total deposits), and (4) subtracting this federal tax from the new balance. After these calculations, print the final end-of-month balance.

Q6 You require a program to read in the values from an employee's time sheet, and cal¬culate and print the weekly pay owing to that employee. The values read in are the total number of regular hours worked, the total overtime hours and the hourly wage rate. Weekly pay is calculated as payment for regular hours worked, plus payment for overtime hours worked. Payment for regular hours worked is calculated as (wage rate times regular hours worked); payment for overtime hours worked is calculated as (wage rate times overtime hours worked times 1.5).

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: in the following problems you will need
Reference No:- TGS0446853

Now Priced at $45 (50% Discount)

Recommended (91%)

Rated (4.3/5)