Answered step by step
Verified Expert Solution
Link Copied!

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 1
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 1 not coding):
Average five grades
Display the average
Display a message as to whether the average is passing or failing (average above 60 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 60 or Sorry, you failed if the grade is below 60.
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 2
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 2 PROGRAM EXPECTED OUTPUT
1 The
2 quick
3 brown
4 fox
5 jumps
6 over
7 the
8 lazy
9 dog
Total of 9 words.

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

More Books

Students also viewed these Databases questions

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago