Question

Use Structured English to write a step-by-step procedure (algorithm) for the problems given below. Read two...

Use Structured English to write a step-by-step procedure (algorithm) for the problems given below.

Read two numbers and find their sum; then read a third number and multiply it by the previously found sum. Print the result.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Algorithm -

  • Read the first input number x
  • Read the second input number y
  • Compute the sum and store in temporary variable temp <-- x+y
  • Read the third input number z
  • Multiple z with previous stored sum and store it in result result - z*(x+y)
  • Print the result z on the console.
Add a comment
Know the answer?
Add Answer to:
Use Structured English to write a step-by-step procedure (algorithm) for the problems given below. Read two...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 1.Use Structured English to write a step-by-step procedure (algorithm) for the problems given below. a.A teller...

    1.Use Structured English to write a step-by-step procedure (algorithm) for the problems given below. a.A teller has to check a customer’s ID to see if he can sell him alcohol. If the age on the ID is less than 21, there will be no sale; otherwise (equal or greater than 21), the sale can go through. b.Calculate the product of all the numbers you are given from an input device; then print the result.

  • Title Algorithms Functional Requirements and Marks using c++ Write a pseudo-code algorithm for the following problems:...

    Title Algorithms Functional Requirements and Marks using c++ Write a pseudo-code algorithm for the following problems: Detect if three angles can make a triangle.    (1) Hint: In a triangle, the sum of all angles is 180. Switch the value of two numbers     (1) If a=2 and b=5, we want to have a=5 and b=2 at the end. Remember that a=b will result in the old value to of a to get lost. Receive a set of numbers and find...

  • Q4. Write an algorithm, draw the flowchart and write a C++ program to • Read the...

    Q4. Write an algorithm, draw the flowchart and write a C++ program to • Read the Number and Letter from the user • Check the number and letter then print the corresponding month name as given in Table Q4 using IF ELSE STATEMENT. Table: Q4 Number and Letter Month Name JANUARY 2 F FEBRAURY 3 M MARCH 4 A APRIL Other numbers Invalid Input 1J Sample Output: Enter the value of number:1 Enter the value of letter:) JANUARY Algorithm: Flowchart:...

  • Q1: Write an algorithm and sketch the flowchart to read 20 numbers for x and finding...

    Q1: Write an algorithm and sketch the flowchart to read 20 numbers for x and finding the number of times that the number 100 is repeated between these numbers. (12 marks) Q2: What is the difference between prefix decrementer (- - i) and postfix decrementer (i - -) explain using examples. Q3: C++ includes a very special operator called the ternary operator. Explain with example how this operator used? Q4: Write C++ Program which output this result ******50 *****500 ****5000...

  • MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the...

    MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest common divisor of two positive numbers. . • Your program should read the two positive integers using dialog boxes. If they are not positive, a message box should be displayed with an appropriate message. • Your program needs to have a procedure that takes two positive integers as parameters. • You need to follow cdecl protocol for parameter passing. • Display the valid...

  • MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest...

    MASM Assembly Language x86 Processor. Must use windows32 framework Write a non-recursive algorithm to find the greatest common divisor of two positive numbers. . • Your program should read the two positive integers using dialog boxes. If they are not positive, a message box should be displayed with an appropriate message. • Your program needs to have a procedure that takes two positive integers as parameters. • You need to follow cdecl protocol for parameter passing. • Display the valid...

  • I. Write a computer program to do the following tasks: a) read a ist of integer...

    I. Write a computer program to do the following tasks: a) read a ist of integer data items into to an aray: b) date items that need to be sorted by using the bubble sort algorithm; c) using a binary scarch algorithm to determine the position of a specific item in the list. In the bubble sort procedure, you need to print the left and right endpoints for each searching step. Your program should print the location of the data...

  • Using the Design Recipe, write an algorithm for each of the following programming problems, showing all...

    Using the Design Recipe, write an algorithm for each of the following programming problems, showing all work (i.e., Contract, Purpose Statement, Examples and Algorithm): 5.Write a program that reads two times in military format (e.g., 0900, 1730) and prints the number of hours and minutes between the two times. Note that the first time can come before or after the second time. 6.An online bank wants you to create a program that shows prospective customers how their deposits will grow....

  • write c++ code to read two complementary complex numbers and output their multiplication and division using...

    write c++ code to read two complementary complex numbers and output their multiplication and division using separate functions. Print each of the values in the form a+ib or a-ib. Write C++ program and write algorithm in words for the problem. Note: A complex number a +ib has complementary complex number a-ib.

  • This is in Java. Write the application, TheSentinel  to read a set of integers. Stop reading input...

    This is in Java. Write the application, TheSentinel  to read a set of integers. Stop reading input when a non-integer is read. Use this exact prompt: System.out.print("Enter an integer or Q to quit: "); Note: you will actually quit on any non-integer. Do the following things: Find and print the sum of all the even numbers Find and print the smallest of the inputs Determine if the number 7 is in the input. If 7 is in the inputs, print "7...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT