Jump to content

Recommended Posts

Hello, am undergoing a lesson on Qbasic and was told to go do and assignment and teach my group.would be droping thequestions for help, need the solution plus how to go about teaching my colleagues that is i need to understand it.Regards

 

1. Develop a QBASIC program to compute the mean grade of an unspecified number of students.The sentinel value for the grade is any negative value

2. Develop a QBASIC code to

(a) input the grades at 100-,200-,300-,400- levels

(b)Then Compute the GPA

©Award Class of Degree

      3.       Write a QBASIC code to perform the following tasks:

Read a sequence of integers and keep a running total until either

(a) A zero is read, or

(b) A hundred numbers have been read, whichever happens first

4.       write a program segment that will read 15 realnumbers into a one-dimentional array NUM, assuming that you do not know the format of the data nor how many numbers are on each line, except that all numbers on the same line are separated by aleast one blank space

    5.     write a complete QBASIC Program that reads and integer array and prints out several characteristics about the array.These characteristics are:

Number of positive elements

Number of Zero elements

Number of negative elements

Trace(sum of elements on top-left to bottom-right diagonal)

Largest number of array

 

 

Waiting for your help.

Link to comment
https://forums.phpfreaks.com/topic/204211-qbasic-help/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.