Question
Note: use only if else and don't use any loop or nested loop A) Write a C++ program to compare two floating point numbers till
Note: use only if else and don't use any loop or nested loop A) Write a C++ program to compare two floating point numbers till 5 decimal place precision.
B) Write a program that takes year input and displays a message to show whether its a leap year or not.
C) Write a C++ program that takes a character from user as input and verifies its between a-z or A-Z. Then further apply a check whether its vowel or a consonant.
D) The base of a right-angle triangle is a; height is b. Base can only be integer, but height can be float. Enter all three angles of triangle.
Pythagoras theorem requires Its a right-angle triangle Then apply Pythagoras theorem to calculate hypotonus h.
Verify hypotonus is larger than both sides.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started