Question: CMSC 1 3 5 Introduction to Scripting Programming Assignment 1 Scope: In this lab, students will write and run Python Script. Equipment / Tool Needed:

CMSC 135 Introduction to Scripting
Programming Assignment 1
Scope:
In this lab, students will write and run Python Script.
Equipment/ Tool Needed:
This lab requires the use of the following:
Laptop / Desktop
Any version of Windows
Any Web-Browser
IDLE IDE
Lab Outcomes:
Upon completion of this lab, students will be able to:
Understand basic structures and algorithms.
Properly apply basic programming constructs and concepts including:
o Variables and types (int, float, char, etc.)
o Strings, arrays, structures
o Sequential execution
o Assignments (=,+,-,*,/,%, etc.)
o Functions, procedures, and calls
o Debugging techniques
Run Python Scripts
Steps:
The following steps will be completed and submitted via a Microsoft word file along with Python source code file. Any other format will not be accepted and will result in a zero grade. Programming Labs are considered incomplete, if they do not compile and will result in a zero grade.
1. Check System Requirements
a. Check the system requirement to know whether your computer supports IDLE.
b. Download and Install IDLE (Refer to CMSC 135 Introduction to Scripting- Lab 1
2. Write a program that displays user personal information as shown below. Display number of cups of each ingredient needed by the user based on how many cookies the user wants to bake based on the given data.
Personal information to display in the program:
- Your name
- Your address, with city, state, and ZIP
- Your telephone number
- Your college major
Cookie recipe calls for the following ingredients:
-1.5 cups of sugar
-1 cup of butter
-2.75 cups of flour
The recipe produces 48 cookies with this amount of ingredients.
Program Output Sample:
The recipe produces 48 cookies with this amount of ingredients.
Program Output Sample:
a. Use the following Specifications:
i.1.5 cups of sugar
ii.1 cup of butter
iii. 2.75 cups of flour
The recipe produces 48 cookies with this amount of ingredients.
Submission Requirements:
LastNameFirstNamePLab1.py
Word Document with Algorithm/Pseudocode and screenshot of program output.
CMSC 1 3 5 Introduction to Scripting Programming

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!