大概是输入一段英文句子 删除单词里面的元音字母像like就删除i,e。 如果单词只有一个字母像a 就不用删除,将两个连续相同的非原音字母去除一个,将结果输出,并计算单词数和平均每个单词删除的字数
输出结果要与这个类是
Sample run of the program (user input is bold)
Please enter a Sentence
The Quick Brown Fox
Abbreviated String: Th Qck Brwn Fx
Sentence Stats
Number of Words: 4
Average number of letters dropped per word: 1.25
Do you want to try another? (y/n)
Y
Please enter a Sentence
I like bananas
Abbreviated String: I lk bns
Sentence Stats
Number of Words: 3
Average number of letters dropped per word: 2.0
Do you want to try another? (y/n)
y
Please enter a Sentence
Laughing should never be banned
Abbreviated String: Lghng shld nvr b bnd
Sentence Stats
Number of Words: 5
Average number of letters dropped per word: 2.2
Do you want to try another? (y/n)
n
麻烦做一下,万分感激啊
JAVA程序求助
答案:1 悬赏:70 手机版
解决时间 2021-07-26 01:42
- 提问者网友:锁深秋
- 2021-07-25 14:31
最佳答案
- 五星知识达人网友:几近狂妄
- 2021-07-25 15:10
做了一下,不用感激了
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯