Click here to Skip to main content
14,767,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Write Python code(s) to do:
	
1. Ask the user to enter the: NAME (A, B, C, D, E, F, G, H, I, J), AGE, GPA (out of 4) and the MAJOR ( CS, CET, CIS, CE). Then print these information as follows: My name starts with the letter (NAME) and I am (AGE) years old. I study (MAJOR) and my GPA is: (GPA).

2. Repeat step 1 for 10 users with different values (Names can’t be repeated).

3. Store the entered information in the file students.CSV. 

4. Plot the 4 features (NAME, AGE, GPA, and MAJOR) on separate figures using the seaborn library functions. 

5. Calculate the mean() of the GPAs and Ages.
************************************************************************
	
6. Define a function to evaluate the Root Mean Squared Error (RMSE) according to the following equation:
RMSE=√(∑_(i=1)^m〖1/m (y ̂_i-y_i )^2 〗)

7. Calculate the mean() of the GPAs, and consider it to be the predicted value for all students (y ̂_i) and consider the original GPA of the student to be y_i. 
	
8. Compute the RMSE for each student according to the above equation (the squared root of the difference between the predicted and original GPA values). The value of m is 10 (number of the samples)
	
9. Store the computed RMSE values in the student.CSV file (as a new column entitled RMSE)


What I have tried:

I am beginner and need to get started with these problems
Posted
Updated 29-Feb-20 22:32pm

Quote:
How do I get the solution of the following using Python

With work :)
The sooner you start, the better it get.
Quote:
I am beginner and need to get started with these problems

Have a talk with your teacher or think about another job.

You show no attempt to solve the problem yourself, you have no question, your main effort is pasting the requirement, you just want us to do your HomeWork.
HomeWork problems are simplified versions of the kind of problems you will have to solve in real life, their purpose is learning and practicing.

We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
   
Go to The Python Tutorial — Python 3.7.6 documentation[^] where you will find all the information you need.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900