Your Perfect Assignment is Just a Click Away
We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

CSE 224 Programming Assignment 4B

CSE 224 Programming Assignment 4B

CSE 224 Programming Assignment 4BINTRODUCTIONThis assignment is optional, and can be used to replace your PA4 grade this term. I’m not intending this primarily as a way to raise your grade: it’s intended as an opportunity to get better at programming, especially modularizing code, if you’re having trouble with that.  You’ll be creating a menu-driven main program for processing strings, but you’ll do this by first writing a set of functions, and then using those functions inside a main program.Specific deliverables and deadlines will be given for each piece of this assignment. You must complete and submit each piece by the given deadline. Missing any deadline will disqualify you from further consideration on this assignment (in other words, your entire assignment will be graded based only on what you’ve submitted up to that point).Submissions will be in the form of a PDF file, showing:• your well-commented source code;• its behavior on the given test cases; and• its behavior on two additional test cases of your own choosing.Specific commenting guidelines will be given below, and proper commenting will form an essential part of your grades. PROGRAM OVERVIEWHere is an overview of the program you’ll be writing. The next section will discuss how you should develop your program.FunctionsWrite the following functions. Each of these functions should have a single parameter — accepting a c-style string as an argument. The function should only do what is specified (note that none of these functions do any output to the screen): 1.Write a function that counts and returns the number of vowels in the string. (For the purposes of this exercise, we are talking about the standard 5 vowels — A, E, I, O, U(upper- or lower-case)). 2.Write a function that counts and returns the number of consonants in the string. 3.Write a function that converts the string to all lowercase. 4.Write a function that converts the string to all uppercase. Main ProgramWrite a main program that performs the following steps: 1.Prompt the user to enter a string, and let them type it in.This could be an entire sentence, with the newline indicating the end of the string. You may assume the string will be nomore than 100 characters, so declare your array accordingly. 2.Display the following menu:A) Count the number of vowels in the stringB) Count the number of consonants in the stringC) Convert the string to uppercaseD) Convert the string to lowercaseE) Display the current stringF) Enter another stringM) Display this menuX) Exit the program 3.Enter a loop, allowing the user to type in a menu choice each time. Loop should continue until the user enters the command to exit. Upper and lowercase letters should be allowed for the menu choices. If more than one character is entered, only use the first character.•When the A or B commands are entered (counting vowels or consonants), call the corresponding function, then print the result•When the C or D commands are chosen, just call the appropriate function to convert the string. Do not do any output from main on these commands.•When E is chosen, print the contents of the stored string.•When F is chosen, allow a new string to be typed – this will replace the previous one.•If an unknown command is entered, display the message”Unknown Command: enter M for help”•The menu should only be displayed once at the start, and then again whenever the M option is selected Sample Run (user input is underlined, to distinguish it from output):Input a line of text, up to 100 characters:> The quick brown fox jumped. The lazy dog, he was jumped over.A) Count the number of vowels in the stringB) Count the number of consonants in the stringC) Convert the string to uppercaseD) Convert the string to lowercaseE) Display the current stringF) Enter another stringM) Display this menuX) Exit the programEnter your menu selection: aNumber of vowels: 16Enter your menu selection: BNumber of consonants: 31Enter your menu selection: cEnter your menu selection: eThe string:THE QUICK BROWN FOX JUMPED. THE LAZY DOG, HE WAS JUMPED OVER.Enter your menu selection: DEnter your menu selection: EThe string:the quick brown fox jumped. the lazy dog, he was jumped over.Enter your menu selection: fInput a new line of text, up to 100 characters:> Mary Had A Little Lamb. His name was Fleecy Pete.Enter your menu selection: CEnter your menu selection: eThe string:MARY HAD A LITTLE LAMB. HIS NAME WAS FLEECY PETE.Enter your menu selection: dEnter your menu selection: EThe string:mary had a little lamb. his name was fleecy pete.Enter your menu selection: bNumber of consonants: 24Enter your menu selection: aNumber of vowels: 14Enter your menu selection: xGoodbyeDEVELOPMENT REQUIREMENTSThe way in which you develop your program is an important part ofyour grade. The assignment coinsists of four deliverables, as specified on the following pages.

Order Solution Now

Our Service Charter

1. Professional & Expert Writers: I'm Homework Free only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by I'm Homework Free are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. I'm Homework Free is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At I'm Homework Free, we have put in place a team of experts who answer to all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.