Question

python anywhere questions. A Class Management System, Part 2 Please also refer to the description provided...

python anywhere questions.

A Class Management System, Part 2 Please also refer to the description provided in Part 1 of the project “A Class management System”. You have had a chance to state your understanding of the requirements for this project, draft a preliminary design, and express it by means of UML diagrams. Now it’s time to implement your design. As stated in the original requirements, there will be three categories of users:

1. Students

2. Instructors

3. Administrators

Recall that each of these users has a different level of read and write access/permissions to the system. Your system implementation should demonstrate the following use cases with an appropriate level of access/permissions: Use Cases: This list of use cases for your system, given below, is not exhaustive. It merely specifies the use cases that will be employed for testing the code that you will submit. You must ensure that your system is sensibly designed to address the design requirements expressed in Part 1 of this project.

1. An Administrator user can add a course and its attributes to the catalog or modify existing courses

2. An Administrator user can add/modify the year and semester of offering for a course

3. All users can view all courses available

4. All users can view course offerings available for a given year and semester

5. A Student user can register for a particular course for a given year and semester

6. A Student user can check which particular course they are registered for in a given year and semester

7. An Administrator user can assign an instructor to a particular course for a given year and semester

8. An Instructor user can check which particular course they are assigned to in a given year and semester

9. An Instructor user can check which particular students are registered in the course offering (course, year, semester) that instructor is teaching

10. An Instructor user can assign/reassign a course grade to each student registered in the course offering that that particular instructor is teaching

11. An Instructor user can view student grades for all students registered in that instructor’s course offerings

12. A Student user can check their own grade for a particular course offering

13. An Administrator user can view student grades for all students registered in any course offerings

14. An Administrator user can view student grades for all students registered in any course offerings assigned to a particular instructor

15. An Administrator user can assign/reassign student grades for all students registered in any course offerings assigned to a particular instructor

16. Student users can print/display their own grades by course offering (course, year, semester)

17. Instructor users can print/display the grades belonging to their students in any of their own course offerings (course, year, semester)

18. Administrator users can print/display grades belonging to students in any course offering (course, year, semester)

Additional Information: • A user will log in by supplying a name, ID, and password • Access/permissions to read/write will be keyed to the user ID • All functional choices may be presented as a menu displayed on a console; all menu selections may be made via a keyboard; there is no need to supply a Graphical User Interface (GUI) Data for Testing Some data is provided below.

Add other students and instructors as needed Students (given as name, ID, password):

Connie Willis, 10001, Cw1001

Kristine Rusch, 10002. Kr1002

Gregory Benford, 10003, Gb1003

Carlos Hernandez, 10004, Ch1004

Nnedi Okarafor, 10005, No1005

Catherynne Valente, 10006, Cv1006

Instructors (given as name, ID, password):

Nancy Kress, 1003, Nk1003

Vandana Singh, 1004, Vs1004

Usman Malik, 1005, Um1005

Administrators (given as name, ID, password):

Leigh Brackett, 1001, Lb1001

Isaac Asimov, 1002, Ia1002

Courses (only number and title are provided here, fill in the remaining information (credits and grading scale) yourself)

CSCI1004 A Weakly Typical Python

CSCI2004 The Objective of the Caml

POLS2701 The Meaning of the Constitution

HUMN2211 Living the Liberal Arts

PHIL3333 The Objective Truth

BIOS3791 Living Systems

ENGR4792 Systems Living

PHIL4797 Living Systemically

Some Course, Instructor, and Student Combinations in a given semester and year that will be tested. Make additional combinations for your own testing.

CSCI1004: Vandana Singh: Connie Willis, Carlos Hernandez: Fall, 2016

PHIL3333: Usman Malik: Connie Willis. Gregory Benford: Spring 2017

ENGR4792: Usman Malik: Kristine Rusch, Nnedi Okarafor, Catherynne Valente: Fall 2017

0 0
Add a comment Improve this question Transcribed image text
Answer #1


def get_id(std):

return std[0]

def get_name(std):
  
return std[1]

def get_courses(std):

return std[2]

def get_fname(name):

return name[0]

def get_lname(name):
"""Returns last name"""
return name[1]

def get_ccode(course_det):
"""Returns course code part of the tuple"""
return course_det[0]

def get_grade(course_det):
"""Returns grade part of the tuple"""
return course_det[1]


st1=student("620000101","John","Doe","CS11Q",80,"CS11R",60,"CS20R",50,"CS20S",60,"CS22Q",65,"CS23Q",80)


"""Prints the students details and GPA"""
print ("Student Id:", get_id(std))
print ("Student name:", get_fname(get_name(std)), get_lname(get_name(std)))
print ("GPA: %.2f" %(calc_gpa(std)))


def compute_letter_grade(num):
if(num > 85):
return 'A+'
elif(num >=70 and num <= 85):
return 'A'
elif(num >= 67 and num <= 69):
return 'A-'
elif(num >= 63 and num <= 66):
return 'B+'
elif(num >= 60 and num <= 62):
return 'B'
elif(num >= 57 and num <= 59):
return 'B-'
elif(num >= 53 and num <= 56):
return 'C+'
elif(num >= 50 and num <= 52):
return 'C'
elif(num >= 47 and num <= 49):
return 'C-'
elif(num >= 43 and num <= 46):
return 'D+'
elif(num >= 36 and num <= 42):
return 'D'
elif(num <= 35):
return 'F'


def calc_letter_grade(student):
course = []
courselist=get_courses(student)
number_grade= [x[1] for x in courselist]
course_code= [x[0] for x in courselist]
letterGrade=map(compute_letter_grade,number_grade)
course=zip(course_code,letterGrade)
return course


def convert_to_wtqp(codegrade):
result1 = 0
result2 = 0
  
for my_key_cc,my_value_cc in credit_list.items():
if my_key_cc == get_ccode(codegrade).upper():
result1 = my_value_cc

  
for my_key_lgrade,my_value_lgrade in qp_list.items():
if my_key_lgrade == get_grade(codegrade):
result2 = my_value_lgrade
  
return (result1,result2)


lst_cc_lgrade = calc_letter_grade(std)

for i in lst_cc_lgrade:
cc_lgrade_value.append(convert_to_wtqp(i))
  
for i in cc_lgrade_value:
cc_grade_point.append(i[0]*i[1])


result=(sum(cc_grade_point)/sum(cc_credit_weight))

return result

  

Add a comment
Know the answer?
Add Answer to:
python anywhere questions. A Class Management System, Part 2 Please also refer to the description provided...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • "SEU Examinations System(SES),"automation of the examination activities of SEU that aims to bring in a centralized...

    "SEU Examinations System(SES),"automation of the examination activities of SEU that aims to bring in a centralized system that will ensure the operations in the context of an examination that can manage effectively. This system allows students to register the courses every semester themselves into the system by providing the details or by sharing details to admin at each branch. If the student is doing it by their own, then the system should check the login credentials and then the user...

  • The case study is about the analysis of the students’ understanding in analyzing a given scenario...

    The case study is about the analysis of the students’ understanding in analyzing a given scenario and practical skills to apply concepts and build diagrams studied in IT242 (Software Engineering). The case study consists of five parts. Students are required to answer all these parts based on the below scenario. The SEU has adopted a blending approach to electronic learning, requiring learners to attend class lectures (25%), while 75% of course time is assigned to virtual classes, learning forums and...

  • plz No handwriting and NO pictures Introduction The case study is about the analysis of the...

    plz No handwriting and NO pictures Introduction The case study is about the analysis of the students’ understanding in analyzing a given scenario and practical skills to apply concepts and build diagrams studied in IT242 (Software Engineering). The case study consists of five parts. Students are required to answer all these parts based on the below scenario. The SEU has adopted a blending approach to electronic learning, requiring learners to attend class lectures (25%), while 75% of course time is...

  • python 3 question Project Description Electronic gradebooks are used by instructors to store grades on individual assignments and to calculate students’ overall grades. Perhaps your instructor uses gr...

    python 3 question Project Description Electronic gradebooks are used by instructors to store grades on individual assignments and to calculate students’ overall grades. Perhaps your instructor uses gradebook software to keep track of your grades. Some instructors like to calculate grades based on what is sometimes called a “total points” system. This is the simplest way to calculate grades. A student’s grade is the sum of the points earned on all assignments divided by the sum of the points available...

  • i have the case study question with the answers but i need help to re-write the...

    i have the case study question with the answers but i need help to re-write the answers. please see the attached files Case Study Analysis (CSF3003) Assessment Description and Requirements CLO1: Case Study 1 Ahmad lef home to study master and PhD in Australia. He has fees for the first semester only. After he arrived to Sydney and settled down, he start looking for a part-time job to save money for the next term. Ahmad has some experience on making...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT