Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PART 1 For this scenario, you will create both the flowchart diagram and the pseudocode for a program that will accomplish the following tasks (
PART
For this scenario, you will create both the flowchart diagram and the pseudocode for a program that will accomplish the following tasks remember you are just doing the modeling for part not coding:
Average five grades
Display the average
Display a message as to whether the average is passing or failing average above is passing
Create a flowchart diagram that depicts a loop that requests five grades to be entered by the user one grade per iteration.
Total the user entered grades and at the end of the looping display the average and incorporate a decision statement to evaluate that average and display Congrats you passed if the grade is equal to or above or Sorry you failed if the grade is below
Using the flowchart diagram you just created as a model, create a pseudocode version of the same program.
Hint: refer to the Web Readings for this week for a short video demonstration of pseudocode and flowcharts.
Include both your pseudocode and flowchart in a single document.
PART
Create a program that accurately reflects the pseudocode shown below:
Create a string variable called sentence.
Set sentence to the phrase The quick brown fox jumps over the lazy dog.
Starting at the beginning of the sentence, examine each character, until you reach the end of the sentence.
When you find a blank character that indicates the end of a word, extract that word, increment the word count and print the word.
Continue until you reach the end of the sentence.
Print the total word count.
Hint: refer to the C# text readings assigned for this week for tips on parsing strings.
PART PROGRAM EXPECTED OUTPUT
The
quick
brown
fox
jumps
over
the
lazy
dog
Total of words.
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