Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 . 1 7 LAB: Departments A company assigns a letter to each of its organizational departments as shown in the figure. Write a Python

4.17 LAB: Departments
A company assigns a letter to each of its organizational departments as shown in the figure. Write a Python program that uses a text prompt to ask the user for one of the 8 letters used. Check that the user has entered one of those allowed letters, but it can be upper-case or lower-case; if not, print a sentence indicating that an "error" occurred and then end without printing anything else. For allowed letters, use a cascaded if structure to convert that letter into a string, according to the table below. Store the string in a string variable. Then, after the if structure, print out a sentence that indicates the name of the department

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_2

Step: 3

blur-text-image_3

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 Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

Students also viewed these Databases questions

Question

1 . Television News channels importantance of our Life pattern ?

Answered: 1 week ago

Question

=+ Are there additional forms of employee representation?

Answered: 1 week ago