Placeholder

CS192 Programming Essentials – Week 1 Assignment

$15.00

Description

Write a program that does the following in order:
1.     Asks the user to enter a name
2.     Asks the user to enter a number “x”
3.     Asks the user to enter a number “y”
4.     Calculates the sum of “x” and “y”
5.     Prints out the number for “x”, “y” and “sum”
An example of the program input and output is shown below:
Enter your name: Belinda Patton
Enter number x: 50
Enter number y: 10
The sum of 50 and 10 is 60
SCREENSHOTS
SOLUTION
PAYMENT
The solution consists of:
A report word document for this assignment
All Python programs in case you want to run theses programs on your computer.
Screenshots while running programs
Attachments [Move over files to preview content of those files]
CS192_WEEK_1.zip (100.28 KB)
CS192-Week-1-Screenshot.png
CS192_Week1_Report.docx
Pycharm Project
CS192Week1
.idea
.gitignore
CS192Week1.iml
inspectionProfiles
profiles_settings.xml
misc.xml
modules.xml
workspace.xml
week1.py
Python Code
week1.py
Preview week1.py
if __name__ == ‘__main__’: print (‘Enter your name:’) name = input() print (‘Enter number x:’) x = int(input()) print (‘Enter number y:’)
xxxxx (‘xxxxx xxxxxx x:’)
x = xxx(xxxxx())
xxxxx (‘xxx xxx xx %x xxx %x xx %x’ % (x, x, x + x))
Preview week1.py
if __name__ == ‘__main__’: print (‘Enter your name:’) name = input() print (‘Enter number x:’) x = int(input()) print (‘Enter number y:’)
xxxxx (‘xxxxx xxxxxx x:’)
x = xxx(xxxxx())
xxxxx (‘xxx xxx xx %x xxx %x xx %x’ % (x, x, x + x))
Price: $15
You May Also Like:
CS192 Programming Essentials – Week 2 Assignment
CS192 Programming Essentials – Week 3 Assignment
CS192 Programming Essentials – Week 4 Assignment
CS192 Programming Essentials – Week 5 Assignment
CS192 Programming Essentials – Week 6 Assignment
CS192 Programming Essentials – Week 7 Assignment
CS192 Programming Essentials – Week 8 Assignment

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.