COMP B10 Introduction to Programming Methodologies using Python

Added on - 18 Sep 2019

  • COMP B10

    course code

  • 12

    pages

  • 3218

    words

  • 208

    views

  • 0

    downloads

Showing pages 1 to 4 of 12 pages
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 scoredatabase.I am providing you with a mostly completed starting program including the shells for all the functionsand classes that you will need. You will complete the provided shell without adding additionalfunctions, classes or class methods. This assignment is a test to see if you can “read” code andunderstand 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 totest 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:
*************************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)
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
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
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Download This Document