Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

To familiarize learners how to check an alphabet is vowel or consonant. Problem Statement Write a C program to check an alphabet is vowel or

To familiarize learners how to check an alphabet is vowel or consonant.

Problem Statement

Write a C program to check an alphabet is vowel or consonant.

Instructions

  • Periodically save content to avoid losing the written code by eiter pressing the ctrl+S key combination or by clicking on the "Save All" button.
  • Write proper comment to make your code readable.
  • Use proper naming convention for variables etc in your code.
  • Ensure your code compiles without any errors/warning/deprecations
  • Avoid too many & unnecessary usage of white spaces (newline, spaces, tabs, )
  • Always test the code thoroughly, before submitting exercises/project.
  • Please ensure that you write the necessary code to read input from the console and for writing the output to the console.
  • To test your code, do the following
  • - Compile the program by clicking on the "Compile" button
  • - Once the program compiles successfully, click on the "Console Input" button
  • - Enter the relevant input into the provided text area.
  • - Click on the "Run" button to execute the program; on doing so, you should see the output on the console.

Hints/Tips

include

int main() { char ch; scanf("%c", &ch); switch(ch) {

 default: printf("Consonant"); } return 0;

}

Expected Output:

  • The output of given problem statement will vowel or consonant.

Test cases:

  • Sample Input
  • a

  • Sample Output
  • Vowel

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions