subject
Computers and Technology, 17.09.2021 06:20 ash3246

2.2 Problem 2 - Warm up: Basic output with variables This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming assignment, and are well-suited for an in-person scheduled lab meeting or as self-practice.

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.

Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs.

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).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 07:00
Why were most movies from the late 1890s until the early 1930s only filmed in black and white? there were only a few people who could afford the technology to produce color motion pictures back then. audiences did not want color motion pictures until later. the film used to make color motion pictures often overheated, which was a safety hazard, so it was generally not allowed. color films had to be hand-colored, frame by frame.
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
question
Computers and Technology, 25.06.2019 12:00
Which describes which ctso each student should join
Answers: 1
question
Computers and Technology, 25.06.2019 13:00
Abasic wooden railway set contains the pieces shown in figure 3.the task is to connect these pieces into a railway that has no overlapping tracksand no loose ends where a train could run off onto the floor.a. suppose that the pieces fit together exactly with no slack. give aprecise formulation of the task as a search problem.b. identify a suitable search algorithm for this task and explain yourchoice.in c/c++ or python language, !
Answers: 3
You know the right answer?
2.2 Problem 2 - Warm up: Basic output with variables This zyLab activity prepares a student for a...
Questions
question
Advanced Placement (AP), 25.07.2019 14:20
Questions on the website: 13722366