Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Algorithm Workbench 1. Design an algorithm that prompts the user to enter his or her height and stores the user's inpu in a variable named

image text in transcribed

Algorithm Workbench 1. Design an algorithm that prompts the user to enter his or her height and stores the user's inpu in a variable named height. 2. Design an algorithm that prompts the user to enter his or her favorite color and stores the user's input in a variable named color. 3. Write assignment statements that perform the following operations with the variables a and b. a. Adds 2 to a and stores the result in b b. Multiplies b times 4 and stores the result in a c. Divides a by 3.14 and stores the result in b d. Subtracts 8 from b and stores the result in a 4. Assume the variables result, x, y, and z are all integers, and that x = 4, y = 8, and z = 2. What value will be stored in result in each of the following statements? a. Set result = x + y b. Set result = 7 * 2 C. Set result = y / x d. Set result = y - Z

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

Genomes And Databases On The Internet A Practical Guide To Functions And Applications

Authors: Paul Rangel

1st Edition

189848631X, 978-1898486312

Students also viewed these Databases questions