Unformatted text preview:

CS100 Spring 2000Professors David I. Schwartz & Thomas YanProject 1: A New HopeDue: Tuesday, February 1, 20001. GoalsThis assignment has four roles:• To help you become familiar with CS100 policies and procedures.• To ensure you have necessary Internet skills, such as email, news, and web browsing.• To help you practice with CodeWarrior.• To help you develop a program in Java.2. BackgroundIn large introductory courses, policy and procedure demand attention. The degree to which a stude...3. ProblemsThis assignment has two main parts, shown below. Remember to follow the submission requirements i...3.1 Part 1: Short Answer Questions/Internet TasksFollow these steps:• Go to a computer.• Go to the CS100 Newsgroup on USENET. Hint: See the material link on the website.• Find the article with subject PROJECT 1 INFORMATION. Beware of fakes! Only an article posted by...• Forward the correct article to yourself as email.• Answer the questions inside the article, following the instructions therein. For example, do no...3.2 Part 2: ProgrammingThis portion requires you to develop and test a program that has the following template with, of ...You must use the above template. Note that the template requires you to change the Java Target se...• Output the sentence Hello, world! to the screen.• Output the sentence I am now calculating something irrelevant, but interesting.• Assign the number of days in a year to the variable daysPerYear.• Assign the number of hours in a day to the variable hoursPerDay.• Assign the number of minutes in an hour to the variable minutesPerHour.• Assign the number of seconds in an minute to the variable secondsPerMinute.• Calculate the number of seconds in a year using the variables daysPerYear, hoursPerDay, minutes...• Output a brief label followed by the percent error of seconds from the number of seconds in one...• Output the sentence I am done.Be sure to include appropriate commentary and follow a clear and consistent style. Print your pro...4. What To SubmitFollow the submission instructions and other procedures from the Projects page on the CS100 Cours...• The questions and answers from Part 1• The program and output from Part 211. GoalsThis assignment has four roles:• To help you become familiar with CS100 policies and procedures.• To ensure you have necessary Internet skills, such as email, news, and web browsing.• To help you practice with CodeWarrior.• To help you develop a program in Java.2. BackgroundIn large introductory courses, policy and procedure demand attention. The degree to which astudent follows requirements often helps or harms that student’s grade. Also, a student who failsto understand the available tools for the assignments rapidly falls behind. So, this assignmentrequires you to read the course information, understand the policies and procedures, andimplement the basic software tools.3. ProblemsThis assignment has two main parts, shown below. Remember to follow the submissionrequirements in theProjects page on the CS100 Course Website.3.1 Part 1: Short Answer Questions/Internet TasksFollow these steps:• Go to a computer.• Go to the CS100 Newsgroup on USENET. Hint: See the material link on the website.• Find the article with subject PROJECT 1 INFORMATION. Beware of fakes! Only an articleposted by [email protected] or [email protected] is legitimate for this assignment.• Forward the correct article to yourself as email.• Answer the questions inside the article, following the instructions therein. For example, do notdelete the questions. Each answer you type should follow each question.CS100 Spring 2000Professors David I. Schwartz & Thomas YanProject 1: A New HopeDue: Tuesday, February 1, 200023.2 Part 2: ProgrammingThis portion requires you to develop and test a program that has the following template with, ofcourse, your name(s) and information:// Name: Vincent Schiavelli Partner: Brian Thompson// ID: 123-456 ID: 654-123// Sec: Fan, Wed 1:25 Sec: Artemov, Thu 1:25//// Date: Feb 1, 2000// Project 1: A New Hopepublic class project1 {public static void main(String[] args) {// Code to be filled in by you!}}You must use the above template. Note that the template requires you to change the Java Targetsetting to project1. The program must perform the following tasks in the sequence below:• Output the sentence Hello, world! to the screen.• Output the sentence I am now calculating something irrelevant, butinteresting.• Assign the number of days in a year to the variable daysPerYear.• Assign the number of hours in a day to the variable hoursPerDay.• Assign the number of minutes in an hour to the variable minutesPerHour.• Assign the number of seconds in an minute to the variable secondsPerMinute.• Calculate the number of seconds in a year using the variables daysPerYear,hoursPerDay, minutesPerHour, and secondsPerMinute. Assign the result to asuitably named variable.• Output a brief label followed by the percent error of seconds from the number ofseconds in one year, all in the same line. Hints: You can represent as Math.PI in Java. Youmay calculate the percent error with the formula• Output the sentence I am done.Be sure to include appropriate commentary and follow a clear and consistent style. Print yourprogram and output when you are satisfied with the program’s behavior.4. What To SubmitFollow the submission instructions and other procedures from the Projects page on the CS100Course Website. You should include the following for submission:• The questions and answers from Part 1• The program and output from Part 2π7×10π100estimated


View Full Document

CORNELL CS 100 - Study Guide

Download Study Guide
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Guide and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Guide 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?