Lab 6

The script below collects the name, course code, and grade percentage to print out a sentence as an output using the collected data. By using the greater than (-gt), greater or equal (-ge), and less than or equal (-le), the grade scale is created to turn number grades into letter grades. The function of if else script command helps display multiple output based on the input.

1

Below shows that the script made for grading works as intended.
2

The sum of first integer script uses the input N and adds the number that while loop subtracts. It is able to add and subtract the number simultaneously by the use of while loop. Taking the inserted integer and decreasing it by 1 while adding it to the integer until the value of input integer is 0. Then display the output in a sentence for users convenient.
3

Shows that the script works by having the right output based on input.
4

Leave a Reply

Your email address will not be published. Required fields are marked *

A City Tech OpenLab ePortfolio