Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please use python language. 16. Write a program that creates four variables: section, time, prof, and days. Get the values for prof and days from

Please use python language.
image text in transcribed
image text in transcribed
16. Write a program that creates four variables: section, time, prof, and days. Get the values for prof and days from the user by asking for the last name of the professor and the days of the week (MW or TH). Your program should then use branching to set the values of section and time according to the following table. After branching, then print all the information about the class (see sample run below) using the four variables. No error checking needed. (10 pts) Sample run 7. Write a program that asks the user for words until the user enters a blank line, which is a return with no input (i.e., the empty string). Then the program should print out the longest and the shortest words entered. Use the appropriate loop. Create any variables that you need. No error checking is required (for the user putting two or more words on a line or other weirdness). (10 pts)

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

Upgrading Oracle Databases Oracle Database New Features

Authors: Charles Kim, Gary Gordhamer, Sean Scott

1st Edition

B0BL12WFP6, 979-8359657501

More Books

Students also viewed these Databases questions

Question

7. Discuss the key valuation ratios.

Answered: 1 week ago