subject

This is an assignment giving to me by my teacher, I am not sure how to solve it so please help. This should be in python Create a dictionary ‘students’ that should have ID, Name, Subjects and Marks. Please consider following when choosing which data type to use for each of the items:
ID - should start with ‘S’ and have 3 numbers after that, eg, S001.
Name should have “First Name” and “Last Name”.
There should be 5 subjects - Math, English, ComputerScience, Science and PE.
You should be able to store marks for each subject for two different semesters.
Marks should initialize with 0, if not entered.
Pre-populate your dictionary with 2 sample records. Print the dictionary.
Now traverse through the ‘students’ you created in #1 and print the complete record of a student based on the ID input by the user.
Using the above dictionary, print the total number of students you have in it.
Add a new student. Print the details of the new student.
Allow the user to change the marks for one subject for one student. Let the user enter student ID, the subject and the new marks for that subject. Change the marks and print the complete record of this student.

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 19:00, amayax77
Write a program that displays the following menu: geometry calculator 1. calculate the area of a circle 2. calculate the area of a rectangle 3. calculate the area of a triangle 4. quit enter your choice (1-4): if the user enters 1, the program should ask for the radius of the circle and then display its area. use the following formula: area = ď€(the square of r) use 3.14159 for ď€ and the radius of the circle for r. if the user enters 2, the program should ask for the length and width of the rectangle and then display the rectangle’s area. use the following formula: area = length * width if the user enters 3, the program should ask for the length of the triangle’s base and its height, and then display its area. use the following formula: area = base * height * .5 if the user enters 4, the program should end. input validation: display an error message if the user enters a number outside the range of 1 through 4 when selecting an item from the menu. do not accept negative values for the circle’s radius, the rectangle’s length or width, or the triangle’s base or height. note: if the user enters an improper menu choice (1-4), the program prints "the valid choices are 1 through 4. run the program again and select one of those." if the user enters a negative radius, the program prints "the radius can not be less than zero." if the user enters a negative value for height or base, the program prints "only enter positive values for base and height."
Answers: 1
image
Computers and Technology, 24.06.2019 01:30, tanya44737
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, LuckyCharms988
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
image
Computers and Technology, 24.06.2019 14:30, heathersloan274
Which computer network component connects two different networks together and allows them to communicate? a is a node (or a device) that connects two different networks together and allows them to communicate.
Answers: 1
You know the right answer?
This is an assignment giving to me by my teacher, I am not sure how to solve it so please help. This...

Questions in other subjects:

Konu
Mathematics, 17.12.2020 23:20
Konu
History, 17.12.2020 23:20
Konu
Mathematics, 17.12.2020 23:20
Konu
Mathematics, 17.12.2020 23:20