0% found this document useful (0 votes)
51 views3 pages

Practice 1: in Flowchart That Will Receive Two Integer Items From A

The document provides instructions for three practice problems to design algorithms using flowcharts. The first asks to create a flowchart that takes two integers as input, calculates the sum, difference, and quotient (if the second integer is not zero) and displays the results. The second asks to prompt for a student ID and exam score, match the score to a letter grade, and print the grade. The third asks to prompt for a price and pricing code, calculate any discount based on the code, and display the original price, discount amount, and discounted price.

Uploaded by

henry tantyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views3 pages

Practice 1: in Flowchart That Will Receive Two Integer Items From A

The document provides instructions for three practice problems to design algorithms using flowcharts. The first asks to create a flowchart that takes two integers as input, calculates the sum, difference, and quotient (if the second integer is not zero) and displays the results. The second asks to prompt for a student ID and exam score, match the score to a letter grade, and print the grade. The third asks to prompt for a price and pricing code, calculate any discount based on the code, and display the original price, discount amount, and discounted price.

Uploaded by

henry tantyo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Practice 1

Design an algorithm in flowchart that will receive two integer items from a
terminal operator, and display to the screen their sum, difference, and
quotient. Note that the quotient calculation (first integer divided by second
integer) is only to be performed if the second integer does not equal zero.

IF100 - Dasar-Dasar Pemrograman - 2020/2021 1


Practice 2
Design an algorithm in flowchart that will prompt an operator for a student’s
serial number and the student’s exam score out of 100. Your program is then
to match the exam score to a letter grade and print the grade to the screen.
Calculate the letter grade as follows:

IF100 - Dasar-Dasar Pemrograman - 2020/2021 2


Practice 3
Design an algorithm in flowchart that will prompt a terminal operator for the
price of an article and a pricing code. Your program is then to calculate a
discount rate according to the pricing code and print to the screen the original
price of the article, the discount amount, and the new discounted price.
Calculate the pricing code and accompanying discount amount as follows:
If the pricing code is Z, the
words ‘No discount’ are to
be printed on the screen. If
the pricing code is not H, F,
T, Q, or Z, the words ‘Invalid
pricing code’ are to be printed.
IF100 - Dasar-Dasar Pemrograman - 2020/2021 3

You might also like