Homework will be solved with visual studio c# program.  Write a program that has the followings: 1) A text will be entered by the user. 2) After getting the text, the followings will be displayed: First occurence order of each character will be displayed under “Occurence order” title. Character will be displayed under “Character” title. How many times the character is used in the text will be displayed under “Amount of occurence” title.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Please do not refuse my homework :) It is very important to me.

Homework will be solved with visual studio c# program

Write a program that has the followings:
1) A text will be entered by the user.
2) After getting the text, the followings will be displayed:

First occurence order of each character will be displayed under “Occurence order” title.
Character will be displayed under “Character” title.
How many times the character is used in the text will be displayed under “Amount of occurence” title. (In short, it will be like the black output screen in the picture)
3)At page 2, the flowchart of the solution key of this homework is attached. It is not obligatory but you can use the algorithm used in the flowchart. 

 

 

Output Examples:
Your program must give the same results for the texts that are given in
the following examples
C. C:\Windows\system32\cmd.exe
C. C:\Windows\system32\cmd.exe
Enter the text: Ahmet Kabarcık
Enter the text: Simge Yozgat
Occurence order
Character
Amount of occurence
Occurence order
1
Character
Amount of occurence
A
1
S
1
h
1
i
1
m
1
m
1
e
1
2
t
1
e
1
1
1
K
1
Y
1
8
2
8
9
10
11
Press any key to continue
1
9
1
1
10
r
1
a
1
11
12
13
Press any key to continue
1
t
1
1
1
Transcribed Image Text:Output Examples: Your program must give the same results for the texts that are given in the following examples C. C:\Windows\system32\cmd.exe C. C:\Windows\system32\cmd.exe Enter the text: Ahmet Kabarcık Enter the text: Simge Yozgat Occurence order Character Amount of occurence Occurence order 1 Character Amount of occurence A 1 S 1 h 1 i 1 m 1 m 1 e 1 2 t 1 e 1 1 1 K 1 Y 1 8 2 8 9 10 11 Press any key to continue 1 9 1 1 10 r 1 a 1 11 12 13 Press any key to continue 1 t 1 1 1
START
Declare msg variable
Declare counter, control and occurenceOrder
occurenceOrder = 0
Declare i, j, k
i= 0
Set a message to msg variable
Display the title:
"Occurence order","Character","Amount of occurence"
uf i is less than the size of msg
-FALSE-
END
TRUE
control = false
j= i-1
Increase i by 1
If j>=0
FALSE-
Decrease j by 1
TRUE
-FALSE-
If msg[i] is equal to msg[j]
TRUE
control = true
-TRUE-
If control is equal to true
FALSE
counter = 1
k=i+1
fk is less than the size of msg
-FALSE-
TRUE
Increase k by 1
FALSE-
If msg[i] is equal to msg[k]
TRUE
Increase counter by 1
Increase occurenceOrder by 1
Display occurenceOrder, msg[ï], counter
Transcribed Image Text:START Declare msg variable Declare counter, control and occurenceOrder occurenceOrder = 0 Declare i, j, k i= 0 Set a message to msg variable Display the title: "Occurence order","Character","Amount of occurence" uf i is less than the size of msg -FALSE- END TRUE control = false j= i-1 Increase i by 1 If j>=0 FALSE- Decrease j by 1 TRUE -FALSE- If msg[i] is equal to msg[j] TRUE control = true -TRUE- If control is equal to true FALSE counter = 1 k=i+1 fk is less than the size of msg -FALSE- TRUE Increase k by 1 FALSE- If msg[i] is equal to msg[k] TRUE Increase counter by 1 Increase occurenceOrder by 1 Display occurenceOrder, msg[ï], counter
Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY