Computer Science E-50a: Introduction to Computer Science Using Java, I Handout #7 part 2
|
|
- Rebecca McKinney
- 5 years ago
- Views:
Transcription
1 Computer Science E-50a: Introduction to Computer Science Using Java, I Handout #7 part 2 part 2 These problems are due prior to the start of lecture on Monday night, March 31. Part A The Reading You may need to browse through the first 4 or 5 chapters in the Savitch textbook (or another Java reference book, if you have one). Now solve the following problems. Part B Pencil-and-Paper Exercise (10 points total) Don t use the computer in solving the following problem. [1] 10 points A certain charity designates donors who give more than $1,000 as Benefactors; those who give $500 to $999 as Patrons; those who give $100 to $499 as Supporters; those who give $15 to $99 as Friends; and those who give less than $15 as Cheapskates. Write a nested if-else statement (or statements) that, given the amount of a contribution, outputs the correct designation for that contributor. Assume an int variable named donationamount has already been declared and initialized with an appropriate value for your use. Spring 2003 Dr. S. J. Eigen
2 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 2 Part C Programming Problems (55 to 70 points) Solve the following problems using the computer! You must turn in computer printouts for these problems, as well as submit your work electronically via the UNIX system. We will demonstrate how to do this in lecture, and provide you with documentation in Part D of this handout. Be sure you use the precise file names shown in the problem descriptions when you write your own solutions! [2] 10 points (file Temperature.java) Write a Java program that prompts the user for a temperature between -20 and 110 degrees fahrenheit, and then tells the user what sport[s] can be played, according to the chart below. (Don't print the chart!) Swimming: >= 75 degrees Tennis: 60 < temperature <= 85 Skiing: 10 < temperature <= 32 Checkers: <= 10 degrees
3 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 3 Soccer: 32 < temperature <= 70 Here are two examples to illustrate what your program should look like in action: OK, mate, what's the temperature outside? 78 Looks good for... swimming tennis OK, mate, what's the temperature outside? 10 Looks good for... checkers Be sure to test your program out on a variety of (insightfully chosen) input values, and not just the ones shown above. [3] 15 points (file Triangle.java) Write a Java program that produces the output Your program must not, of course, consist entirely of System.out.print statements! Use for loops.
4 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 4 [4] 15 points (file Rocks.java) Officials at American embassies around the world are on alert to keep some statistics on the number of rocks thrown at their buildings each day. At the moment, embassy officials are interested in finding out only the average number of rocks thrown over a period of n days. They have asked for your help in writing a Java program to do this. Write a program named Rocks that computes the average of n numbers, where n is unknown when you write the program. Your program shall begin by asking the user for the value of n the number of values to be averaged up; your program will then allow the user to input n values, and finally compute (and print) their average. Your program should not allow the user to input a value for n that is smaller than 1. Your program should not allow the user to input a number smaller
5 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 5 than 1 for the number of days; if the user does, he or she should be warned, and then given another chance. Here are two sample runs to illustrate exactly how your program should appear in operation: How many rock-throwing days do you want averaged up? 4 OK -- Please start typing them in, one per line: How many rocks were thrown on day number 1? 2 How many rocks were thrown on day number 2? 9 How many rocks were thrown on day number 3? 3 How many rocks were thrown on day number 4? 6 There were an average of 5.00 rocks thrown per day! Here's another example illustrating program execution: How many rock-throwing days do you want averaged up? -2 Don't be ridiculous! Negative numbers are impossible! How many rock-throwing days do you want averaged up? 2 OK -- Please start typing them in, one per line: How many rocks were thrown on day number 1? 3 How many rocks were thrown on day number 2? 5 There were an average of 4.00 rocks thrown per day! For two points of extra credit, error-check the individual values typed for each day so that impossible numbers of rocks cannot be input. [5] 15 points (file Pyramid.java) Write a Java program that produces the output * *** ***** ******* ********* Design the program in such a way that it will be easy to enlarge the figure to 10 rows and 19 columns (use constants final ints or
6 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 6 static final ints and nested for loops). [6] For graduate-credit students only 10 points (file BabySitter.java) Undergraduate-credit students may attempt this problem for extra credit. This problem is required for all graduate-credit students. It s harder than it looks! Write a Java program that calculates how much to pay the baby-sitter. Although the problem sounds simple, it s trickier than it appears. Read on carefully! Assume that the starting time for the baby-sitter is somewhere between 6 PM and 11 PM; and that the ending-time is somewhere
7 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 7 between 9 PM and 4 AM. The only input to your program will be 4 numbers. The starting time is expressed as hours and minutes, and the ending time is also expressed as hours and minutes. For example, if the baby sitter works from 7:45 PM until 1:12 AM, then the input to your program should look like the following: At what HOUR did the baby-sitter start work? 7 At what MINUTE did the baby-sitter start work? 45 At what HOUR did the baby-sitter finish working? 1 At what MINUTE did the baby-sitter finish working? No other form of input is acceptable! Also, no other information can be input to the program. The output from your program should be the amount of money to be paid to the baby-sitter. The pay scale is: $3.50 per hour for 6 PM until 8 PM; $4.20 per hour from 8 PM until midnight; and $5.00 an hour after midnight. Use constants (final floats or doubles) for these three pay scales. Your program should be a tiny bit dummy-proof. If the user types input values that either are outside of the allowable range of possible working hours, or if the starting time is later than the ending time then your program should print an appropriate error message, and halt!
8 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 8 [7] For extra credit 5 points (file Matryoshka.java) A factory which makes Matryoshka dolls is run by a rather sadistic fellow. The dolls are made in 10 sizes, #1 being the smallest, and #10 the largest. The dolls are sold as sets, with dolls inside dolls, inside dolls. As workers finish painting dolls, they (the dolls, not the workers) are placed on a conveyer belt in random order. The assemblers, waiting at the end of the line, have been told that they must pick up the dolls in the order in which they arrive. The workers are to insert their current set inside each new doll, making a larger set. If the new doll isn't big enough they must begin a new set. The poor customer who buys a doll with nothing inside is simply out of luck. Write a program which prompts for, and reads a series of 20 doll sizes. The program should announce each time a new set is started. After all 20 sizes have been entered, the program should report the total number of sets and the number of dolls in the largest set. Here s an example to illustrate what your program should look like in action:
9 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 9 Execution of program: Please type the 20 doll sizes: Next doll size: 2 -- new set started Next doll size: 3 Next doll size: 5 Next doll size: 4 -- new set started Next doll size: 6 Next doll size: 8 Next doll size: 1 -- new set started Next doll size: 9 Next doll size: 10 Next doll size: 3 -- new set started Next doll size: 5 Next doll size: 2 -- new set started Next doll size: 8 Next doll size: 10 Next doll size: 9 -- new set started Next doll size: 3 -- new set started Next doll size: 5 Next doll size: 7 Next doll size: 9 Next doll size: 10 There are 7 sets in all. The largest set has 5 dolls. (see for a cool website done last year by an Extension School student for a multimedia class)
10 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 10 [8] For extra credit (5 points) (file BigH.java) Write a Java program that reads a number say n from the keyboard and types out a block letter H on the screen with sides of size n, like these: *** *** *** *** *** *** ********* ********* ********* *** *** *** *** *** *** ** ** ** ** ****** ****** ** ** ** ** * * *** * * The figures shown above are the output that would be produced if the numbers typed in were 3, 2 and 1, respectively. Your program should ask politely for the number to be typed in; make sure it isn t too large or too small to be meaningful, and then print the corresponding H. You should use at least 10 for the maximum allowable size.
11 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 11 Part D Procedures for Submitting Java Programs (from the course website) 1) Before beginning the programming assignment of a problem set, you should create a directory in your account for that problem set, and do the work for that problem set in that directory. The following sequence of commands will do this for unit2 (change the number for later assignments -- everything else will remain the same): [is01] ~> cd [is01] ~> mkdir unit2 [is01] ~> cd unit2 [is01] ~/unit2> % This makes the new directory, and then switches you into it. Note that the characters in appearing square brackets may look different 2) Now, type in, compile, and debug your programs. You'll end up with a bunch of files, some with a '.java' suffix and some with '.class' suffix. 3) Once you're ready to turn in your programs, use the 'script' command to generate demo output. If your source file is "Rocks.java," you should name your script file "Rocks.out", so we can tell which program it is the demo for! Here's how it works: at the Unix prompt type, the following (the name "Rocks.out" is just an example): [is01] ~/unit2> % script -a Rocks.out From this point on, until you type an 'exit' command at the Unix prompt, EVERYTHING THAT APPEARS ON THE SCREEN ALSO GETS SAVED IN A PRINTABLE FILE NAMED Rocks.out (in this example). Typically, you would run the program several times, with either the sample input given by the handout or your own judiciously selected input. IF THE HANDOUT GIVES SAMPLE INPUT, USE THAT INPUT (at least, you may include more). Once you've finished running the program, end the 'script' session by entering an 'exit' command. 'Exit' commands include: exit, <ctrl>-d, as in [is01] ~> exit...some messages appear: exit, Script done, file is
12 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 12 Rocks.out [is01] ~> Now, you can print out the file "Rocks.out" and hand it in! Easy as pie! Once you have thoroughly tested your code and created "demo output" files, submitting your assignment is easy. There are two parts: (a)hardcopy submission (stapled or black-binder-clipped together -- NOT loose!!, NOT paper-clipped!!): 1. printouts of each program 2. demo output for each program, 3. a summary README file and turn in to your TF's "mailbox" outside Science Center 102) (b) Electronic submission (what we're about to do here). TO SUBMIT ELECTRONICALLY, simply type (at the prompt): [is01] ~> submit cscie50a 21 ~/unit2 The syntax is picky: there are four parts to that command. The first two are easy, just type them in; the remainder require explanation: * submit -- just type this in * cscis1 -- just type this in * the "assignment number" - we will provide this to you for each problem set. 21 is correct for unit 2 part 1, ONLY. FYI: IF a unit 'n's problem set gets broken into two parts, the "assignment numbers" will be n1 and n2 (example: since unit 2 has two parts: the "assignment numbers" will be 21 and 22) * ~/unit2 -- the directory containing the files you're submitting. The wrinkle is that it must be a "full" pathname. Putting the "~/" before the directory name does this for you. unit2 -- the name of the directory containing the files, as created in
13 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 13 your home directory at the top of this handout That's it! BUT... it will only work if you've fully and correctly completed steps 1-3 above. If you have trouble, reread these instructions to make sure you've done everything indicated above. If all's well, you'll see a few messages, then a message stating that submission was successful. [is01] ~> submit cscis1 21 ~/unit2 Ok, submitting the files in /home/m/o/studentname/unit2 Creating temporary directory /usr/lsys/submit/ studentname... Copying assignment files to /usr/lsys/submit/ studentname... Submitting cscis1 assignment Temporary files removed. Successful submission! [is01] ~> By the way, it's OK TO RE-SUBMIT revised versions of programs. The 'submit' program will notice that you've already submitted, and will cautiously let you re-submit, prompting you about proceeding. IF YOU RE-SUBMIT, NOTE THE FOLLOWING: * You must ALSO re-submit printouts of BOTH PROGRAM AND MATCHING DEMO RUNS! The Teaching Fellows work mainly from the hardcopy! * CLEARLY MARK THE NEW VERSION AS "REVISED VERSION - PROB SET 'X', PROBLEM 'N'" or similar... and your Teaching Fellow to let him/her know! * MAKE SURE THAT ELECTRONIC AND HARDCOPY SUBMISSIONS MATCH! If you resubmit, you'll see something like this: [is01] ~> submit cscis1 21 ~/unit2 You have already submitted cscis1 assignment 21: -rw studentname extlib 2010 Feb 20 17:10 /home/l/i/libs1/submit/asst21/studentname.tgz Do you want replace your submission with the files currently in:
14 Computer Science E-50a: Introduction to Computer Science Using Java, I Page 14 /home/m/o/morris/unit2 Please enter y or n: y Your existing submission has been put aside as a backup. It will be put back should problems be encountered with the submission you are doing now. However, if the program terminates before you see either: "Successful submission!" or "Unsuccessful submission!" then you will have to run 'submit' again. Ok, submitting the files in /home/m/o/morris/unit2 Creating temporary directory /usr/lsys/submit/morris... Copying assignment files to /usr/lsys/submit/morris... Submitting cscie50b assignment Temporary files removed. Successful submission! [is01] ~> After 'submitting' as above, you should print out your files so they can be turned in to your Teaching Fellow. To print at the Science Center, type (at the prompt): [is01] ~> lpr FileName.java This comes out on the (free) line printer in the Science Center basement terminal room (to the left at the bottom of the stairs), IF IT STILL EXISTS... Near the Help Desk in the Science Center Terminal Room, are a rack of helpful handouts, including one describing how to print on the laser printers in the Science Center (costs 5 cents per page). Laser printing is free at the 53 Church St. labs. YOU MAY, OF COURSE, DOWNLOAD AND PRINT EVERYTHING ON YOUR OWN PRINTER!
Tips from the experts: How to waste a lot of time on this assignment
Com S 227 Spring 2018 Assignment 1 100 points Due Date: Friday, September 14, 11:59 pm (midnight) Late deadline (25% penalty): Monday, September 17, 11:59 pm General information This assignment is to be
More informationLab 1: Accessing the Linux Operating System Spring 2009
CIS 90 Linux Lab Exercise Lab 1: Accessing the Linux Operating System Spring 2009 Lab 1: Accessing the Linux Operating System This lab takes a look at UNIX through an online experience on an Ubuntu Linux
More informationThe print queue was too long. The print queue is always too long shortly before assignments are due. Print your documentation
Chapter 1 CS488/688 F17 Assignment Format I take off marks for anything... A CS488 TA Assignments are due at the beginning of lecture on the due date specified. More precisely, all the files in your assignment
More informationTOPIC 2 INTRODUCTION TO JAVA AND DR JAVA
1 TOPIC 2 INTRODUCTION TO JAVA AND DR JAVA Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach by M. Guzdial and B. Ericson, and instructor materials prepared
More informationThis is a combination of a programming assignment and ungraded exercises
CSE 11 Winter 2017 Programming Assignment #1 Covers Chapters: ZY 1-3 START EARLY! 100 Pts Due: 25 JAN 2017 at 11:59pm (2359) This is a combination of a programming assignment and ungraded exercises Exercises
More informationAdding Content to Blackboard
Adding Content to Blackboard Objectives... 2 Task Sheet for: Adding Content to Blackboard... 3 What is Content?...4 Presentation Type and File Formats... 5 The Syllabus Example... 6 PowerPoint Example...
More informationProgramming Assignment 2 ( 100 Points )
Programming Assignment 2 ( 100 Points ) Due: Thursday, October 16 by 11:59pm This assignment has two programs: one a Java application that reads user input from the command line (TwoLargest) and one a
More informationCS 6353 Compiler Construction Project Assignments
CS 6353 Compiler Construction Project Assignments In this project, you need to implement a compiler for a language defined in this handout. The programming language you need to use is C or C++ (and the
More informationCOMP 105 Homework: Type Systems
Due Tuesday, March 29, at 11:59 PM (updated) The purpose of this assignment is to help you learn about type systems. Setup Make a clone of the book code: git clone linux.cs.tufts.edu:/comp/105/build-prove-compare
More informationCS : Programming for Non-Majors, Fall 2018 Programming Project #5: Big Statistics Due by 10:20am Wednesday November
CS 1313 010: Programming for Non-Majors, Fall 2018 Programming Project #5: Big Statistics Due by 10:20am Wednesday November 7 2018 This fifth programming project will give you experience writing programs
More informationSenior Ad Packet for the 2018 Bonham High School Yearbook
Senior Ad Packet for the 2018 Bonham High School Yearbook DEADLINE NOVEMBER 10 DEADLINE NOVEMBER 10 DEADLINE NOVEMBER 10 This is your child s last year in high school. Senior year is a big deal to both
More informationSenior Ad Packet for the 2018 Naaman Forest High School Yearbook
Senior Ad Packet for the 2018 Naaman Forest High School Yearbook DEADLINE 12-8 DEADLINE 12-8 DEADLINE 12-8 This is your child s last year in high school. Senior year is a big deal to both the student and
More informationProgramming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur
Programming in Java Prof. Debasis Samanta Department of Computer Science Engineering Indian Institute of Technology, Kharagpur Lecture 04 Demonstration 1 So, we have learned about how to run Java programs
More informationTips from the experts: How to waste a lot of time on this assignment
Com S 227 Spring 2018 Assignment 1 80 points Due Date: Friday, February 2, 11:59 pm (midnight) Late deadline (25% penalty): Monday, February 5, 11:59 pm General information This assignment is to be done
More informationNote: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.
Com S 227 Fall 2017 Miniassignment 1 50 points Due Date: Monday, October 16, 11:59 pm (midnight) Late deadline (25% penalty): Tuesday, October 17, 11:59 pm General information This assignment is to be
More informationCONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction
CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics COMP-202 Unit 1: Introduction Announcements Did you miss the first lecture? Come talk to me after class. If you want
More informationCS 6353 Compiler Construction Project Assignments
CS 6353 Compiler Construction Project Assignments In this project, you need to implement a compiler for a language defined in this handout. The programming language you need to use is C or C++ (and the
More informationChapter 4 Lab. Loops and Files. Objectives. Introduction
Chapter 4 Lab Loops and Files Objectives Be able to convert an algorithm using control structures into Java Be able to write a while loop Be able to write a do-while loop Be able to write a for loop Be
More informationBlackboard Student Guide
Blackboard Student Guide Blackboard is an Internet application used by many instructors to put their courses online. Typically, your instructor will let you know on the first day of class if he or she
More informationNote: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.
Com S 227 Spring 2018 Miniassignment 1 40 points Due Date: Thursday, March 8, 11:59 pm (midnight) Late deadline (25% penalty): Friday, March 9, 11:59 pm General information This assignment is to be done
More informationTaking Control of Your . Terry Stewart Lowell Williamson AHS Computing Monday, March 20, 2006
Taking Control of Your E-Mail Terry Stewart Lowell Williamson AHS Computing Monday, March 20, 2006 Overview Setting up a system that works for you Types of e-mail Creating appointments, contacts and tasks
More informationCOMP26120 Academic Session: Lab Exercise 2: Input/Output; Strings and Program Parameters; Error Handling
COMP26120 Academic Session: 2018-19 Lab Exercise 2: Input/Output; Strings and Program Parameters; Error Handling Duration: 1 lab session For this lab exercise you should do all your work in your COMP26120/ex2
More informationIntroduction to Programming
CHAPTER 1 Introduction to Programming Begin at the beginning, and go on till you come to the end: then stop. This method of telling a story is as good today as it was when the King of Hearts prescribed
More informationProgramming Assignment III
Programming Assignment III First Due Date: (Grammar) See online schedule (submission dated midnight). Second Due Date: (Complete) See online schedule (submission dated midnight). Purpose: This project
More informationEE 422C HW 6 Multithreaded Programming
EE 422C HW 6 Multithreaded Programming 100 Points Due: Monday 4/16/18 at 11:59pm Problem A certain theater plays one show each night. The theater has multiple box office outlets to sell tickets, and the
More informationRepetitive Program Execution
Repetitive Program Execution Quick Start Compile step once always mkdir labs javac Vowel3java cd labs mkdir 3 Execute step cd 3 java Vowel3 cp /samples/csc/156/labs/3/* Submit step emacs Vowel3java & submit
More informationCSci 1113, Spring 2018 Lab Exercise 3 (Week 4): Repeat, Again and Again
CSci 1113, Spring 2018 Lab Exercise 3 (Week 4): Repeat, Again and Again Iteration Imperative programming languages such as C++ provide high-level constructs that support both conditional selection and
More informationTemple University Computer Science Programming Under the Linux Operating System January 2017
Temple University Computer Science Programming Under the Linux Operating System January 2017 Here are the Linux commands you need to know to get started with Lab 1, and all subsequent labs as well. These
More informationCSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209
CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System
More informationLinux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs
Linux Tutorial #1 Introduction The Linux operating system is now over 20 years old, and is widely used in industry and universities because it is fast, flexible and free. Because Linux is open source,
More informationCIS*1500 Introduction to Programming
CIS*1500 Introduction to Programming CIS*1500 Learning to program The basic constructs of programming Programming in the C language Solving real problems Not just about coding! About me??? Some basic things...
More informationIntroduction to Programming System Design CSCI 455x (4 Units)
Introduction to Programming System Design CSCI 455x (4 Units) Description This course covers programming in Java and C++. Topics include review of basic programming concepts such as control structures,
More informationChapter 5. Repetition. Contents. Introduction. Three Types of Program Control. Two Types of Repetition. Three Syntax Structures for Looping in C++
Repetition Contents 1 Repetition 1.1 Introduction 1.2 Three Types of Program Control Chapter 5 Introduction 1.3 Two Types of Repetition 1.4 Three Structures for Looping in C++ 1.5 The while Control Structure
More informationComputer Technology Division. Course Syllabus for: COMT Spring Instructor: Joe Bolen
Computer Technology Division Course Syllabus for: COMT 11009 Spring 2013 Instructor: Joe Bolen Course: Computer Assembly & Configuration COMT 11009 Spring 2013 / Tuscarawas / Call # 12133 / Section 800
More informationSTUDENT LESSON A12 Iterations
STUDENT LESSON A12 Iterations Java Curriculum for AP Computer Science, Student Lesson A12 1 STUDENT LESSON A12 Iterations INTRODUCTION: Solving problems on a computer very often requires a repetition of
More informationCSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209
CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System
More informationSTUDENT FAQS (LAUNCHPAD, WRITER'S HELP 2.0, AND LEARNINGCURVE)
STUDENT FAQS (LAUNCHPAD, WRITER'S HELP 2.0, AND LEARNINGCURVE) Table of Contents... 3 What are the minimum system requirements for your media?... 4 Access Code FAQs... 6 How do I register for my course
More informationPencil-and-Paper Exercises (15 points total)
Computer Science E-50a: Introduction to Computer Science Using Java, I Handout part 1 I.Description Refer to the Savitch text (or your favorite Java reference) to reinforce your comprehension of Java parameter
More informationCS : Computer Programming, Spring 2000 Programming Project #1: Thinking of a Number Due in class Thursday 27 January 2000
CS 1313 010: Computer Programming, Spring 2000 Programming Project #1: Thinking of a Number Due in class Thursday 27 January 2000 For online help check the class website http://www.ecn.ou.edu/cs1313010/
More informationWeek 3: Objects, Input and Processing
CS 170 Java Programming 1 Week 3: Objects, Input and Processing Learning to Create Objects Learning to Accept Input Learning to Process Data What s the Plan? Topic I: Working with Java Objects Learning
More informationNote: This is a miniassignment and the grading is automated. If you do not submit it correctly, you will receive at most half credit.
Com S 227 Fall 2018 Miniassignment 1 40 points Due Date: Friday, October 12, 11:59 pm (midnight) Late deadline (25% penalty): Monday, October 15, 11:59 pm General information This assignment is to be done
More informationCSCI 1060U Programming Workshop
CSCI 1060U Programming Workshop Professor: Dr. Jeremy S. Bradbury Phone: 905-721- 8668 ext. 3685 E- mail: jeremy.bradbury@uoit.ca Office hour: To be announced (UA4016), otherwise by appointment Teaching
More informationAnnouncements. Lab Friday, 1-2:30 and 3-4:30 in Boot your laptop and start Forte, if you brought your laptop
Announcements Lab Friday, 1-2:30 and 3-4:30 in 26-152 Boot your laptop and start Forte, if you brought your laptop Create an empty file called Lecture4 and create an empty main() method in a class: 1.00
More informationECE2049 Embedded Computing in Engineering Design. Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio
ECE2049 Embedded Computing in Engineering Design Lab #0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab you will be introduced to the Code Composer Studio
More informationCS 1301 Fall 2008 Lab 2 Introduction to UNIX
CS 1301 Fall 2008 Lab 2 Introduction to UNIX Due: Friday, September 19 th, at 6 PM (Monday, September 22 nd for 10% off) Notes: Do not wait until the last minute to do this assignment in case you run into
More informationCOMP 202 Java in one week
COMP 202 Java in one week... Continued CONTENTS: Return to material from previous lecture At-home programming exercises Please Do Ask Questions It's perfectly normal not to understand everything Most of
More informationSpring CISM 3330 Section 01D (crn: # 10300) Monday & Wednesday Classroom Miller 2329 Syllabus revision: #
Spring 2018 - CISM 3330 Section 01D (crn: # 10300) Monday & Wednesday 0800 0915 Classroom Miller 2329 Syllabus revision: # 171124 FACULTY DATA: Dr. Douglas Turner Phone: 678.839.5252 Miller 2223 OFFICE
More informationStudent Guide to Blackboard
Student Guide to Blackboard Blackboard is an Internet application used by many instructors to put their courses online. Typically, your instructor will let you know on the first day of class if he or she
More informationCIS 110 Fall 2014 Introduction to Computer Programming 8 Oct 2014 Midterm Exam Name:
CIS 110 Fall 2014 Introduction to Computer Programming 8 Oct 2014 Midterm Exam Name: Recitation # (e.g., 201): Pennkey (e.g., eeaton): My signature below certifies that I have complied with the University
More informationLab 1 Implementing a Simon Says Game
ECE2049 Embedded Computing in Engineering Design Lab 1 Implementing a Simon Says Game In the late 1970s and early 1980s, one of the first and most popular electronic games was Simon by Milton Bradley.
More informationFall CSEE W4119 Computer Networks Programming Assignment 1 - Simple Online Bidding System
Fall 2012 - CSEE W4119 Computer Networks Programming Assignment 1 - Simple Online Bidding System Prof. Gil Zussman due: Wed. 10/24/2012, 23:55 EST 1 Introduction In this programming assignment, you are
More informationCIS 110 Introduction to Computer Programming Summer 2016 Midterm. Recitation # (e.g., 201):
CIS 110 Introduction to Computer Programming Summer 2016 Midterm Name: Recitation # (e.g., 201): Pennkey (e.g., paulmcb): My signature below certifies that I have complied with the University of Pennsylvania
More information************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE
Program 10: 40 points: Due Tuesday, May 12, 2015 : 11:59 p.m. ************ THIS PROGRAM IS NOT ELIGIBLE FOR LATE SUBMISSION. ALL SUBMISSIONS MUST BE RECEIVED BY THE DUE DATE/TIME INDICATED ABOVE HERE *************
More informationLaboratory 5: Implementing Loops and Loop Control Strategies
Laboratory 5: Implementing Loops and Loop Control Strategies Overview: Objectives: C++ has three control structures that are designed exclusively for iteration: the while, for and do statements. In today's
More informationECE2049: Embedded Systems in Engineering Design Lab Exercise #3 C Term Making a Time and Temperature Display
ECE2049: Embedded Systems in Engineering Design Lab Exercise #3 C Term 2019 Making a Time and Temperature Display In this laboratory you will use the MSP430 and several of its peripherals to implement
More informationInstructions PLEASE READ (notice bold and underlined phrases)
Assignment 2 Writing Basic Java Programs Required Reading Java Foundations Chapter 2 Data and Expressions Chapter 3 Sections 3.1-3.2, 3.4-3.7 Chapter 4 Sections 4.2-4.5, 4.7-4.8 Instructions PLEASE READ
More informationProject 5 - The Meta-Circular Evaluator
MASSACHVSETTS INSTITVTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science 6.001 Structure and Interpretation of Computer Programs Spring Semester, 2005 Project 5 - The Meta-Circular
More informationCSCI 3300 Assignment 3
Austin Peay State University, Tennessee Spring 2014 CSCI 3300: Introduction to Web Development Dr. Leong Lee CSCI 3300 Assignment 3 When you see Richard Ricardo in the example screen captures, change it
More informationLab 1 Implementing a Simon Says Game
ECE2049 Embedded Computing in Engineering Design Lab 1 Implementing a Simon Says Game In the late 1970s and early 1980s, one of the first and most popular electronic games was Simon by Milton Bradley.
More informationChapter 5 Errors. Bjarne Stroustrup
Chapter 5 Errors Bjarne Stroustrup www.stroustrup.com/programming Abstract When we program, we have to deal with errors. Our most basic aim is correctness, but we must deal with incomplete problem specifications,
More informationProject 1 - Battleship Game
Project 1 - Battleship Game Minimal Submission Due: Friday, December 22 th, 2006 Revision History Final Project Due: Sunday, January 21 th, 2007 Dec 7th, 2006, v1.0: Initial revision for faculty review.
More informationPart 1 - Your First algorithm
California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Spring 2016 Activity A Introduction to Flowgorithm Flowcharts
More informationBCIS 3630 Dr. GUYNES SPRING 2018 TUESDAY SECTION [JAN version] GRADER COURSE WEBSITE
COURSE WEBSITE http://www.steveguynes.com/bcis3630/bcis3630/default.html Instructor: Dr. Guynes Office: BLB 312H Phone: (940) 565-3110 Office Hours: By Email Email: steve.guynes@unt.edu TEXTBOOK: Starting
More informationZiiZii ios User Manual
ZiiZii ios User Manual Version 2.5.6 - Updated on May 24th, 2017 Copyright 2017 Novex Software Development, Inc. All rights reserved. Table of Contents Setup Instructions Downloads Updating Customer Selection
More informationCSC 326H1F, Fall Programming Languages. What languages do you know? Instructor: Ali Juma. A survey of counted loops: FORTRAN
What languages do you know? CSC 326H1F, Programming Languages The usual suspects: C, C++, Java fine languages nearly the same Perhaps you've also learned some others? assembler Basic, Visual Basic, Turing,
More informationCIS 101 Orientation Document Fall 2017
CIS 101 Orientation Document Fall 2017 Fall 2017 ONLINE section 23989 To be successful in an online section you must be motivated, disciplined, and able to read and understand the material in the books
More informationMajor Assignment: Pacman Game
Major Assignment: Pacman Game 300580 Programming Fundamentals Week 10 Assignment The major assignment involves producing a Pacman style game with Clara using the Greenfoot files that are given to you.
More informationCPSC 213. Introduction to Computer Systems. About the Course. Course Policies. Reading. Introduction. Unit 0
About the Course it's all on the web page... http://www.ugrad.cs.ubc.ca/~cs213/winter1t1/ - news, admin details, schedule and readings CPSC 213 - lecture slides (always posted before class) - 213 Companion
More informationBlackboard Student Guide
Blackboard Student Guide Blackboard is an Internet application used by many instructors to put their courses online. Typically, your instructor will let you know on the first day of class if he or she
More informationCS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points
CS 1803 Pair Homework 3 Calculator Pair Fun Due: Wednesday, September 15th, before 6 PM Out of 100 points Files to submit: 1. HW3.py This is a PAIR PROGRAMMING Assignment: Work with your partner! For pair
More informationProblem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur
Problem Solving through Programming In C Prof. Anupam Basu Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 18 Switch Statement (Contd.) And Introduction to
More informationPython Programming Exercises 1
Python Programming Exercises 1 Notes: throughout these exercises >>> preceeds code that should be typed directly into the Python interpreter. To get the most out of these exercises, don t just follow them
More informationHomework 09. Collecting Beepers
Homework 09 Collecting Beepers Goal In this lab assignment, you will be writing a simple Java program to create a robot object called karel. Your robot will start off in a world containing a series of
More informationWe first learn one useful option of gcc. Copy the following C source file to your
Lecture 5 p.1 Faculty of Computer Science, Dalhousie University CSCI 2132 Software Development Lab 5: gcc and gdb tools 10-Oct-2018 Location: Teaching Labs Time: Thursday Instructor: Vlado Keselj Lab 5:
More informationHands on Assignment 1
Hands on Assignment 1 CSci 2021-10, Fall 2018. Released Sept 10, 2018. Due Sept 24, 2018 at 11:55 PM Introduction Your task for this assignment is to build a command-line spell-checking program. You may
More informationHow do I log into my MyOCC account? -
Welcome to MyOCC, Coast Community College District s (CCCD) one-stop website that seamlessly connects you to the Online Class Schedule, Registration, Grades, Unofficial Transcripts, Canvas, Campus Announcements,
More informationLab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio
ECE2049 Embedded Computing in Engineering Design Lab 0 Introduction to the MSP430F5529 Launchpad-based Lab Board and Code Composer Studio In this lab, you will be introduced to the Code Composer Studio
More informationProgramming Languages
Programming Languages G22.2110-001 Fall 2010 Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Session 2: Assignment #1 I. Due Date Monday
More informationYup, left blank on purpose. You can use it to draw whatever you want :-)
Yup, left blank on purpose. You can use it to draw whatever you want :-) Chapter 1 The task I have assigned myself is not an easy one; teach C.O.F.F.E.E. Not the beverage of course, but the scripting language
More informationCMPUT 201: Practical Programming Methodology. Guohui Lin Department of Computing Science University of Alberta September 2018
CMPUT 201: Practical Programming Methodology Guohui Lin guohui@ualberta.ca Department of Computing Science University of Alberta September 2018 Lecture 1: Course Outline Agenda: Course calendar description
More informationPhysics 306 Computing Lab 1: Hello, World!
1. Introduction Physics 306 Computing Lab 1: Hello, World! In today s lab, you will learn how to write simple programs, to compile them, and to run them. You will learn about input and output, variables,
More informationComputer Basics: Step-by-Step Guide (Session 2)
Table of Contents Computer Basics: Step-by-Step Guide (Session 2) ABOUT PROGRAMS AND OPERATING SYSTEMS... 2 THE WINDOWS 7 DESKTOP... 3 TWO WAYS TO OPEN A PROGRAM... 4 DESKTOP ICON... 4 START MENU... 5
More informationCHAPTER 7 ARRAYS: SETS OF SIMILAR DATA ITEMS
CHAPTER 7 ARRAYS: SETS OF SIMILAR DATA ITEMS Computers process information and usually they need to process masses of information. In previous chapters we have studied programs that contain a few variables
More informationNotes to Accompany Debugging Lecture. Jamie Blustein
Notes to Accompany Debugging Lecture Jamie Blustein 28 April 2002 Introduction This lecture was originally written for Turbo Pascal, then updated for the rst ANSI C standard, then object-free C++. It does
More informationETS110: Internet Protocol Routing Lab Assignment
Dept of Electrical and Information Technology 2010-10-13 Jens A Andersson vers 3.1 ETS110: Internet Protocol Routing Lab Assignment 1 Purpose and Goals This lab assignment will give a hands-on experience
More informationInformation Security II Prof. Kamakoti Department of Computer Science and Engineering Indian Institute of Technology, Madras
Information Security II Prof. Kamakoti Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 30 Task Switch recap - Week 6 (Refer Slide Time: 00:09) So welcome back
More informationGEO 425: SPRING 2012 LAB 9: Introduction to Postgresql and SQL
GEO 425: SPRING 2012 LAB 9: Introduction to Postgresql and SQL Objectives: This lab is designed to introduce you to Postgresql, a powerful database management system. This exercise covers: 1. Starting
More informationCS 1110, LAB 3: MODULES AND TESTING First Name: Last Name: NetID:
CS 1110, LAB 3: MODULES AND TESTING http://www.cs.cornell.edu/courses/cs11102013fa/labs/lab03.pdf First Name: Last Name: NetID: The purpose of this lab is to help you better understand functions, and to
More informationNORWALK HIGH SCHOOL PERCUSSION AND COLOR GUARD WINTER 2019 PROGRAM BOOK
NORWALK HIGH SCHOOL PERCUSSION AND COLOR GUARD WINTER 2019 PROGRAM BOOK December 2018 Dear Guard and Percussion Members, Parents and Guardians, This year we will once again be producing a program book
More informationlast time in cs recitations. computer commands. today s topics.
last time in cs1007... recitations. course objectives policies academic integrity resources WEB PAGE: http://www.columbia.edu/ cs1007 NOTE CHANGES IN ASSESSMENT 5 EXTRA CREDIT POINTS ADDED sign up for
More informationMarketing tools for Check-Inn Setup Guide & Manual. Rev. 1/22/16
Marketing tools for Check-Inn Setup Guide & Manual Rev. 1/22/16 2015 Innsoft, Inc. Contents License & warranty... 5 Customer support... 6 Acknowledgement... 6 Introduction... 7 Getting Started... 8 Installation...
More informationStarting to Program in C++ (Basics & I/O)
Copyright by Bruce A. Draper. 2017, All Rights Reserved. Starting to Program in C++ (Basics & I/O) On Tuesday of this week, we started learning C++ by example. We gave you both the Complex class code and
More informationSoilMate Import results and view
Contents 1. Overview... 1 2. Import Results... 1 2.1 Download results in SoilMate program... 1 2.2 From email file... 2 3. Lab Results Page orientation... 4 4. Preview Results... 5 5. Help please!... 6
More informationComputer Science 1 Program 4 TA Lab (Stacks & Queues) Assigned: 3/2/11 Due: 3/23/11 (Wednesday) at 11:55pm (WebCourses time)
Computer Science 1 Program 4 TA Lab (Stacks & Queues) Assigned: 3/2/11 Due: 3/23/11 (Wednesday) at 11:55pm (WebCourses time) The Problem UCF, Computer Science I students, although AWESOME, are major procrastinators!!!
More informationCS112 Lecture: Repetition Statements
CS112 Lecture: Repetition Statements Objectives: Last revised 2/18/05 1. To explain the general form of the java while loop 2. To introduce and motivate the java do.. while loop 3. To explain the general
More informationYou must pass the final exam to pass the course.
Computer Science Technology Department Houston Community College System Department Website: http://csci.hccs.cc.tx.us CRN: 46876 978-1-4239-0146-4 1-4239-0146-0 Semester: Fall 2010 Campus and Room: Stafford
More informationLecture 7. Instructor: Craig Duckett OUTPUT
Lecture 7 Instructor: Craig Duckett OUTPUT Lecture 7 Announcements ASSIGNMENT 2 is due LECTURE 8 NEXT LECTURE uploaded to StudentTracker by midnight Assignment 2!!! Assignment Dates (By Due Date) Assignment
More informationLab Assignment #1: Introduction to Creo ME 170
Lab Assignment #1: Introduction to Creo ME 170 Instructor: Mike Philpott (email: mphilpot@illinois.edu) Date Due: One week from Start Day of Lab (turn in deadline 11pm night before next lab) Make sure
More informationQuick Start Guide: Electronic (E) Labels. - Copyright Bureau Veritas
Quick Start Guide: Electronic (E) Labels E-Labels Learn How To: 1. Create Labels Online 2. Modify & Track Labels 3. Review Sample Submitted History 2 Labels: Explore Tab or Find Tab There are two ways
More informationPython lab session 1
Python lab session 1 Dr Ben Dudson, Department of Physics, University of York 28th January 2011 Python labs Before we can start using Python, first make sure: ˆ You can log into a computer using your username
More information