Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1) Write a C++ program that will take a variety of words and scramble them using the flipping algorithm stated below. The three rules for

1) Write a C++ program that will take a variety of words and scramble them using the flipping algorithm stated below. The three rules for how the words are to be scrambled are as follows-working from left to right in each word:

2)Write a C++ program to output a diamond-shaped array of letters on the screen. The word radiates up, down, left, and right to spell the word.

these are two problems with the full problems in the images below. Any help with the full code would be greatly appreciated thank you!

image text in transcribedimage text in transcribed

Quiz 1- Extra Credit Implement the following problems for extra credit. See the 1437 Grading and Submission Guide Sheets for additional grading/submission information. Partial credit will be given. (5 points each) - Follows same program grading guidelines as Program Sets - Do not need to show sample runs. Only submit. .cpp file. 1. Write a C++ program that will take a variety of words and scramble them using the flipping algorithm stated below. The three rules for how the words are to be scrambled are as follows-working from left to right in each word: - If the first letter is a vowel, switch the first and second letter. - After the first letter, each time a vowel is encountered, switch the letters that come immediately before and after the vowel. - If the last letter is a vowel switch it with the first letter in the word. Using the word computer, the first change follows bullet two, switching the letters before and after the "o", resulting in "mocputer". When the "u" is reached, the "p" and " t " are switched, yielding the new word "moctuper". At the "e", another switch is made, "mocturep" as the result. Input will be a lowercase string from the keyboard. For each word, output to the screen the original word, followed by a colon, one space and then the scrambled word. Finally, the program should ask if the user wants to run the program again (Check case). Refer to the sample output below. Sample Run: Enter the word to scramble: computer computer: mocturep Run Again (Y/N): y Enter the word to scramble: is is: is Run Again (Y/N): y Enter the word to scramble: population population: polutaoipn Run Again (Y/N): N Name the program: WordScrambleXX.cpp, where XX are your initials. 2. Write a C++ program to output a diamond-shaped array of letters on the screen. The word radiates up, down, left, and right to spell the word. In addition, while moving up, down, left, or right, make one right-angled turn and still spell out the entire word. Note that the last letter of the word, in each case, surrounds the outer edge of the array. Input from the keyboard a single word with a maximum length cosC1437$23 of 9 characters. Convert to uppercase and assume proper input. Finally, the program should ask if the user wants to run the program again (Check case). Refer to the sample output below. Sample Run: Enter a word: SCHOOL L LOL LOOOL LOOHOOL LOOHCHOOL LOOHCSCHOOL LOOHCHOOL LOOHOOL LOOOL LOL L Run Again (Y/N) : y Enter a word: LOTUS S SUS SUTUS SUTOTUS SUTOLOTUS SUTOTUS SUTUS SUS S Run Again (Y/N): N Name the program: DiamondwordShapeXX. cpp, where XX are your initials

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Next Generation Databases NoSQLand Big Data

Authors: Guy Harrison

1st Edition

1484213300, 978-1484213308

More Books

Students also viewed these Databases questions

Question

Explain the function and purpose of the Job Level Table.

Answered: 1 week ago