Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP!!! I keep getting this error below... File ./LAB13h.sh, line 27 elif: ^ SyntaxError: invalid syntax # ! /usr/bin/python3 # Prompting user for required info

HELP!!!

image text in transcribed

I keep getting this error below...

File "./LAB13h.sh", line 27 elif: ^ SyntaxError: invalid syntax

# ! /usr/bin/python3 # Prompting user for required info name-input 'please enter your namen) major-input ( 'please enter your intended major ') courses-int (input 'AP courses completed so far? ')) stemCour se s=int (input ('Of those courses completed, how many are STEM courses? ')) stemGpa i print ('GPA for each science related course on new line ') for i in range (stemCourses) stemGpa.append (float (input(')) overal1Gpa-float (input 'Overall GPA? ')) eligibleCourses "Science", "Technology Engineering", "Math"] # Making list of eligible courses if((major in eligibleCourses) and (courses>-5) and overal!Gpa>-3.0) : # Checking for all eligibility conditions print ('qualified') average-sum(stemCourses) / len(stemCourses) # Getting avg gpa of science courses # Checking the amount eligible if (len(stemCourses)=-4 and average >=3.8) : elif (len (stemCourses) 3 and average>-3.5) elif (len (stemCourses) 2 and average>-3.25) elif: amount-5000 amount 4000 amount-3000 print ('qualified but not elgible') file open ("scholarshipFile.txt", "w") file.write("student with name: "+name +" is eligible for scholarship ") # Writing to file else: print (not eligible')

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions