0% found this document useful (0 votes)
13 views2 pages

Pseducode Practice

The document contains a series of programming tasks requiring pseudocode solutions for various problems, including calculating averages, finding the smallest number, summing inputs, and counting positive numbers. It also includes a request for flow charts related to specific scenarios, such as tax calculations based on house values. Each task emphasizes the use of loops and decision-making structures in programming.

Uploaded by

Adil Shahzad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Pseducode Practice

The document contains a series of programming tasks requiring pseudocode solutions for various problems, including calculating averages, finding the smallest number, summing inputs, and counting positive numbers. It also includes a request for flow charts related to specific scenarios, such as tax calculations based on house values. Each task emphasizes the use of loops and decision-making structures in programming.

Uploaded by

Adil Shahzad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Q1.

Write an algorithm, using pseudo code, which: • inputs 100


numbers • finds the average of the input numbers Outputs the average.

Answer;

Declaration

Initialization ( C  1 )

Input

Totaling (total  total + . . . . . . .)

Counting with decision (count count +1)

Output with Decision

Extreme values C  C + 1 Until (C = N) Average  total/N

Percentage (count/N)*100 Output average

Output percentage

Q2. Write pseudocode that should input 10 positive numbers and then
output the smallest number input.(Using loop)

Q3. Read this section of program code that inputs 10 positive numbers
and then outputs the total.

Q4.Write pseudocode to input 100 numbers and print out the sum. A
REPEAT…UNTIL loop has been used.

Q5.Write a pseducode that input 100 number and count how many
number are positive and how many numbers are zero. Output the
result.
Q6. Write a flow chart that print squared of first five no.

Q7.A town contain 5000 houses . Each house owner must pay tax based
on the value of house.Houses over $200000 pay 2%. Houses over
$100000 pay 1.5% and houses over $50000pay 1%. All other pay no
tax. Write a flow chart.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy