Question: This zyLab activity prepares a student for a ful programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming
This zyLab activity prepares a student for a ful programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming assignment, and are weil-suited for an in person scheduled lab meeting or as self-practice A vanable like userNum can store a value like an integer Extend the given program as indicated. 1. output the user's input. (2 pts) 2. Output the input squared and cubed Hint Compute squared as userNum + userNum. (2 pts) 3 Get a second user input into userNurn2, and output the sum and product. (1.pt) Note: This zyLab outputs a newine affer each user-input prompt. For convenience in the examples below, the user's input vatue is shown on the next line but such values dont actually appear as outpuf when the program runs. Eater integer? 4 You entered: 4 4 aquared in 10 . And 4 cubed in 6411 Znter another inhegert
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
