![therealrg10](/avatars/30810.jpg)
therealrg10
12.03.2020 •
Mathematics
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
Solved
Show answers
More tips
- S Style and Beauty How to Make Your Lips Fuller? Ideas and Tips for Beautiful Lips...
- S Style and Beauty How are artificial nails removed?...
- F Family and Home How to Sew Curtain Tapes: Best Tips from Professionals...
- H Horoscopes, Magic, Divination How to Cast a Love Spell on a Guy? Guide for Guys...
- F Family and Home How to Properly Use a Water Level?...
- L Legal consultation What Documents Are Required for a Russian Passport?...
- H Health and Medicine How to Treat Styes: Causes, Symptoms, and Home Remedies...
- F Family and Home Protect Your Home or Apartment from Pesky Ants...
- T Travel and tourism Lost in the Catacombs: What to Do?...
- C Computers and Internet Make Easy Accessible Screenshots on iPad in Just a Few Minutes...
Answers on questions: Mathematics
- M Mathematics An arched bridge spans a river. The south end of the bridge has an elevation of 243 feet. Crossing the bridge from south to north, you first gain 45 feet to the top of the arch,...
- M Mathematics Veronica wants to multiply 23×15\dfrac23\times1532×15start fraction, 2, divided by, 3, end fraction, times, 15. So, she puts 15151515 triangles into 3333 equal-sized groups.What...
- M Mathematics Fill in the blank 7.5 cm =_ m A. 0.0075 B. 0.075 C. 0.75 D. 750...
- M Mathematics Find the m∠DCA A. 10 B. 29 C. 116 D. 40...
- M Mathematics Pleases help and thank you...
- M Mathematics What’s the least common factor of two and six...
- M Mathematics Jayce volunteers for the local library. the librarian wants to find out whether the patrons prefer paperback books or e-books. jayce cannot decide which method to use for polling...
Ответ:
12=100
27=x%
subtract
27-12=15
find what percent of 12=15
15> 12 so 15 is >100% of 12
remember that there is a 100% there
15-12=3
find what percent 3 is of 12
3/12=1/4=25%
so 25+100=125
27 is 125% more than 12