Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a dowhile loop to: a. ask the user for a number ( use the variable Guess). b. get user input. c. tell the user

Write a dowhile loop to: a. ask the user for a number ( use the variable Guess). b. get user input. c. tell the user the remainder of dividing the number by 5 (modulo) even if result is 0. d. continue the loop until the user enters zero (0) as the number. (Make sure the user is aware of this.) Organize the loop like this (this is a planning technique called pseudocode): do { prompt the user for a # (a. above) get user input (b. above) output to user (c. above) }while (your test goes here to see if the number is 0); 12. Create a for loop within a for loop. The outer loop will count from 1 to 5. The inner loop will count from 1 to 6 and write the product of the outer loop counter multiplied by the inner loop counter, all on the same line with one tab (\t) between. Between the loop ends put a line feed (endl or ). The result should look like this: 1 2 3 4 5 6 2 4 6 8 10 12 3 6 9 12 15 18 etc,

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions