- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
《面向对象程序设计(双语)》课程实验教学大纲
一、课程基本信息
课程代码课程名称:面向对象程序设计(双语)
英文名称: Object-Oriented Programming
实验总学时:22
适用专业:计算机科学技术专业
课程类别:专业课
先修课程:程序设计
实验教学的总体目的和要求
1、对学生的要求
(1) 具有C语言程序设计基础;
(2) 实验课程不仅需要课上投入,课后需要有一定的练习时间;
(3) 能够根据规范撰写实验报告;
2、对教师的要求
(1) 合理设计实验项目;
(2) 根据实验内容有效控制学生的实验过程;
(3) 在实验指导过程中,根据学生个性问题提供指导,并且总结共性问题,集中指导;
3、对实验条件的要求
(1) 具有一定性能的电脑和通畅的网络环境;
(2) 安装JDK和Eclipse
实验教学内容
实验项目一
实验名称:Introduction
实验内容:
Printing Strings
Write a Java program that prints the message, “Roses are red”. Your program will be a class definition containing a main
method—see the Lincoln example in Listing 1.1 of the text if you need guidance. Remember the following:
???The name of the class must match the name of the file (but without the .java extension).
???The main method must be inside the class definition (between the first { and the last}).
???The statement that prints the message must be inside main.
Compile and run your program. When it works correctly, modify it so that it prints the entire poem:
Roses are red
Violets are blue
Sugar is sweet
And so are you!
Documentation
File Count.java contains a Java program that counts from 1 to 5 in English, French, and Spanish. Save this file to your
directory and compile and run it to see what it does. Then modify it as follows:
Use // style comments to add a comment header at the top of the file that includes the name of the program, your name,and a brief description of what the program does, neatly formatted. Include a delimiter line (e.g., all stars) at the beginning and end of the header.
Add a comment before each println that indicates what language the next line is in. Experiment with leaving a blank line before each of these comment lines (in the program itself, not the output). Is the program easier to read with or without these blank lines?
Remove one of the slashes from one of your comment lines and recompile the program, so one of the comments starts with a single /. What error do you get? Put the slash back in.
Try putting a comm
您可能关注的文档
最近下载
- 百蕊草半寄生机制的研究.pdf VIP
- 百蕊草种子适宜萌发条件的研究.PDF VIP
- 风险识别的方法培训.ppt
- 中国燕麦草项目经营分析报告.docx
- 常用DOS命令大全电脑资料PPT.pptx VIP
- 20J333 建筑防腐蚀构造(高清带书签).pdf VIP
- 腾讯音效设计师岗面试题库参考答案和答题要点.docx VIP
- GRB2在EEF1A2促胰腺癌发生、发展中的关键作用与机制研究.docx
- 统编版道德与法治一年级上册第14课《人人爱护公物》教学设计.docx VIP
- GZ-2022062 健康与社会照护赛项正式赛卷完整版包括附件-2022年全国职业院校技能大赛赛项正式赛卷.docx VIP
原创力文档


文档评论(0)