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: if else

Write a program that inputs salary and computes the net salary. If the salary is 30000 or more, it deducts 13% of the salary. If the salary is 15000 or more but less than 30000, it deducts 1500 from the salary

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs salary and computes the net salary. If the salary is 30000 or more, it deducts 13% of the salary. If the salary is 15000 or more but less than 30000, it deducts 1500 from the salary. We learn Programming to solve problems using Computers. A Computer Program is the set…

Read More “Write a program that inputs salary and computes the net salary. If the salary is 30000 or more, it deducts 13% of the salary. If the salary is 15000 or more but less than 30000, it deducts 1500 from the salary” »

Conditional Structures Exercises

Write a program that inputs the current reading and previous reading of electric meter. It finds out the total units consumed using nested ‘if-else’ structure and computes the electricity bill

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs the current reading and previous reading of electric meter. It finds out the total units consumed using nested ‘if-else’ structure and computes the electricity bill as follows:// If units consumed are less than or equal to 300, then rate of electricity is Rs.12 per unit.// If units consumed are more…

Read More “Write a program that inputs the current reading and previous reading of electric meter. It finds out the total units consumed using nested ‘if-else’ structure and computes the electricity bill” »

Conditional Structures Exercises

Write a program that performs simple arithmetic calculations using ‘nested if-else’ structure

Posted on September 29, 2021 By myustaadg.com

Write a program that performs simple arithmetic calculations using ‘nested if-else’ structure. 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 the most fundamental…

Read More “Write a program that performs simple arithmetic calculations using ‘nested if-else’ structure” »

Conditional Structures Exercises

Write a program that finds out the grade of a student based on the average marks obtained in three subjects

Posted on September 29, 2021 By myustaadg.com

Write a program that finds out the grade of a student based on the average marks obtained in three subjects. The grade is calculated as;// If average is greater than 80, grade is A.// If average is less than 80 and greater than 60, grade is B.// If average is less than 60 and greater…

Read More “Write a program that finds out the grade of a student based on the average marks obtained in three subjects” »

Conditional Structures Exercises

Write a program that inputs five values and finds out the greatest value using nested ‘if’ structure in C++

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs five values and finds out the greatest value using nested ‘if’ structure in C++ 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…

Read More “Write a program that inputs five values and finds out the greatest value using nested ‘if’ structure in C++” »

Conditional Structures Exercises

Write a program that inputs a year such as 1996, 1800, and 2010, and displays “Leap year” if it is a leap year, otherwise displays “Not a leap year”

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs a year such as 1996, 1800, and 2010, and displays “Leap year” if it is a leap year, otherwise displays “Not a leap year” A year is a leap year if it is divisible by 4, except that any year divisible by 100 is a leap year only if it…

Read More “Write a program that inputs a year such as 1996, 1800, and 2010, and displays “Leap year” if it is a leap year, otherwise displays “Not a leap year”” »

Conditional Structures Exercises

Write a program that displays the largest and smallest value entered by a user ten times in a single variable during the program execution using goto Statement

Posted on September 29, 2021 By myustaadg.com

Write a program that displays the largest and smallest value entered by a user ten times in a single variable during the program execution using goto Statement. 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….

Read More “Write a program that displays the largest and smallest value entered by a user ten times in a single variable during the program execution using goto Statement” »

Conditional Structures Exercises

Write a program that converts “Small Alphabet” into “Capital Alphabet” and vice versa

Posted on September 29, 2021 By myustaadg.com

Write a program that converts “Small Alphabet” into “Capital Alphabet” and vice versa. 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 the most…

Read More “Write a program that converts “Small Alphabet” into “Capital Alphabet” and vice versa” »

Conditional Structures Exercises

Write a program that inputs a number and calculates the square root of the number if the number is greater than 0. Otherwise it displays a message “Number is negative or zero”

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs a number and calculates the square root of the number if the number is greater than 0. Otherwise it displays a message “Number is negative or zero” We learn Programming to solve problems using Computers. A Computer Program is the set of instructions that are given to a computer so…

Read More “Write a program that inputs a number and calculates the square root of the number if the number is greater than 0. Otherwise it displays a message “Number is negative or zero”” »

Conditional Structures Exercises

Write a program that inputs a single letter in a char variable. It displays “You are male” if ‘m’ is input and displays “You are female” if ‘f’ is input

Posted on September 29, 2021 By myustaadg.com

Write a program that inputs a single letter in a char variable. It displays “You are male” if ‘m’ is input and displays “You are female” if ‘f’ is input. It should display “Invalid input” if other letter is input. We learn Programming to solve problems using Computers. A Computer Program is the set of…

Read More “Write a program that inputs a single letter in a char variable. It displays “You are male” if ‘m’ is input and displays “You are female” if ‘f’ is input” »

Conditional Structures Exercises

Posts navigation

1 2 Next

Copyright © 2022 MyUstaadG.

Powered by PressBook Blog WordPress theme