1. The Following flowchart determines whether a customer israted high, mid, or low based on his or her total purchases.
The block needs to determine the rating and then display theresults on the screen. The code rates the customer high if totalpurchases are greater than $200,
mid if greater than $100, and low if $100 or lower.
Create a block using an IF statement to perform the actionsdescribed in the above flowchart. Use a scalar variable for thetotal purchase amount and
initialize this variable to different values to test yourblock.
2.
Create a block using a CASE statement to perform the actionsdescribed in the above flowchart. Use a scalar variable for thetotal purchase amount and
initialize this variable to different values to test yourblock.
Retrieve purchase total value No No Is total > $200? Is total > $100? Display rating= LOW Yes Yes Display rating = HIGH Display rating = MID
1. The Following flowchart determines whether a customer is rated high, mid, or low based on his or her total purchases.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am