Lab 6

In this lab, we learn how to use the vi editor which allows us to  create programs. For instance, we created a program that shows the percentage and grades of students, as well as other basic information. For example: name, course code and of course the percentage. Another thing this program allows to do, whne using the vi editor is to output grades in letter category. Ill show you in the screen shot i took below.

 

name

 

2 bs as

 

 

After, we created the grade percentage program using the vi editor, we were asked to create another program that will find the sum of the first N integers. The program itself creates a loop that when the value adds to the sum it automatically becomes 0. Once the program is run the progarm will display the output back to the user. In the next screenshot ill demonstrate the program running.

 

sum bin bash

 

integer

 

Leave a Reply

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