Lab 6

In this lab we will create a script that will ask the user the following:

Name

Course Code

Grade Percentage

After getting the data the output will display something like

Hello “Name. Your grade for “Course Code” is “Grade Percentage”

Script.

bin

Output

out

B. We will create another script that will ask the user for an integer and display the sum of the first n inumbers.

Script

sum

 

Output

sum output

 

 

Leave a Reply

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