Write a program | Computer Science homework help


 Program 1: a) Write a program that will ask the user some questions and award points based on answers given. The total points will determine whether a prize is won. Here are the criteria: 3. K your program “L3Qlinitials.py” must start with a commented ID Box AND include a comment that indicates the purpose of the program. . Your program should: (a) Display the title as shown in the examples later on (b) For each question: a. Display the question text identically as shown in the examples. b. Prompt the user for an answer and allow them to type it in. The user input in the examples was colored to help you identify visually it. NOTE: Your program is not expected to include colors. e. Ensure your program is not case sensitive for any text response. d. Calculate and display the number of points awarded for each question based on the following table. use feedback as in the examples. points 2 points 4 points Question 1 no Lycs Question 2 0 1-6 Question 3 none AAA C 7+ Once all of the questions have been answered, output the total points achieved and the prize awarded (if any). The user will win the big prize with 10 points, the small prize with 6 or 8 points, and no prize with any other total. ** Scavenger hunt results 1. Did you find a 3.5 inch floppy disk (yes or no) ? YES You get 2 points. Example 2. How many marbles did you find? Enter a number: 8 You get 4 points. 3. What size battery did you find (none, AAA, C)? C You get 4 points. You have 10 points. You win the big prize! *** Scavenger hunt results *** 1. Did you find a 3.5 inch floppy disk (yes or no)? yes You get 2 points. 2. How many marbles did you find? Enter a number: 2 You get 4 points. 3. What size battery did you find (none, AAA, C)?  You get 2 points. You have 8 points. You win the small prize! *** Scavenger hunt results *** AND 1. Did you find a 3.5 inch floppy disk (yes or no)? no No points awarded. ha 2. How many marbles did you find? Enter a number: 9 No points awarded. 3. What size battery did you find (none, AAA, C)? None No points awarded. Pro You have 0 points. Sorry! No prize won. Keep in mind that non-colored parts of the examples form the template and must appear identically in your program as written. This includes tabs, numbering, spacing, blank lines, wording, and punctuation. Template text cannot be altered, The only parts that will change are the parts that the user types in the calculated points, and the prize won (if any). Save your program as “L3Qlinitials.pyreplacing initials with your actual initials. Submit your file electronically for marking (unless otherwise instructed).
 

Write a program | Computer Science homework help


 Program 1: a) Write a program that will ask the user some questions and award points based on answers given. The total points will determine whether a prize is won. Here are the criteria: 3. K your program “L3Qlinitials.py” must start with a commented ID Box AND include a comment that indicates the purpose of the program. . Your program should: (a) Display the title as shown in the examples later on (b) For each question: a. Display the question text identically as shown in the examples. b. Prompt the user for an answer and allow them to type it in. The user input in the examples was colored to help you identify visually it. NOTE: Your program is not expected to include colors. e. Ensure your program is not case sensitive for any text response. d. Calculate and display the number of points awarded for each question based on the following table. use feedback as in the examples. points 2 points 4 points Question 1 no Lycs Question 2 0 1-6 Question 3 none AAA C 7+ Once all of the questions have been answered, output the total points achieved and the prize awarded (if any). The user will win the big prize with 10 points, the small prize with 6 or 8 points, and no prize with any other total. ** Scavenger hunt results 1. Did you find a 3.5 inch floppy disk (yes or no) ? YES You get 2 points. Example 2. How many marbles did you find? Enter a number: 8 You get 4 points. 3. What size battery did you find (none, AAA, C)? C You get 4 points. You have 10 points. You win the big prize! *** Scavenger hunt results *** 1. Did you find a 3.5 inch floppy disk (yes or no)? yes You get 2 points. 2. How many marbles did you find? Enter a number: 2 You get 4 points. 3. What size battery did you find (none, AAA, C)?  You get 2 points. You have 8 points. You win the small prize! *** Scavenger hunt results *** AND 1. Did you find a 3.5 inch floppy disk (yes or no)? no No points awarded. ha 2. How many marbles did you find? Enter a number: 9 No points awarded. 3. What size battery did you find (none, AAA, C)? None No points awarded. Pro You have 0 points. Sorry! No prize won. Keep in mind that non-colored parts of the examples form the template and must appear identically in your program as written. This includes tabs, numbering, spacing, blank lines, wording, and punctuation. Template text cannot be altered, The only parts that will change are the parts that the user types in the calculated points, and the prize won (if any). Save your program as “L3Qlinitials.pyreplacing initials with your actual initials. Submit your file electronically for marking (unless otherwise instructed).
 

Be the first to reply

Leave a Reply

Your email address will not be published.