Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 1170 Open Lab Assignment #5 Program due: Wednesday March 28 Problem Description: (Function exercise) This problem contains function and nested loop. Write a program

image text in transcribed
CSCI 1170 Open Lab Assignment #5 Program due: Wednesday March 28 Problem Description: (Function exercise) This problem contains function and nested loop. Write a program that displays a menu and processes the user's choices as shown in the sample runs using Python. Your program should meet the following requirements. Purpose of this assignment: The purpose of this assignment is to understand selection, loop and function concepts which are covered in Chapter 3, 4, and 5. he purpose of progran: (nor shown lease choose from the seu : Draw a single bar of symbol Draw a single bar of symbol Print nunbers from n to Draw a rectangle Draw a right triangle Quit Print numbers fros n ton Draw a rectangle Draw a right triangle Quit nter your choice: 2 nter the first bound: 2 nter the second bound: 7 nter your choice: is an invalid choice is the sequence 3 45617 lease choose from the senu lease choose fron the menu Draw a single bar of symbol Print numbers fros n to n Drau a rectangle Draw a right triangle Quit Draw a single bar of synbol Print nunbers fron n tom Draw a rectangle Draw a right triangle Quit nter your choice: nter your choice: nter the symbol for the rectangle nter the width of the rectangle: 6 nter the height of the rectangle: is an invalid choice lease choose from the senu : Draw a single bar of symbol is your rectangle Print numbers fros n ton Drau a rectangle Draw a right triangle Quit lease choose from the nenu nter your choice: 1 nter the length of the bar: 7 Draw a single bar of symbol Print nunbers fron n tom Draw a rectangle Draw a right triangle Quit nter the symbol for the bar: is your bar: nter your choice: nter the symbol for the rectangle: nter the height of the rectangle: s lease choose fron the senu Draw a single bar of syabol Print numbers fros n to n Drau a rectangle Drau a right triangle Quit is your triangle nter your choice: 2 nter the first bound: 7 nter the second bound: 2 Draw a single bar of symbol Print numbers from n to m Draw a rectangle Draw a right triangle Quit numbers are 6543 2 nter your choice:s

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

Big Data Fundamentals Concepts, Drivers & Techniques

Authors: Thomas Erl, Wajid Khattak, Paul Buhler

1st Edition

0134291204, 9780134291208

More Books

Students also viewed these Databases questions

Question

=+industrial action Under what circumstances can unions strike?

Answered: 1 week ago

Question

=+What forms of industrial action are common?

Answered: 1 week ago