An important aspect of using files, is to be able to extract certain data from a large chunk of data in a file and then be able to use it to perform calculations.

Need help with my C Programming question – I’m studying for my class.

An important aspect of using files, is to be able to extract certain data from a large chunk of data in a file and then be able to use it to perform calculations.

So in order to practice basics of it, We will Write a program which gives the user the option to separate, Vowels or Consonant from a given text from a file. We will display the separated data (Vowels & Consonants) on screen and also store it in output file.

Note: We will be using similar logic to the one we had used in lab 4 to determine whether the user entered character was a vowel or consonant, but here we will be getting data(more than 1 character) from a file.

Please find the input file in the files directory.
Name of the input file to be used is: SeparateConVow.dat

The input file has following Text within it:

THIS IS THE FINAL PROJECT FOR OUR CLASS

Hint: Length of the text is 32, useful to be used in a loop.

Sample Runs:

Run 1:

Enter name of input file: i.dat

Enter name of output file: o.dat

Would you like to separate Vowels or Consonant, Please press 1 for Vowel, 2 for consonant :

1

Vowels in the string are :

I I E I A O E O O U A

Run 2:

Enter name of output file: o.dat

Would you like to separate Vowels or Consonant, Please press 1 for Vowel, 2 for consonant :

2

Consonant in the string are :

T H S S T H F N L P R J C T F R R C L S S

Note: Please make use of GSA Office hours on Thursday (1pm to 3pm) & Lab times(11am to 11:50am, 3pm to 5pm) on Friday for assistance using Microsoft teams.

Also feel free to email or message me on teams for assistance.

Point Distribution:

  • -50 Does not compile
  • -5 Warnings
  • -5 No description multiple line comments (name, date, etc)
  • -5 No single line comments (logic, input, output, etc)
  • -10 did not store data to output file.
  • -10 If Does not check for failure to open the input file
  • -10 if the program does not prompt the user for Input for file name

Order the answer to view it

Assignment Solutions


Assignment Solutions

ORDER THIS OR A SIMILAR PAPER AND GET 20% DICOUNT. USE CODE: GET2O