Yes, the written program has the correct logic to assign the correct discount for each of the 4 valid values of customer_category
<h3>What is a Program?</h3>
This refers to the sequence of instructions that are keyed into a computer to execute user-specific commands.
Hence, we can see that based on the variable customer_category that has a string that is one of these 4 values:
0 for "None"
5 for "Bronze"
10 for "Silver"
20 for "Gold"
The program uses the correct syntax as it gives the correct discount based on the assigned values of the variable customer_category as executed with the syntax above.
Read more about programs here:
brainly.com/question/1538272
#SPJ1
Answer:
Algorithms is formula for solving a problem. It is helpful because it specifically give instructions detail to computer to what a computer should perform a specific task.
For e.g. calculating report cards.
Explanation:
Start
Input dollars
Set Euros = 0.91 * dollars
Set Yens = 109.82 * dollars
Output Euros
Output Yens
Stop
Note: The rates are as of 07-Feb-2020
C because I said so hahahah