Programing

profilekinjalr10
AssignmentWeek7.doc

Running head: Assignment Week 7 1

Assignment Week 7 6

Student 1

Answer:

1:

i=1 while i<=10 Input " enter grade of Assigment ";i;" "; assgn Input " enter grade of Discussion ";i;" "; disc Input " enter grade of Attendence ";i;" "; atten i=i+1 wend Input " enter grade of midterm "; mid Input " enter grade of Finalterm "; final

 

 

2.

averageatten = 0 averagedisc=0 averageassgn=0 count = 10 i=1 assgn1=0 disc1=0 atten1=0 while i<=10 Input " enter grade of Assigment ";i;" "; assgn Input " enter grade of Discussion ";i;" "; disc Input " enter grade of Attendence ";i;" "; atten assgn1=assgn1+assgn disc1=disc1+disc atten1=atten1+atten i=i+1 wend Input " enter grade of midterm "; mid Input " enter grade of Finalterm "; final print " Total attendence grade ";atten1 print " Total Discussion Grade "; disc1 print "Total Assignment Grade "; assgn1 averageatten = atten1/count averagedisc= disc1/count averageassgn= assgn1/count

print " Average attendence grade ";averageatten print " Average Discussion Grade "; averagedisc print "Average Assignment Grade "; averageassgn

3.

averageatten = 0 averagedisc=0 averageassgn=0 count = 10 i=1 assgn1=0 disc1=0 atten1=0 while i<=10 Input " enter grade of Assigment ";i;" "; assgn Input " enter grade of Discussion ";i;" "; disc Input " enter grade of Attendence ";i;" "; atten assgn1=assgn1+assgn disc1=disc1+disc atten1=atten1+atten i=i+1 wend Input " enter grade of midterm "; mid Input " enter grade of Finalterm "; final print " Total attendence grade ";atten1 print " Total Discussion Grade "; disc1 print "Total Assignment Grade "; assgn1 averageatten = atten1/count averagedisc= disc1/count averageassgn= assgn1/count

print " Average attendence grade ";averageatten print " Average Discussion Grade "; averagedisc print "Average Assignment Grade "; averageassgn exam=(mid+final)/2

Total=0 Total=(30*averageassgn)/100 +(30*averagedisc)/100+(10*averageatten)/100+(30*exam/100) Print " Total Average "; Total select case case Total >= 90 result$ = "A"

case Total >=80 result$ = "B"

case Total >= 70 result$ = "C"

case Total >= 60 result$ = "D"

case Total <60 result$ = "F"

end select

print "Final Result :"; result$

Student 2

Grade Calculator: Initial Interface.

To begin, set the checkbox(es) for the entries you wish to make.

Then enter the grade into the textbox.

Each grade can be turned on and off by using the checkmark box.

When the checkbox is on, the grade will be included in the calculations.

When the checkbox is off, the grade will be excluded from the calculations.

To calculate the total average, press the "Calculate" button.

Each group average is displayed under their respective column.

image1.png

Invalid input will trigger a notification and the value will not be included in the calculation.

image2.png

Only entries with the checkbox set will be calculated. This way, missed assignments can be excluded from the final grade.

image3.png

Pressing the "Help" button will bring up an instructions window.

image4.png

Edited by David Kim on Nov 27 at 11:22am