• Home
  • Blog
  • Implement the following algorithm in C# using WFA GUI. Submit source and run window as a zip file in assignment box. startdeclare…

Implement the following algorithm in C# using WFA GUI. Submit source and run window as a zip file in assignment box. startdeclare…

0 comments

Implement the following algorithm in C# using WFA GUI.

Submit source and run window as a zip file in assignment box.

  1. start
  2. declare variables
  3. print “Enter student first name”
  4. input studFirstName
  5. print “Enter student last name”
  6. input studLastName
  7. print “Enter score for exam 1”
  8. input studExam1
  9. print “Enter score for exam 2”
  10. input studExam2
  11. print “Enter score for exam 3”
  12. input studExam3
  13. compute studScore = studExam1 + studExam2 + studExam3
  14. compute studAvg = studScore / 3
  15. print “Student’s Final Grade”
  16. if studAvg >= 90 then
  17. Grade = ‘A’
  18. else if studAvg >=80 then
  19. Grade = ‘B’
  20. else if studAvg >=70 then
  21. Grade = ‘C’
  22. else if studAvg >=60 then
  23. Grade = ‘D’
  24. else
  25. Grade = ‘F’
  26. endif
  27. Print Grade
  28. stop

Create a gradStudent class which Inherits from Student class created earlier.

The gradStudent class should include the following data members:

string bsDegreeName //BS degree name

float bsGPA //BS GPA

string ProgName //Master’s program name

Also create two constructors one of which is the default constructor.

Test out your gradStudent class by creating one graduate student object.

 

About the Author

Follow me


{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}