Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help C++ Write a program that uses functions to read and process the data from a formatted file. The program should contain the following exact

image text in transcribed

help C++

Write a program that uses functions to read and process the data from a formatted file. The program should contain the following exact functions: 1. A Readconcepts function that reads a list of concepts/strings from the LIST.txt text file (one concept per line), stores them into an array of strings, and count how many have two parameters (the array of conce should not return a value. Declare SIZE as a value large enough to hold all values from the file. void ReadConcepts (string Arrayconcepts [SIZEl, int& NumberConcepts) concepts are in the list. The function should pts and a reference to the number of concepts in the array and global constant (declared before all functions) initialized with a 2. An EnterLetter function that prom pt the user to enter a letter from A to z or a to z, lets the user input a character, validates it (check if it is a valid letter), and if it is not, repeats the input of the character until it is a valid letter and returns it. The function should not have any parameters and should return the letter char EnterLetter () 3. A PrintConcepts function that prints all the concepts from the array. The function should receive the array of concepts and the number of concepts as parameters and should not return any values vold PrintConcepts (string Arrayconcepts ISIZE, int NumberConcepts) A PrintconceptaWithoutSpaces function that prints all the concepts from the array that do not contain spaces. The function should receive the array of concepts and the number of concepts as parameters and should not return any values void PrintConceptsWithoutSpaces (string ArrayConceptsISIZE), int Numberconcepts) 4. 5. A PrintconceptsLetter function that prints all the concepts from the array that contain the letter A (small or large caps). The function should receive the array of concepts and the number of concepts and the Letter as parameters and should not return any values void PrintConceptsletter (char Lette, string Arrayconcepta(SIZE, int RumborConcepta) 6. Amain function that calls the Readconcepts function to read the concepts from the file and store them in Artayconcepts and determine the NumberConcepta, calls the EnterLetter function to enter a letter from the user, and then calls the Pr int concepts. Print ConceptaWithoutSpaces, and Pr intConceptaLetter (for the letter returned by EnterLetter) for the Ar rayconcepts and Numberconcepts variables to print the concepts in various ways

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