logo

COMP B10 Introduction to Programming Methodologies using Python

12 Pages3218 Words591 Views
   

Introduction to Programming Methodologies using Python (COMP B10)

   

Added on  2019-09-18

COMP B10 Introduction to Programming Methodologies using Python

   

Introduction to Programming Methodologies using Python (COMP B10)

   Added on 2019-09-18

ShareRelated Documents
COMP B10 – INTRO TO PROGRAMMING METHODOLOGIES USING PYTHONASSIGNMENT #7 (CLASSES AND OOP)Create the Python code for a program that will allow a user to maintain a student assignment score database.I am providing you with a mostly completed starting program including the shells for all the functions and classes that you will need. You will complete the provided shell without adding additional functions, classes or class methods. This assignment is a test to see if you can “read” code and understand OOP.You will complete the methods (class functions) for the following:Course.addStudentCourse.deleteStudentStudent.addScoreStudent.getIDStudent.getNameStudent.getGradesYou will complete the program functions for the following:addStudentdisplayStudentAverageAdditional notes:You MUST use the provided program template. Your messages and prompts should look EXACTLY like those in the sample. Duplicating all blanklines and spacing.I am providing the datafile.dat file just so you have some starting data, but you don’t need this to test your program because the program will create the file if it does not exist.You do not need to document your variable for this program.Pay attention to spelling and all other things visual -- you will be graded on this.Staple multi-page outputs.Use appropriate white-space and line-continuations in your source code.Upload ONLY your Python program to Moodle in the designated area.SAMPLE RUN:
COMP B10 Introduction to Programming Methodologies using Python_1
*************************Grade Management System*************************Course data loaded.1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 1Student Grade Report:ID: 002Name: Mary JonesAverage is 89.00%ID: 001Name: Mike WilsonAverage is 76.00%1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 2Course: COMP B10 - Intro to Structured Programming using PythonStudent ID: 002, Student Name: Mary Jones(Quiz 1 - 88.0,100.0)(Midterm Exam - 90.0,100.0)Student ID: 001, Student Name: Mike Wilson(Quiz 1 - 73.0,100.0)(Quiz 3 - 90.0,100.0)(Midterm Exam - 65.0,100.0)
COMP B10 Introduction to Programming Methodologies using Python_2
1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 3Enter the NEW student's ID: 004Enter the NEW student's name: Jim BradyStudent Added1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 3Enter the NEW student's ID: 001Student ID already in the database1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 5Enter student ID: 0004Student ID not found.1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 5Enter student ID: 004Enter the task description: Quiz 1Enter the points received: 25Enter the points possible: 30
COMP B10 Introduction to Programming Methodologies using Python_3
Record updated1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 1Student Grade Report:ID: 002Name: Mary JonesAverage is 89.00%ID: 004Name: Jim BradyAverage is 83.33%ID: 001Name: Mike WilsonAverage is 76.00%1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 6Enter student ID: 001Mike Wilson's average = 76.00%1. Display course roster and individual averages2. Dump all course records3. Add a student4. Delete a student5. Add a score to student's record6. Display a student's overall average7. Display a student's grades8. Dump a student's recordQ. Quit programSelect menu option to perform: 7Enter student ID: 004Student ID: 004
COMP B10 Introduction to Programming Methodologies using Python_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Java program to grade students based on quizzes and exams
|5
|790
|169