Java程序辅导

C C++ Java Python Processing编程在线培训 程序编写 软件开发 视频讲解

客服在线QQ:2653320439 微信:ittutor Email:itutor@qq.com
wx: cjtutor
QQ: 2653320439
CS 1401 Assignment #1 CS 1401 Assignment #1 Date Assigned: Monday, January 28, 2006. Due Date: Monday, September 4, 2006, before the beginning of your lab section. The goals of this assignment are: Practice problem solving techniques Get started using the Java programming environment Learn how to comment your programs This assignment is worth a total of 20 points. No late assignments will be accepted, but credit will be given for partially completed assignments turned in on time. Hand your assignments to your TA. Problem 0: Starting Java programming environment The first thing you will need to learn is how to use tools that will help you create your Java programs. The TA will instruct you in the use of the corresponding tool. Problem 1. Your First Program (5 points) Follow the TA's instructions to create a new BlueJ project in your own drive (H:). It is recommended that you create your programs in this drive since only you have access to it, so you won't be at risk of someone else stealing your work (and that can lead to trouble). Type in the program from Exercise 10 on p. 25 of your textbook. At the top of your program, add some comments that provide a description. This description will contain your name, e-mail address, lab time, date, assignment number and teaching assistant. You should include this header on every Java program and class you create. Your teaching assistant will explain you how to add comments. Follow the TA's instructions to compile and run the program you modified. Follow the TA's instructions to print out the program you modified. You will have to enable printing on your account before printing, but you will get help doing that. Follow the TA's instructions to be able to locate where your Java files are. It is important for you to know where BlueJ places your files for future reference. Problem 2. Book Exercise (5 points) Pages 15-20 of your textbook presents phases for creating a program. For this exercise, you will practice working with the Problem-Solving Phase. Using the three steps of the Problem-Solving Phase, try to solve Problem 13 described on page 26 of your book. You should not try to write a program. Rather, write out what you do to follow the three steps of the Problem-Solving phase applied to the problem. Problem 3. Book Exercise (5 points) Using the steps of the Problem-Solving phase, work on problem 14 on page 26 of your textbook. Problem 4. Drawing Algorithm (5 points) Using the steps of the Problem-Solving phase, write an algorithm that will help anyone draw the picture below without that person being able to see it. Make sure that you are specific enough so that there are no misunderstandings or extra additions to the drawing. Try having someone outside of class (a friend or family member) go through the steps and see how they perform. Note: You can use descriptions such as draw a triangle or make a circle but not descriptions such as draw a rocket or like a sky-scraper. Deliverables A printout of all of your classes with your name and modifications on them. Your TA will instruct you.