[Go to site: main page, start]

0% found this document useful (0 votes)
2 views1 page

Practice Programs for Basic Algorithms

The document outlines a series of programming assignments (WAP) for practice, including tasks such as calculating squares, products, simple interest, area and perimeter of rectangles, and converting currency. Each task requires the creation of an algorithm and flowchart, emphasizing the application of conditional operators and basic arithmetic operations. Additionally, it covers concepts like swapping integers and determining even or odd numbers.

Uploaded by

mayankbojja99
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)
2 views1 page

Practice Programs for Basic Algorithms

The document outlines a series of programming assignments (WAP) for practice, including tasks such as calculating squares, products, simple interest, area and perimeter of rectangles, and converting currency. Each task requires the creation of an algorithm and flowchart, emphasizing the application of conditional operators and basic arithmetic operations. Additionally, it covers concepts like swapping integers and determining even or odd numbers.

Uploaded by

mayankbojja99
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

Practice Programs (Module 3)

1. WAP to accept a number and display its square. Write the algorithm and flowchart.
2. WAP to accept two numbers and display its product. Write the algorithm and flowchart.
3. WAP to calculate the simple interest by taking the value of principal, Rate Of Interest
and Years from the user. Write algorithm and flowchart.
4. WAP to accept the length and breadth of a rectangle from the user. Calculate and
display the area and perimeter. Write the algorithm and flowchart.
5. WAP to accept one int data type and one float date type. Multiply the two numbers and
display the result.
6. WAP that prints the next character to the character entered by the user. (Example: If
user enters A then output should be B.)
7. WAP to accept rupees from user, convert them to paisa, and display it. Write the
algorithm and flowchart.
8. WAP for computing product cost. The program should output the computed cost and
the delivery date of the product.
9. WAP to accept 2 numbers from user and display the greatest of two using the
conditional operator. Write the algorithm and flowchart.
10. WAP to accept 3 numbers from user and display the greatest of three using the
conditional operator. Write the algorithm and flowchart.
11. WAP to find the average of 3 numbers. Write the algorithm and flowchart.
12. WAP to swap 2 integers using a temporary variable.
13. WAP to swap 2 integers without a temporary variable.
14. WAP to check if entered number is even or odd using conditional operator. Write
algorithm and flowchart.
15. WAP to calculate the roots of quadratic equation. Write algorithm and flowchart.

You might also like