2023 Instructions Part I Instructions This is the flower box and it should be at the beginning of each assignment | Assignment Collections

Computer Science 2023 Python Week 2

2023 Instructions Part I Instructions This is the flower box and it should be at the beginning of each assignment | Assignment Collections

 

Instructions

Part I Instructions:

# This is the flower box and it should be at the beginning of each assignment
# You must add comments to your code
# Program name : Wk2P1_firstname_lastname.py
# Student Name : Ymmas Azaba
# Course : ENTD220
# Instructor : My Instructor
# Date : Any Day# Copy Wrong : This is my work

You are going to create the following:

A simple calculator to accept two numbers and print the addition, subtraction, multiplication and division of the two numbers.

You are required to store each input number in a separate variable.

Hints
1) You should also store each calculation in a variable
2) You will get an error if you divide by zero, you will address this problem next assignment

Sample output

This is my first programming assignment
Enter your First number —> 25
Enter your Second number —> 14

The Result of 25+14=39.0
The Result of 25-14=11.0
The Result of 25*14=350.0
The Result of 25/14=1.78571428571

Thanks for using our calculator!Submission Instructions:

Make sure that you save your code in a text file in this format. Check your file after the upload to see if they are readable. You can paste your code in the student submission text area.

W2P1_firstname_lastname.py

Part II Instructions:

# This is the flower box and it should at the beginning of each assignment
# You must add comments to your code
# Program name : Wk2P2_firstname_lastname.py
# Student Name : Ymmas Azaba
# Course : ENTD220
# Instructor : My Instructor
# Date : Any Day

# Copy Wrong : This is my work

You are going to enhance the prior assignment by doing the following:

1) Limit the input range from -100 to 100 for each input number
2) Prevent dividing by zero (Do not use try-except)

3) Instead of hard coding values from -100 to 100, let the user enter the range

Hints:

See sample output for messages.
Sample output

Enter your Lower range —> -100
Enter your Higher range —> 100
Enter your First number —> 50
Enter your Second number —> 20

The Result of 50+20=70.0
The Result of 50-20=30.0
The Result of 50*20=1000.0
The Result of 50/20=2.5

Thanks for using our calculator!
====================================

Enter your Lower range —> -50
Enter your Higher range —> 50
Enter your First number —> 20
Enter your Second number —> 0

The Result of 20.0+0.0=20.0
The Result of 20.0-0.0=20.0
The Result of 20.0*0.0=0.0
The Result of 20.0/0.0=You cannot divide by Zero

Thanks for using our calculator!

====================================

Enter your Lower range —> 10
Enter your Higher range —> 50
Enter your First number —> 5
Enter your Second number —> 60

The input values are out side the input ranges
Please check the numbers and try again
Thanks for using our calculator 

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational