programming

how do I write a pseudocode to find and display the largest list of positive numbers entered by the user. The user should indicate that he/she has finished entering numbers by enter a

  1. 👍
  2. 👎
  3. 👁
  1. A pseudocode is nothing but a program written in an imaginary programming language that resembles English (or any other spoken language) so that the way and the steps to solve the problem can be made evident.

    The way and the steps to solve a problem, when "translated" to English, is an algorithm.

    The question requires you to solve the problem by stating the steps you will need to do to achieve the desired result.

    You can start by stating the method/steps/procedure in English.

    The exact wording of the question makes a big difference to the solution.

    To me,
    "...to find and display the largest list of positive numbers entered by the user."
    is not very clear.

    A list usually has two or more elements. It is not stated how many are needed on the list, e.g. top 10, top 3, etc.

    It could also mean to sort the complete list entered by the user into a descending sequence.

    If there was a typo, it could simply be looking for the largest number among those entered.

    Since the question specified positive numbers, your method/algorithm should check that the entered number is a positive integer, i.e. exclude zeroes and negative numbers. If not, an error or warning message should be issued, and the program should terminate or have the user re-enter accordingly.

    The above presents some guides. You'd need to check for typos in the question. If there were none, you could check with your teacher what the proper interpretation is.

    1. 👍
    2. 👎
  2. 2. A public light utitlity company bills a unit of electricity usage in KWH. In its new billing policy, domestic usage, Rate 15, will have a monthly rate of $ 12.20 per unit for the first 100 KWH; $ 18.25 per unit for the next 700 KWH and $ 42.10 per unit for the each additional units. In the case of Commercial usage, Rate 20, the JPSCo will bill all units at $ 31.50. The billing manager is given the amount of electricity units (in KWH) used by a customer along with his rate category (ie 15 or 20). A program is needed to calculate the amount of money due to be paid by the customer and to generate a bill statement. A GCT of 18% is added to the final amount of all bills. Develop the psuedocode program for same

    1. 👍
    2. 👎
  3. please I want the above us question answer

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. math

    The Sum of 2 positive numbers is 151. The lesser number is 19 more than the square root of the greater number.What is the value of the greater number minus the lesser number? The list of numbers 41,35,30,x,y,15 has a median of 25

  2. Pseudocode

    Write an algorithm and pseudocode that represents a program that allows a user to enter two numbers. Your program should calculate the sum, difference (both directions), product, and quotient (both directions) of the two numbers.

  3. Programming

    Write a program (pseudocode) that would calculate and display the results for the multiplication table for values ranging from 1 to 100. This what I have so far: Declare X, Y, Z As Integer Write “10 x 10 Multiplication Table”

  4. math

    Can someone help me with prime and composite numbers? Prime numbers are counting numbers that can be divided evenly bt only two numbers:1 and themselves. A prime number can also be described as a counting number with exactly two

  1. Math

    Question: 1 The product of two positive numbers is 15876 and the large one is 9 times the other. Find the numbers. Question:2 Th sum of the squares of two positive whole numbers is 794. If one of the numbers is 13 , find the

  2. computer programming

    Design the logic for a program that allows a user to enter any amount of numbers up to 10 or until a sentinal value of -1 is entered. Then the program displays the count of the numbers entered and numeric average of the numbers

  3. Math

    Three even numbers sum up to 126. The smaller is half the larger and the middle number is 3/4 the larger. What are the three numbers (list in order from smallest to largest).

  4. Ratio

    Three numbers are in the ratio of 3:5:7. If the largest number is multiplied by 3, the result is 26 more than the sum of the first and second numbers. Find the numbers.

  1. ALGEBRA

    The product of two consecutive positive even numbers is 528. What are the numbers? (Enter solutions from smallest to largest.) and

  2. science

    Write a program that will accept two numbers. The program must calculate the LCM and HCF of the numbers and display it.

  3. Math

    The sum of two consecutive numbers divided by their positive difference is equal to 9. Find the largest number.

  4. algebra

    The product of two consecutive positive even numbers is 840. What are the numbers? (Enter solutions from smallest to largest.)

You can view more similar questions or ask a new question.