c语言编程实践 英文,一道高难度c语言编程题 英文版的 继续高手帮助 谢谢

该楼层疑似违规已被系统折叠 隐藏此楼查看此楼

Write  a  program  that  can  read  a  string  and  calculates  how  many  words , letters , and  lines  there  are . The  program  is  in  3  parts:

Part  1 : Basic  Program

1.    Program  finds  out  how  many  words  are  in  a  string

2.    Finds  out  the  following:

1.    How  many  words  are  in  the  string

2.    How  many  letters  are  in  the  string

3.    The  word  with  the  most  letters

4.    The  word  with  the  lowest  number  of  letters

5.    The  average  number  of  letters  per  word

3.    Displays  a  report  about  everything  above

Part  2 : Change  the  above  program:

1.    The  program  reads  a  string  from  a  file  instead

2.    The  report  is  written  to  a  file

3.    Count  how  many  lines  are  in  the  program

4.    Calculate  the  average  number  of  words  of  words  per  line  there  are

5.    Calculate  the  average  number  of  letters  per  line  there  are

Part  3 : Change  the  above  program :

1.    Build  a  calculator  program :

1.    The  user  selects  what  they  want  to  do : Read  the  file , or  perform  mathematics

2.    In  the  mathematics  section , the  user  selects  what  operation  they  want  to  do

3.     They  then  enter  the  numbers  and  the  answer  is  displayed

Extra  Marks :

You  will  get  extra  marks  if  you  can  program  any  of  the  following:

Have  a  menu  system  that  allows  the  user  to  keep  using  the  program  until  they  say  stop

Part 1 :Count  how  many  times  each  letter  of  the  alphabet  occurs

Count  how  many  times  the  words“Dog”  “Cat”  “Pig” ,“Chinchilla”  appear  in  the  string

Part 2 :  Write  the  report  file  as  a  web-page

Say  what  lines  the  words“Dog”  “Cat” , “Pig” ,“Chinchilla” are  in

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值