programming

posted by .

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

  • programming -

    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.

  • programming -

    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

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. programming

    for a list of numbers entered by the user and terminated by 0, find the sum of the positive numbers and the negative numbers
  2. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Largest and Smallest Design a program with a loop that lets the user enter a series of numbers. Theuser should enter -99 to signal the end of the series. After …
  3. Computer Programing & Logic Design

    Submit pseudocode and a flowchart for the following programming exercise: Largest and Smallest Design a program with a loop that lets the user enter a series of numbers. Theuser should enter -99 to signal the end of the series. After …
  4. Design Logic and programming

    write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer is correct or not and display …
  5. computer science

    I need to write a program that ask the student to enter an answer to a math problem. The user should enter two values, one at a time, and then ask for an answer. The program should display if the entered answer is correct or not and …
  6. programming

    I need to figure this problem out, I am using visual studio C#. • Powers - Write an application that displays a tables of squares and cubes of an integer from 1 to an upper limit. The user should enter the upper limit and press the …
  7. computer science programming

    Elements – sequence-series outputting Write a program that prints the following elements: 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, (hereto referred to as elements) etc., up till a user-entered value. The program should not print more than …
  8. programming

    Step 1: Design a flowchart or write pseudocode for a program that allows a user to enter 12 numbers, then displays all of the numbers (in the order they were entered) as well as the largest number and the smallest number. Step 2: Implement …
  9. java programming

    1. Time Calculator Write a program that asks the user to enter a number of seconds. • There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number …
  10. 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 (not …

More Similar Questions