SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 305 Weeks Ago, 1 Day Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 28 Nov 2017 My Price 8.00

zyLab activity is intended for students to prepare

This zyLab activity is intended for students to prepare for a larger programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming assignment. Warm up exercises are ideally suited for an in-person scheduled lab meeting or as self-practice. The last section provides a full programming assignment.

 

A variable like userNum can store a value like an integer. Extend the given program to print userNum values as indicated. (Submit for 2 points).

(1) Output the user's input.

Enter integer: 4
You entered: 4

(2) Extend to output the input squared and cubed. Hint: Compute squared as userNum * userNum. (Submit for 2 points, so 4 points total).

Enter integer: 4
You entered: 4
4 squared is 16 
And 4 cubed is 64 !! 

(3) Extend to get a second user input into userNum2. Output sum and product. (Submit for 1 point, so 5 points total).

Enter integer: 4
You entered: 4
4 squared is 16 
And 4 cubed is 64 !!
Enter another integer: 5
4 + 5 is 9
4 * 5 is 20

LAB

ACTIVITY

1.13.1: Warm up: Basic output with variables (Python 3)0 / 5

main.py

Load default template...

1

2

3

 

 

userNum = int(input('Enter integer: n'))

# Type your code here

 

 

Develop mode

Submit mode

Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click "Run program" and observe the program's output in the second box.

Answers

(5)
Status NEW Posted 28 Nov 2017 12:11 PM My Price 8.00

-----------  ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly

Not Rated(0)