Home » Write a program | Computer Science homework help

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).
 

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more