Examlex

Solved

Problems - Correcting Logic and Code Errors

question 18

Essay

Problems - Correcting Logic and Code Errors
BrightStar Day School needs an application to calculate the total monthly tuition charge for students. The tuition schedule is shown below:
Class Fee per Month
Tuesday (T) and Thursday (R)   $135
Monday (M), Wednesday (W), and Friday (F)   $120
Students in the Tuesday and Thursday class can attend on Friday for an extra fee of $10 for each Friday attended. Rewrite the following algorithm to correct any logic errors:
If TR class and attend on Friday
Tuition = 135 + 10
Else
If MWF
Tuition = 120
End If
End If


Definitions:

Just Noticeable Difference

The smallest difference in intensity or stimulus strength that a human can detect between two stimuli, also known as the difference threshold.

Decibels

A unit of measurement used to express the intensity of sound, indicating the pressure level of sound waves.

Subliminal

Pertains to stimuli or messages that are below the threshold of human consciousness but can influence thoughts, feelings, or actions.

Sensory Adaptation

The process by which sensory receptors become less sensitive to constant stimuli over time, allowing organisms to adapt to their environment.

Related Questions