Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

M 2 Lab Instructions Introduction: Assignment requires the use of decision structures and loops Instructions: For this assignment, refer to page 8 5 of your

M2Lab Instructions
Introduction:
Assignment requires the use of decision structures and loops
Instructions:
For this assignment, refer to page 85 of your textbook. The instructions below list the assignment requirements.
Create a Python code file named M2Lab_Func_Rev_FirstLast.py (replace "FirstLast" with your own name)
Add a title comment block to the top of the new Python file using the following form
# A brief description of the project
# Date
# CSC121 m2Lab- Function Review
# Your Name
Complete Exercise 7 on page 85(Dollar Store).(60 points)
Convert the program to a "Modularized" menu driven program, the zipped folder linked below contains a modularized menu driven program.
The three functions you created in step 3(calcCost, displayLine and display) above are to be saved in a DIFFERENT file (so all 3 functions in ONE file). give the file a discriptive name.
The main file is to display the menu shown below and call the functions you saved in that other file, when/if the user chooses to calculate item cost.
Note the program should only stop if the user enters 2, meaning the only when the user chooses to stop.
If a value other than 1 or 2 is entered, the program should display a statement that tells the user the value thev entered is invalid and then display the menu again.
Menu---------- Calculate cost 1) Cal
Exit
Below is a zipped folder that contains a modularized menu-driven program, refer to this program to see how to create a menu driven program.
menu driven zip
(opens in new window)
5. Submit your finished code solution file(s) through assignment link (posted below) by the posted deadline
Note: Program Pseudocode (detail algorithm) required
Grading criteria:
Refer to above and the grading criteria posted in rubrics below
M2Lab Grading Rubric docx
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_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

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions

Question

Are tools available to support the action?

Answered: 1 week ago

Question

Did you add the logo at correct size and proportion?

Answered: 1 week ago