Question
I'm learning about Algorithm, professor ask we solve the problem in pseudocode, not in C++. I cannot figure out. For example: How do you figure
I'm learning about Algorithm, professor ask we solve the problem in pseudocode, not in C++. I cannot figure out.
For example: How do you figure out how many vowels are in a word?
Answer: Prompt for word. Loop through each letter. If it is aeiou then add one to TotalVowels. After last letter, print TotalVowels.
The question is below:
To organize lines at the Bad Programmer Convention, the client wants to know who would be first and last in line if everyone lined up alphabetically by last name. The user will type in names until they are done and then the first and last names are printed. Note: Their device is tiny so it doesn't have the memory to store all the names. You cannot store all the names.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started