The exercise is to input a string from the user, and then output the following information: • Length of string (# of characters, including spaces and punctuation) • # of vowels in the string (a, e, i, o, u) • # of each vowel # of digraphs in the string (ai, ch, ea, ie, ou, ph, sh, th, wh) # of each digraph . Page 1 of 5

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

F# 

Requirements are NO loops NO variables 

I have most of it done there are some errors i cant figure out. 

This is what i have so far 

 

 

The exercise is to input a string from the user, and then output the following information:

- Length of string (# of characters, including spaces and punctuation)
- # of vowels in the string (a, e, i, o, u)
- # of each vowel

Page 1 of 5

- # of digraphs in the string (ai, ch, ea, ie, ou, ph, sh, th, wh)
- # of each digraph

For simplicity, only count lower-case vowels and digraphs. To help you get started, we are providing starter code that inputs a string from the user and calls a few functions that currently return 0:

### Code Example:

```plaintext
> dotnet run
Starting
input> this is a test
exploded: ['t'; 'h'; 'i'; 's'; ' '; 'i'; 's'; ' '; 'a'; ' '; 't'; 'e'; 's'; 't']
length: 0
vowels: 0
imploded: "this is a test"

Done
```

When your program is complete, here’s an example of how it should behave given the input: `"shush!" said the person on the train as i used my phone`

### Code Example:

```plaintext
> dotnet run
Starting
input> "shush!" said the person on the train as i used my phone
exploded: ['s'; 'h'; 'u'; 's'; 'h'; '!'; ' '; 's'; 'a'; 'i'; 'd'; ' '; 't'; 'h'; 'e'; ' '; 'p'; 'e'; 'r'; 's'; 'o'; 'n'; ' '; 'o'; 'n'; ' '; 't'; 'h'; 'e'; ' '; 't'; 'r'; 'a'; 'i'; 'n'; ' '; 'a'; 's'; ' '; 'i'; ' '; 'u'; 's'; 'e'; 'd'; ' '; 'm'; 'y'; ' '; 'p'; 'h'; 'o'; 'n'; 'e']
length: 50
vowels: 16
a: 2
e: 4
i: 3
o: 3
u: 3
digraphs: 6
ai: 2
sh: 2
th
Transcribed Image Text:The exercise is to input a string from the user, and then output the following information: - Length of string (# of characters, including spaces and punctuation) - # of vowels in the string (a, e, i, o, u) - # of each vowel Page 1 of 5 - # of digraphs in the string (ai, ch, ea, ie, ou, ph, sh, th, wh) - # of each digraph For simplicity, only count lower-case vowels and digraphs. To help you get started, we are providing starter code that inputs a string from the user and calls a few functions that currently return 0: ### Code Example: ```plaintext > dotnet run Starting input> this is a test exploded: ['t'; 'h'; 'i'; 's'; ' '; 'i'; 's'; ' '; 'a'; ' '; 't'; 'e'; 's'; 't'] length: 0 vowels: 0 imploded: "this is a test" Done ``` When your program is complete, here’s an example of how it should behave given the input: `"shush!" said the person on the train as i used my phone` ### Code Example: ```plaintext > dotnet run Starting input> "shush!" said the person on the train as i used my phone exploded: ['s'; 'h'; 'u'; 's'; 'h'; '!'; ' '; 's'; 'a'; 'i'; 'd'; ' '; 't'; 'h'; 'e'; ' '; 'p'; 'e'; 'r'; 's'; 'o'; 'n'; ' '; 'o'; 'n'; ' '; 't'; 'h'; 'e'; ' '; 't'; 'r'; 'a'; 'i'; 'n'; ' '; 'a'; 's'; ' '; 'i'; ' '; 'u'; 's'; 'e'; 'd'; ' '; 'm'; 'y'; ' '; 'p'; 'h'; 'o'; 'n'; 'e'] length: 50 vowels: 16 a: 2 e: 4 i: 3 o: 3 u: 3 digraphs: 6 ai: 2 sh: 2 th
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Control Structure
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education