Create a solution algorithm using pseudocode

Assignment Help Data Structure & Algorithms
Reference no: EM135364

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).

Reference no: EM135364

Questions Cloud

Evaluate the company''s weights of capital : Evaluate the company's weights of capital (debt, preferred stock and common stock) and estimate the company's before-tax and after-tax component cost of debt.
Impact of effective human resource management : How to write a good reserach methodology Introduction -summarise the literarture and the reserach question.
Prepare the entry to record the accrued interest : Assuming that all the investments are classified as available-for-sale, use the spreadsheet Journal Entries to prepare the journal entries necessary to classify the amounts into the proper accounts. Prepare the entry to record the accrued interest ..
Key problem international marketing managers must address : Lack of cultural knowledge besides expertise in doing business abroad and in specific export markets is a key barrier to trade as well as a key problem international marketing managers must address.
Create a solution algorithm using pseudocode : Algorithm that will receive two integer items from a terminal operator, and display to the screen their sum, difference, product and quotient.
Write a academic research paper : The Portfolio of Practice Project for this course is a 10 to 15 page academic research paper. For this assignment, you need to choose a leader, rather from a Fortune 500 company Your research paper must contain
Most serious disadvantage of globalization : Select the most serious disadvantage of globalization (in your opinion) and make at least one recommendation
The law of demand states that other things equal : The law of demand states that other things equal
Each firm can monitor the others price very closely : Each firm can monitor the other's price very closely and can respond instantly

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  What are entity-relationship diagrams

What are entity-relationship diagrams, and how are they used? Discuss the ethical issues to consider when planning a database.

  Currency conversion development

Currency Conversion Development

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Compare the average behavior of insertion sort

Compare the average behavior of insertion sort for n elements with that of the n insertions into an initially-empty straight array implementation of a priority queue

  C++ program to evaluate expressions combining set union

Create a C++ program to evaluate expressions combining set union, set intersection and parentheses

  Data structures and algorithms

Provides learners with an understanding of how data structures are used in algorithms and enables them to design and implement data structures

  Data structures and algorithm design

Data Structures and Algorithm Design

  Demonstrate a decision tree or table

Demonstrate a decision tree or table

  Addition and subtraction of numbers in binary

Addition and Subtraction of numbers in binary and round to the nearest decimal number with three significant decimal digits

  Determine the inorder, preorder and postorder traversal

Determine the Inorder, preorder and postorder traversal

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