合肥生活安徽新闻合肥交通合肥房产生活服务合肥教育合肥招聘合肥旅游文化艺术合肥美食合肥地图合肥社保合肥医院企业服务合肥法律

代写CSE114、代做Java语言编程
代写CSE114、代做Java语言编程

时间:2024-10-03  来源:合肥网hfw.cc  作者:hfw.cc 我要纠错



CSE114: Introduction to Object Oriented Programming
Lab 8
Instructions: Complete the steps below. Be sure to upload a copy of all your source code (.java)
files to the link on Brightspace by its deadline, so that you can receive credit for this lab. 1. Write a program to compute the following summation:
1+3+5+7+ 9 +11+⋯+95+97 3 5 7 9 11 13 97 99
2. Dates are printed in several common formats. Two of the more common formats are 04/25/1995 and April 25, 1995.
Write a program in Java that reads the date in the first format (e.g., 04/25/1995) and prints it in the second format (e.g., April 25, 1995).
3. The third person singular verb form in English is distinguished by the suffix -s, which is added to the stem of the so-called infinitive form. Verbs given in the infinitive form are typically written with “to” in front, as in “to sleep” or “to walk.” Often we simply add the letter “s” to the infinitive form (as in “sleep” → “sleeps” and “run” → “runs”), but in other cases, we need to modify the end of the word. Here are some simple rules we could consider:
 If the verb ends in y, remove the y and add ies. Example: “cry” becomes “cries”.
 If the verb ends in o, ch, s, sh, or x, add es. Example: “push” becomes “pushes”, and
“hiss” becomes “hisses”.
 Otherwise, just add s.
Write a program (VerbTense.java) that takes a verb in its infinitive form (but without “to”) as an argument and converts it to its third person singular verb form according to the rules above.
Here are some sample runs:
Enter a verb: wax waxes
Enter a verb: type types
Enter a verb: go goes
Enter a verb: play plaies
Grading Guidelines: This lab is graded on a scale of 0-3 points, assigned as follows:

CSE114: Introduction to Object Oriented Programming
 0 - The student did not attend the lab,
 3 - The solutions are complete OR the student spent the entire lab solving the required lab problems
(in this case, the students may not arrive at the lab after the lab started and may not leave until the lab ends).
 
请加QQ:99515681  邮箱:99515681@qq.com   WX:codinghelp






 

扫一扫在手机打开当前页
  • 上一篇:代写ECON 3E03、代做R设计编程
  • 下一篇:代做INCS 775、代写python设计编程
  • 无相关信息
    合肥生活资讯

    合肥图文信息
    海信罗马假日洗衣机亮相AWE  复古美学与现代科技完美结合
    海信罗马假日洗衣机亮相AWE 复古美学与现代
    合肥机场巴士4号线
    合肥机场巴士4号线
    合肥机场巴士3号线
    合肥机场巴士3号线
    合肥机场巴士2号线
    合肥机场巴士2号线
    合肥机场巴士1号线
    合肥机场巴士1号线
    合肥轨道交通线路图
    合肥轨道交通线路图
    合肥地铁5号线 运营时刻表
    合肥地铁5号线 运营时刻表
    合肥地铁4号线 运营时刻表
    合肥地铁4号线 运营时刻表
  • 关于我们 | 打赏支持 | 广告服务 | 联系我们 | 网站地图 | 免责声明 | 帮助中心 | 友情链接 |

    Copyright © 2024 hfw.cc Inc. All Rights Reserved. 合肥网 版权所有
    ICP备06013414号-3 公安备 42010502001045