Expert answer:c++ functions

Solved by verified expert:simple c++ functions in the file attached
hw8_functions.docx

Unformatted Attachment Preview

COSC175 Function HW- Work with One Partner
Type in Word. Work with a partner and submit one copy per pair.
Partner 1: Name _______________________________
Partner 2: Name _______________________________
Modularity Homework: For all arguments indicate pass by value or pass by reference.
1. Write a function called DisplayTowson with no arguments that displays:
*****************
Towson University
*****************
Show a sample call.
2. Write a function called DisplayCollegeName that has college name as the argument. Show a sample call
that will display Towson University.
3. Write a function called DisplayArea that displays the area of a room when the width and length are
passed as arguments. Are width and length passed by value or reference?
4. Write a function called CalculateArea that calculates the area of a room when the width and length and
area are passed as arguments. Are width and length and area passed by value or reference? Show a
sample call.
5. Write a function called Area that calculates the area of a room and returns area when the width and
length are passed as arguments. Show a sample call.
6. Write a function called CalculatePerimeter that calculates the perimeter when the width and length and
perimeter are passed as arguments. Are width and length and perimeter passed by value or reference?
Show a sample call.
7. Write a function called Perimeter that calculates the perimeter of a room and returns perimeter when the
width and length are passed as arguments. Show a sample call.
8. Write a function called GetDimensions with two arguments width and length that prompts for and
receives width and length.
9. Write a function called PrintDimensions with two arguments width and length that displays width and
length.
10. Write a function called CalculateSalesTax with arguments purchaseAmt and salesTaxrate and salesTax
that calculates sales tax.
For the following problems:
a. write a hierarchy chart
b. write code for main and all other modules
c. trace
1. Design an algorithm that will input sales volume records (until -1) from the user and print the sales
commission owing to each salesperson. Input includes salesperson number, name and that person’s volume of
sales for the month. The commission rate varies according to the sales volume:
On sales volume of :
Commission rate (%):
$0.00-$200.00
5
$200.01-$1000.00
8
$1000.01-$2000.00
10
$2000.01 and above
12
Commission = commission rate * volume
Your program is to print the salesperson’s number, name, volume of sales and calculated commission.
2. Design an algorithm that will prompt for and receive your current check book balance, followed by a number
of financial transactions. Each transaction consists of a transaction code and a transaction amount. The code can
be a ‘D’ for deposit or ‘C’ for check. Your program is to add each deposit amount to the balance and subtract
each check amount. After each transaction is processed, a new running balance is displayed, with a warning
message if the balance becomes negative. When there are no more transactions a ‘Q’ is entered as the transaction
code. Your algorithm is to then display the initial and final balance along with the number of checks and
deposits that were made.

Purchase answer to see full
attachment

How it works

  1. Paste your instructions in the instructions box. You can also attach an instructions file
  2. Select the writer category, deadline, education level and review the instructions 
  3. Make a payment for the order to be assignment to a writer
  4.  Download the paper after the writer uploads it 

Will the writer plagiarize my essay?

You will get a plagiarism-free paper and you can get an originality report upon request.

Is this service safe?

All the personal information is confidential and we have 100% safe payment methods. We also guarantee good grades

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Order your essay today and save 20% with the discount code ESSAYHELP