Skip to content

MyUstaadG

Learn to Serve

  • Computer Science
    • Software
    • Computer Tips
    • Coding
      • Conditional Structures Exercises
      • Loops Exercises
      • Arrays Exercises
      • Python Exercises
    • Microsoft Office
      • MS Excel
      • MS Word
  • Videos
    • Funny Videos
    • Health and Fitness Videos
    • PUBG Videos
    • Technology Videos
  • News
  • Funny
  • Memes
  • Playwright Tutorials
  • Tutorials
  • Toggle search form

Tag: Programs In Turbo C++

Write a program that calculates and displays the product of the even numbers from 1 to 8 using the while loop

Posted on October 1, 2021 By myustaadg.com

Write a program that calculates and displays the product of the even numbers from 1 to 8 using the while loop We learn Programming to solve problems using Computers. A Computer Program is the set of instructions that are given to a computer so that it can solve problems. To solve problems is our primary…

Read More “Write a program that calculates and displays the product of the even numbers from 1 to 8 using the while loop” »

Loops Exercises

Write a program that displays prime numbers between 2 and 100 using the while loop

Posted on October 1, 2021 By myustaadg.com

Write a program that displays prime numbers between 2 and 100 using the ‘while’ loop. We learn Programming to solve problems using Computers. A Computer Program is the set of instructions that are given to a computer so that it can solve problems. To solve problems is our primary goal in Computer Science. C++ is…

Read More “Write a program that displays prime numbers between 2 and 100 using the while loop” »

Loops Exercises

Write a program that inputs 10 values using the while loop. It finds out and display the largest and the smallest values

Posted on October 1, 2021 By myustaadg.com

Write a program that inputs 10 values repeatedly in a single variable using the ‘while’ loop structure. It finds out the largest and the smallest input values inside the body of loop and displays these values when loop is terminated. We learn Programming to solve problems using Computers. A Computer Program is the set of…

Read More “Write a program that inputs 10 values using the while loop. It finds out and display the largest and the smallest values” »

Loops Exercises

Write a program that gets an integer value and tests whether the given number is odd or even using switch statement

Posted on September 29, 2021October 6, 2021 By myustaadg.com

Write a program that gets an integer value and tests whether the given number is odd or even using switch statement So let’s Write Code: Let’s build logic First: Algorithm of Code Start Input a number Apply Condition in a Switch statement like a switch(n%2) if the switch statement returns 0, the number is even…

Read More “Write a program that gets an integer value and tests whether the given number is odd or even using switch statement” »

Conditional Structures Exercises

Write a program that inputs the radius of a circle. It calculates area of circle if user enters 1 as choice. It calculates circumference of the circle if the user enters 2 as choice

Posted on September 29, 2021October 6, 2021 By myustaadg.com

Write a program that inputs the radius of a circle. It calculates area of circle if user enters 1 as choice. It calculates circumference of the circle if the user enters 2 as choice So let’s Write Code: Algorithm of Code Start Input Radius Input Operator Apply switch statement to check whether the choice is…

Read More “Write a program that inputs the radius of a circle. It calculates area of circle if user enters 1 as choice. It calculates circumference of the circle if the user enters 2 as choice” »

Conditional Structures Exercises

Write a program that calculates the commission of a salesman of a departmental store according to the following

Posted on September 29, 2021October 6, 2021 By myustaadg.com

Write a program that calculates the commission of a salesman of a departmental store according to the following:i. If sale is less than Rs. 50, there is no commission.ii. If sale is greater than or equal to Rs. 50 and less than or equal to Rs.500, the commission is 10% of the sale.iii. If sale…

Read More “Write a program that calculates the commission of a salesman of a departmental store according to the following” »

Conditional Structures Exercises

Write a program that calculates income tax for three categories of income groups. The tax is computed as follows

Posted on September 29, 2021October 6, 2021 By myustaadg.com

 Write a program that calculates income tax for three categories of income groups. The tax is computed as follows:i. If the income is less than Rs. 25,000, the tax is 5% of the income.ii. If the income is equal to Rs. 25,000, the tax is Rs. 1250.iii. If the income is greater than Rs. 25,000,…

Read More “Write a program that calculates income tax for three categories of income groups. The tax is computed as follows” »

Conditional Structures Exercises

Write a program that inputs any number of month of the year and displays the name and number of days of the entered month

Posted on September 29, 2021October 6, 2021 By myustaadg.com

Write a program that inputs any number of month of the year and displays the name and number of days of the entered month. For example, if 4 is entered for the number of month of the year, program should display “April has 30 days”. So let’s Write Code: Algorithm Start Input month number in…

Read More “Write a program that inputs any number of month of the year and displays the name and number of days of the entered month” »

Conditional Structures Exercises

Write a program that converts ASCII number to character or character to ASCII number. The program should display the menu for conversion options

Posted on September 29, 2021 By myustaadg.com

Write a program that converts ASCII number to character or character to ASCII number. The program should display the menu for conversion options. Interaction with the program should be as follows:1- Convert ASCII to Character2- Convert Character to ASCIIEnter your option ? 1Enter a number ? 65The corresponding character is : A We learn Programming…

Read More “Write a program that converts ASCII number to character or character to ASCII number. The program should display the menu for conversion options” »

Conditional Structures Exercises

Write a program that displays the following menu for Toll Plaza rates C- Car B- Bus T- Truck

Posted on September 29, 2021 By myustaadg.com

Write a program that displays the following menu for Toll Plaza rates:C- CarB- BusT- Truck  The program should input the type of vehicle and display the charges for toll plaza according to the following rates:Car = Rs. 30Bus = Rs. 80Truck = Rs. 100 We learn Programming to solve problems using Computers. A Computer Program…

Read More “Write a program that displays the following menu for Toll Plaza rates C- Car B- Bus T- Truck” »

Conditional Structures Exercises

Posts navigation

1 2 3 Next

Copyright © 2022 MyUstaadG.

Powered by PressBook Blog WordPress theme