Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

ICS 3 C - 3 U Python Assignment # 2 Due Date: Selection and Repetition Each program must be named correctly. Each must have a

ICS3C-3U
Python Assignment #2
Due Date:
Selection and Repetition
Each program must be named correctly. Each must have a "header" comment at the start. Header should include your name and the purpose of the program.
CHOOSE ANY THREE OF THESE SIX QUESTIONS
QUESTION 1(name: PA2-SmallMediumLarge)
Create a program that asks the user for three numbers (which could be decimal values) and decide which number is larger, which is smallest, and which is in the middle. Display the numbers in order. Have your program repeat this process 4 times.
QUESTION 2(name: PA2-Counting)
Create a program that asks the user for a start value, and end value and a counting value. Then display all the numbers from "start" to "end" by increases of the counting value. Warn the user if the start value is more than the end value, and re-ask the user.
Extra: Instead of re-asking the user for a correction when the start value is more than the end value, just have the program display the numbers counting downwards.
QUESTION 3(name: PA2-ReportCard)
Create a program which asks the user for 4 grades (numbers) from this semester. Count how many credits the user achieved. Display a message for how many credits are achieved. Also calculate the average of the four grades, and display the average rounded off to 1 decimal place. For an average of 80% or more, also display a message such as "You receive an Honour Roll award for an average of more than 80%. Congratulations!"
image text in transcribed

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

Online Market Research Cost Effective Searching Of The Internet And Online Databases

Authors: John F. Lescher

1st Edition

0201489295, 978-0201489293

More Books

Students also viewed these Databases questions