subject

Write a c++ program whose main function is merely a collection of variable declarations and function calls. this program reads a text and outputs the letters, together with their counts, as explained below in the function printresult. (there can be no global variables! all information must be passed in and out of the functions. use a structure to store the information.)

your program must consist of at least the following functions:

- function openfile: opens the input and output files. you must pass the file streams as parameters (by reference, of course). if the file does not exist, the program should print an appropriate message and exit. the program must ask the user for the names of the input and output files.

- function count: counts every occurrence of capital letters a-z and small letters a-z in the text file opened in the function openfile. this information must go into an array of structures. the array must be passed as a parameter, and the file identifier must also be passed as a parameter.

- function printresult: prints the number of capital letters and small letters, as well as the percentage of capital letters for every letter a-z and the percentage of small letters for every letter a-z. the percentages should look like this: "25%". this information must come from an array of structures, and this array must be passed as a parameter.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 23:30
In my email i got a message it says a quick message and in message details on who its from its says nicole and under nicole is [email protected] -
Answers: 1
question
Computers and Technology, 23.06.2019 19:50
Which feature is selected to practice and save the timing of a presentation
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
Write and test a python program to find and print the largest number in a set of real (floating point) numbers. the program should first read a single positive integer number from the user, which will be how many numbers to read and search through. after reading in all of the numbers, the largest of the numbers input (not considering the count input) should be printed.
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
You know the right answer?
Write a c++ program whose main function is merely a collection of variable declarations and function...
Questions
question
Geography, 02.08.2019 16:30
question
Mathematics, 02.08.2019 16:30
question
English, 02.08.2019 16:30
question
Mathematics, 02.08.2019 16:30
Questions on the website: 13722360