Question: Homework Problems on using if , if - elseif - else, and ternary. Also, problems on using comparison and logical operators. Create a script to
Homework Problems on using if ifelseifelse, and ternary. Also, problems on using comparison and logical operators.
Create a script to check whether a constant Character is a vowel or consonant.
Take for example, if
char Character
the output should be
Your Character is A Vowel".
Save as homeworkc
Create a script to check if the user input integer is positive or negative.
Take for example, if
int Number
the output should be
Your Number is A Negative Number".
Save as homeworkc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
