3 - CSI 1306F HOMEWORK 03 From Lecture 6 High-Level...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CSI 1306F – HOMEWORK 03 From Lecture 6: “High-Level Programming Concepts” 1. Write a block-diagram algorithm representation for reversing the digits of a three-digit number and then add that number to 500. For example, 468 becomes 864. When added to 500, the result is 1364. 2. Write an algorithm in a form of a block diagram that gets the names and ages of two people and returns the name of the person who is older (in the format “x is older than y”, where x and y are the names of the two people), unless the two people are the same age, in which case, return the message “x is the same age as y”. 3. An automotive sales representative’s commission is calculated as a percentage of the sale: 8% of the first $5,000.00 of the sale price 10% on the remainder of the sale price, if the remainder is less than or equal to $80,000.00 or 12.5% on the remainder, if the remainder is more than $80,000.00 Develop a block diagram that will accept the sale price of the automobile and calculate and
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 2

3 - CSI 1306F HOMEWORK 03 From Lecture 6 High-Level...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online