Answer to Question #244676 in Python for Caleb

Question #244676

Write a program to assist a college student in selecting an appropriate humanities or social science course as part of their degree.The college maintains a list of approved transfer courses that are available for AAS degrees like Computer Technology.use the following as eligible courses:

​Social science​ Humanities

​​ECO 210​​​​​ART 101

​​GEO 101​​​​​ENG 102

​​SOC 101​​​​​MUS 105

​​PSY 201​​​​​PHI 101

​​HIS 101​​​​​REL 101

​​PSC 201​​​​​

Create 2 lists for social science and humanities courses.Ask a student the course number they would like to take to fulfill the social science requirement.Search your list to see if the course is an acceptable course in that category.If so tell them the course they selected is fine.If not tell them that the course is not eligible and then display for them all the eligible courses.Repeat the same structure for humanities courses.The program should work for any number of courses in the lists


1
Expert's answer
2021-09-30T00:57:17-0400
Social_Science = ["ECO","GEO","SOC","PSY","HIS"]
Humanity = ["ART","ENG","MUS","PHI","REL","PSC"]
Social_Science_Map = {"ECO":210,"GEO":101,"SOC":101,"PSY":201,"HIS":101}
Humanity_Map = {"ART":101,"ENG":102,"MUS":105,"PHI":101,"REL":101,"PSC":201}
SS_course = int(input("Enter Course Number Of Social Science"))
count1 = 0
for key,val in Social_Science_Map.items():
  if SS_course==val:
    print("The Course You Selected Is Fine")
    count1=1
    break
if count1==0:
  print("Available Courses Are:","\n",Social_Science)
count2 = 0
Humanity_course = int(input("Enter Course Number Of Humanity"))
for key,val in Humanity_Map.items():
  if Humanity_course==val:
    print("The Course You Selected Is Fine")
    count2=1
    break
if count2==0:
  print("Available Courses Are:","\n",Humanity)

Enter Course Number Of Social Science101

The Course You Selected Is Fine

Enter Course Number Of Humanity105

The Course You Selected Is Fine


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS