Spring CS Homework 7 p. 1. CS Homework 7
|
|
- Milton Carter
- 5 years ago
- Views:
Transcription
1 Spring CS Homework 7 p. 1 Deadline 11:59 pm on Friday, March 23, 2018 Purpose CS Homework 7 To practice with some C++ basics, including following design recipe steps for designing and writing simple C++ functions -- now using NetBeans to test and run your functions from Homework 6 -- and also designing some additional functions so you can practice using a string method and using one of your functions in another function. How to submit Submit your main.cpp file for Homework 7 on (Remember, it is good to submit early and often!) Important notes You are still expected to follow the Design Recipe for all functions that you design/define. Remember, you will receive significant credit for the signature, purpose, header, and examples/tests portions of your functions. Typically you'll get at least half-credit for a correct signature, purpose, header, and examples/tests, even if your function body is not correct. (and, you'll lose at least half-credit if you omit these or do them poorly, even if your function body is correct). That said -- remember that, in C++: use C++ type names in the signatures of C++ functions write examples/tests as bool expressions, typically using == or <. For example, my_funct(3) == 27 abs(my_dbl(4.7) ) < and note that these example tests are EXPRESSIONS rather than C++ statements -- do NOT end them with a semicolon! Be especially careful to include at least two examples/tests for every function, including at least one specific example/test for each "kind"/category of data, and (when there are boundaries) for boundaries between data. You can lose credit for not doing so. Be sure to indent your return statement by at least 3 spaces inside your function body! And curly braces go on their own line, lined up as shown in the posted class examples! Homework Program Setup Start NetBeans. From the File menu, select New Project.... You should see a screen that lets you select C/C++ as a Category and C/C++ Application as a Project. Do so, and click Next>.
2 Spring CS Homework 7 p. 2 Type 111hw7 in the Project Name box, and use Browse... to direct the Project Location folder to your desired location. (REMEMBER: in an HSU lab, this needs to be to the U: drive or to a flash drive.) All other options should remain as they are. Then select "Finish". In the left-side window, expand the Source Files section, then double-click on main.cpp this should open an editor window with the contents of the main.cpp file. REPLACE main.cpp's current contents with the "first main.cpp template" from the CS 111 public course web site, under "References". (You can REMOVE, or just not paste in, the very first "FIRST VERSION" comment.) See the comment that has by: and last modified:? START that comment with: CS HW 7 Then put your name after by:, and today's date after last modified:. For example: /*--- CS HW 7 by: Your Name last modified: */ Problem 1 In the "first main.cpp template" you pasted into your main.cpp, find the comment: /*--- PUT YOUR SIGNATURES, PURPOSES, and FUNCTION DEFINITIONS HERE ---*/ After this comment, type a blank link, and then type the comment: Problem 1 Remember function rect_perim from Homework 6, Problem 1? Type in or paste your signature, purpose, examples/tests, function header, and function body for rect_perim. Recall the function from Homework 2, Problem 2 that returns the perimeter of a rectangle. Use the design recipe to design a C++ version of this function named rect_perim. (rect_perim expects the length and width of a rectangle, and returns the perimeter of that rectangle.) Then, in the main function, edit:
3 Spring CS Homework 7 p. 3...so that it says you are testing rect_perim, and includes your examples/tests for rect_perim. Make sure rect_perim runs (Run -> Run Project), and its tests pass! You should see: *** Testing rect_perim *** of rect_perim after these tests, so that you see the value those call(s) return. Problem 2 After Problem 1's rect_perim, type a blank link, and then type the comment: Problem 2 Remember function ask_abt_day from Homework 6, Problem 2? Type in or paste your signature, purpose, examples/tests, function header, and function body for ask_abt_day. Recall the fun C++ fact also noted in the Week 7 Lab Exercise: One of the benefits of the C++ string type is that you can use + to append two string instances together -- or even a string and a char*! (At least ONE of the arguments to + has to be a string instance for this to work!) Recall the function from Homework 2, Problem 3 that asks a given person how their day is going. Use the design recipe to design a C++ version of this function named ask_abt_day. (ask_abt_day expects a person's name, and returns a customized question, How's it going,...that person's name...?, asking how their day is going. As in Homework 2, optionally, you may change the exact wording of the question, as long as it includes the person's name and ends with at least one question mark.) Then, in the main function, AFTER the tests for rect_perim, paste in and edit:...so that it says you are testing ask_abt_day, and includes your examples/tests for ask_abt_day. IMPORTANT: be careful with your expected value expression in ask_abt_day's test expressions; you cannot use + between two char* expressions. This is a case where the expected value expression likely needs to be just the hoped-for resulting literal expression, without any operations. ASK ME if you have questions about this or run into problems related to this. Make sure ask_abt_day runs (Run -> Run Project), and its tests pass! You should see: *** Testing ask_abt_day ***
4 Spring CS Homework 7 p. 4 of ask_abt_day after these tests, so that you see the value those call(s) return. Problem 3 After Problem 2's ask_abt_day, type a blank link, and then type the comment: Problem 3 Remember function total_feet from Homework 6, Problem 3? Type in or paste your signature, purpose, examples/tests, named constant definition (for FEET_PER_YARD), function header, and function body for total_feet. FOR FULL CREDIT, make sure that you USE the named constant FEET_PER_YARD appropriately within total_feet's function body. Recall the function from Homework 2, Problem 5 that computes the total number of feet in a given number of yards and feet. Use the design recipe to design a C++ version of this function named total_feet. (total_feet expects a number of yards and a number of feet, and returns the total number of feet overall in both of these combined.) Then, in the main function, AFTER the tests for ask_abt_day, paste in and edit:...so that it says you are testing total_feet, and includes your examples/tests for total_feet. (remember: at least ONE of these tests should have 0 as the number of yards argument, at least ONE of these tests should have a number of yards argument greater than 1, (and each of these tests should have a different value for the number of feet argument).) Make sure total_feet runs (Run -> Run Project), and its tests pass! You should see: *** Testing total_feet *** of total_feet after these tests, so that you see the value those call(s) return. Problem 4 After Problem 3's total_feet, type a blank link, and then type the comment:
5 Spring CS Homework 7 p. 5 Problem 4 Remember function order_cost from Homework 6, Problem 4? Type in or paste your signature, purpose, examples/tests, named constant definitions (for COFFEE_PRICE_PER_LB, SHIP_PRICE_PER_LB, and SHIP_COST_FIXED), function header, and function body for order_cost. FOR FULL CREDIT, make sure that you USE the named constants COFFEE_PRICE_PER_LB, SHIP_PRICE_PER_LB, and SHIP_COST_FIXED appropriately within order_cost's function body. Recall the function from Homework 2, Problem 6 that computes the total price for an order of Tasty-Waking coffee. Use the design recipe to design a C++ version of this function named order_cost. (order_cost expects the number of pounds of coffee in an order, and returns the total price of that order, including shipping) Then, in the main function, AFTER the tests for total_feet, paste in and edit:...so that it says you are testing order_cost, and includes your examples/tests for order_cost. Make sure order_cost runs (Run -> Run Project), and its tests pass! You should see: *** Testing order_cost *** of order_cost after these tests, so that you see the value those call(s) return. Problem 5 After Problem 4's order_cost, type a blank link, and then type the comment: Problem 5 Remember function cels_to_fahr from Homework 6, Problem 5? Type in or paste your signature, purpose, examples/tests, function header, and function body for cels_to_fahr. Recall the function from Homework 3, Problem 2 that computes computes the equivalent Fahrenheit temperature for a given Celsius temperature. Use the design recipe to design a C++ version of this function named cels_to_fahr. (cels_to_fahr expects a temperature given in Celsius, and returns the equivalent Fahrenheit temperature)
6 Spring CS Homework 7 p. 6 Then, in the main function, AFTER the tests for order_cost, paste in and edit:...so that it says you are testing cels_to_fahr, and includes your examples/tests for cels_to_fahr. Make sure cels_to_fahr runs (Run -> Run Project), and its tests pass! You should see: *** Testing cels_to_fahr *** of cels_to_fahr after these tests, so that you see the value those call(s) return. Problem 6 After Problem 5's cels_to_fahr, type a blank link, and then type the comment: Problem 6 Now for a new function! For some more practice using a string class method: Recall, from the Week 8 Lab Exercise, that the C++ string class includes a substring method named substr, that expects a starting position and a length, and returns the string starting at that position and going that many characters in the calling string instance (or until the end of that calling string instance, whichever comes first). And, interestingly, the position of the 1st character in a string is 0! That is, for: const string CHEER = "hip, Hip, HOORAY!";...this is a expression: CHEER.substr(5, 3) == "Hip" Use the design recipe to design a C++ function monogram that expects a first name, middle name, and last name, and returns an appropriate "monogram" for that name (a string combining the initials of that first, middle, and last name). For example, monogram("ava", "Marie", "DuVernay") would return "AMD", and monogram("grace", "Murray", "Hopper") would return "GMH". Remember to include a signature, purpose, function header, examples/tests, and then completed function body for monogram. (HINT: Note that, for this particular function, you should use the string class's substr method, which returns a string, instead of the string class's at method, which returns a char.) Then, in the main function, AFTER the tests for cels_to_fahr, paste in and edit:
7 Spring CS Homework 7 p. 7...so that it says you are testing monogram, and includes your examples/tests for monogram. Make sure monogram runs (Run -> Run Project), and its tests pass! You should see: *** Testing monogram *** of monogram after these tests, so that you see the value those call(s) return. Problem 7 After Problem 6's monogram, type a blank link, and then type the comment: Problem 7 Recall the Week 8, Lecture 2 example function ring_area, that called circ_area in its function body to help do its desired action. For one more new function -- and a chance to call some of the functions you designed in previous problems -- imagine that you wanted a jaunty little function casual_ask that expected a person's first name, middle name, and last name, and returns a string asking about that person's day, but using their initials instead of their name. That is, this should be a expression: casual_ask("ava", "Marie", "DuVernay") == "How's it going, AMD?" (Consider: how could you use a careful combination of monogram and ask_abt_day to get the desired result? What does monogram return? What does ask_abt_day expect?) Use the design recipe to design this C++ function casual_ask. Remember to include a signature, purpose, function header, examples/tests, and then completed function body for casual_ask. FOR FULL CREDIT, make sure that you use monogram and ask_abt_day appropriately within casual_ask's function body. Then, in the main function, AFTER the tests for monogram, paste in and edit:...so that it says you are testing casual_ask, and includes your examples/tests for casual_ask. Make sure casual_ask runs (Run -> Run Project), and its tests pass! You should see: *** Testing casual_ask *** of casual_ask after these tests, so that you see the value those call(s) return.
Spring CS Homework 6 p. 1. CS Homework 6
Spring 2018 - CS 111 - Homework 6 p. 1 Deadline 11:59 pm on Friday, March 9, 2018 Purpose CS 111 - Homework 6 To practice with some C++ basics, including following design recipe steps for designing and
More informationHomework 11 Program Setup (with some IMPORTANT NEW STEPS!)
Spring 2018 - CS 111 - Homework 11 p. 1 Deadline 11:59 pm on Friday, April 27, 2018 Purpose To practice with loops, arrays, and more! How to submit CS 111 - Homework 11 Submit your main.cpp (or it may
More informationCS Fall Homework 11 p. 1. CS Homework 11
CS 111 - Fall 2018 - Homework 11 p. 1 Deadline 11:59 pm on MONDAY, December 3, 2018 Purpose To practice with loops, arrays, and more! How to submit Submit your THREE.cpp FILES: CS 111 - Homework 11 hw11.cpp
More informationSpring CS Homework 12 p. 1. CS Homework 12
Spring 2018 - CS 111 - Homework 12 p. 1 Deadline 11:59 pm on Friday, May 4, 2018 Purpose CS 111 - Homework 12 To practice with sentinel- and question-controlled loops, file input and file output, and writing
More informationCS Homework 2 p. 1. CS Homework 2
CS 111 - Homework 2 p. 1 Deadline 11:59 pm on Friday, February 2, 2018 Purpose CS 111 - Homework 2 To practice defining and using named constants and check-expect expressions, and to practice using the
More informationCS Homework 11 p. 1. CS Homework 11
CS 111 - Homework 11 p. 1 Deadline 11:59 pm on Monday, May 2, 2016 How to submit Each time you would like to submit your work: CS 111 - Homework 11 If your files are not already on nrs-labs, be sure to
More informationSpring CS Homework 3 p. 1. CS Homework 3
Spring 2018 - CS 111 - Homework 3 p. 1 Deadline 11:59 pm on Friday, February 9, 2018 Purpose CS 111 - Homework 3 To try out another testing function, check-within, to get more practice using the design
More informationCS Homework 10 p. 1. CS Homework 10
CS 111 - Homework 10 p. 1 Deadline 11:59 pm on Friday, December 2, 2016 How to submit Each time you would like to submit your work: CS 111 - Homework 10 If your files are not already on nrs-labs, be sure
More informationCS Week 14 Lab Exercise
CS 111 - Week 14 Lab Exercise p.1 Deadline CS 111 - Week 14 Lab Exercise - 2018-11-05 Due by the end of lab on 2018-11-26. (Submit whatever you have by the end of lab, even if incomplete.) How to submit
More informationCS Homework 11 p. 1. CS Homework 11
CS 111 - Homework 11 p. 1 Deadline 11:59 pm on Friday, December 12, 2014 How to submit Each time you would like to submit your work: CS 111 - Homework 11 IF they are not already on nrs-labs, then transfer/save
More informationDeadline. Purpose. How to submit. Important notes. CS Homework 9. CS Homework 9 p :59 pm on Friday, April 7, 2017
CS 111 - Homework 9 p. 1 Deadline 11:59 pm on Friday, April 7, 2017 Purpose CS 111 - Homework 9 To give you an excuse to look at some newly-posted C++ templates that you might find to be useful, and to
More informationCS Homework 10 p. 1. CS Homework 10
CS 131 - Homework 10 p. 1 Deadline: 5:00 pm on Friday, December 3 How to submit: CS 131 - Homework 10 When you are done with the following problems: make sure that your current working directory on nrs-labs
More informationCS Final Exam Review Suggestions - Spring 2014
CS 111 - Final Exam Review Suggestions p. 1 CS 111 - Final Exam Review Suggestions - Spring 2014 last modified: 2014-05-09 before lab You are responsible for material covered in class sessions, lab exercises,
More informationCS Exam 2 Study Suggestions
CS 131 - Fall 2009 p. 1 last modified: 11-10-09 CS 131 - * Remember: anything covered in lecture, in lab, or on a homework, is FAIR GAME. * You are responsible for all of the material covered through Week
More informationCS Final Exam Review Suggestions - Fall 2017
CS 111 - Final Exam Review Suggestions p. 1 CS 111 - Final Exam Review Suggestions - Fall 2017 last modified: 2016-12-09 You are responsible for material covered in class sessions, lab exercises, and homeworks;
More information2.1. Chapter 2: Parts of a C++ Program. Parts of a C++ Program. Introduction to C++ Parts of a C++ Program
Chapter 2: Introduction to C++ 2.1 Parts of a C++ Program Copyright 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 2-1 Parts of a C++ Program Parts of a C++ Program // sample C++ program
More informationLab Session # 1 Introduction to C Language. ALQUDS University Department of Computer Engineering
2013/2014 Programming Fundamentals for Engineers Lab Lab Session # 1 Introduction to C Language ALQUDS University Department of Computer Engineering Objective: Our objective for today s lab session is
More informationSpring CS Homework 2 p. 1. CS Homework 2. To practice with PL/SQL stored procedures and functions, and possibly exception handling.
Spring 2018 - CS 328 - Homework 2 p. 1 Deadline Due by 11:59 pm on Sunday, February 4, 2018. Purpose CS 328 - Homework 2 To practice with PL/SQL stored procedures and functions, and possibly exception
More informationGOALS [HTDP/2e Chapters 1 through 3.5]
Lab 1 GOALS [HTDP/2e Chapters 1 through 3.5] This week's lab will help you to practice: Using Dr.Racket: Interactions vs. Definitions; Stepper; Error messages; Indentation Simple image functions; using
More information! A program is a set of instructions that the. ! It must be translated. ! Variable: portion of memory that stores a value. char
Week 1 Operators, Data Types & I/O Gaddis: Chapters 1, 2, 3 CS 5301 Fall 2016 Jill Seaman Programming A program is a set of instructions that the computer follows to perform a task It must be translated
More informationCS 150 Lab 10 Functions and Random Numbers
CS 150 Lab 10 Functions and Random Numbers The objective of today s lab is to implement functions and random numbers in a simple game. Be sure your output looks exactly like the specified output. Be sure
More informationCS Fall Homework 5 p. 1. CS Homework 5
CS 235 - Fall 2015 - Homework 5 p. 1 Deadline: CS 235 - Homework 5 Due by 11:59 pm on Wednesday, September 30, 2015. How to submit: Submit your files using ~st10/235submit on nrs-projects, with a homework
More informationCS 150 Lab 3 Arithmetic and the Debugger. Lab 3.0 We are going to begin using the Visual Studio 2017 debugger to aid with debugging programs.
CS 150 Lab 3 Arithmetic and the Debugger The main objective of today s lab is to use some basic mathematics to solve a few real world problems. In doing so, you are to begin getting accustomed to using
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday
More informationPart I: Written Problems
CSci 4223 Homework 1 DUE: Friday, February 1, 11:59 pm Instructions. Your task is to answer three written problems, and to write eleven SML functions related to calendar dates, as well as test cases for
More informationCS 051 Homework Laboratory #2
CS 051 Homework Laboratory #2 Dirty Laundry Objective: To gain experience using conditionals. The Scenario. One thing many students have to figure out for the first time when they come to college is how
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 informationReviewing all Topics this term
Today in CS161 Prepare for the Final Reviewing all Topics this term Variables If Statements Loops (do while, while, for) Functions (pass by value, pass by reference) Arrays (specifically arrays of characters)
More informationWeek 8: Operator overloading
Due to various disruptions, we did not get through all the material in the slides below. CS319: Scientific Computing (with C++) Week 8: Operator overloading 1 The copy constructor 2 Operator Overloading
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 informationInitial Coding Guidelines
Initial Coding Guidelines ITK 168 (Lim) This handout specifies coding guidelines for programs in ITK 168. You are expected to follow these guidelines precisely for all lecture programs, and for lab programs.
More informationFunctions. Lab 4. Introduction: A function : is a collection of statements that are grouped together to perform an operation.
Lab 4 Functions Introduction: A function : is a collection of statements that are grouped together to perform an operation. The following is its format: type name ( parameter1, parameter2,...) { statements
More informationCIS 130 Exam #2 Review Suggestions
CIS 130 - Exam #2 Review Suggestions p. 1 * last modified: 11-11-05, 12:32 am CIS 130 Exam #2 Review Suggestions * remember: YOU ARE RESPONSIBLE for course reading, lectures/labs, and especially anything
More informationCS 170 Java Programming 1. Week 5: Procedures and Functions
CS 170 Java Programming 1 Week 5: Procedures and Functions What s the Plan? Topic 1: More on graphical objects Creating your own custom Turtle types Introducing media, pictures and sounds Topic 2: Decomposition:
More informationSan José State University Department of Computer Science CS151, Section 04 Object Oriented Design Spring 2018
San José State University Department of Computer Science CS151, Section 04 Object Oriented Design Spring 2018 Course and Contact Information Instructor: Vidya Rangasayee Office Location: MH 213 Telephone:
More informationPart I: Written Problems
CSci 4223 Homework 3 DUE: Friday, March 22, 11:59 pm Instructions. Your task is to answer 2 written problems, and to write 16 SML functions (excluding local helper functions) as well as test cases for
More informationLab 2.1: Fixing a C++ program
CS 150 Lab 2 Introduction to Compiler Errors, Variables, Assignments and Output The purpose of today s lab session is to allow you to gain experience using primitive data types, constants, assignment statements
More informationCMSC 201 Spring 2018 Project 2 Battleship
CMSC 201 Spring 2018 Project 2 Battleship Assignment: Project 2 Battleship Due Date: Design Document: Friday, April 13th, 2018 by 8:59:59 PM Project: Friday, April 20th, 2018 by 8:59:59 PM Value: 80 points
More informationCS Homework 1 p. 1. CS Homework 1
CS 335 - Homework 1 p. 1 Deadline: CS 335 - Homework 1 IF turned in on-paper: 11:59 am on Friday, February 4 IF submitted electronically: 11:59 pm on Friday, February 4 How to submit: Because of the nature
More informationHomework #2: Introduction to Images Due 4 th Week of Spring 2018 at the start of lab CSE 7, Spring 2018
Homework #2: Introduction to Images Due 4 th Week of Spring 2018 at the start of lab CSE 7, Spring 2018 Before beginning this homework, create a new Notepad++ file in your cs7sxx home directory on ieng6
More informationStyle and Submission Guide
Style and Submission Guide 1 Assignment Style Guidelines The code you submit for assignments, as with all code you write, can be made more readable and useful by paying attention to style. This includes
More information6.S189 Homework 1. What to turn in. Exercise 1.1 Installing Python. Exercise 1.2 Hello, world!
6.S189 Homework 1 http://web.mit.edu/6.189/www/materials.html What to turn in Do the warm-up problems for Days 1 & 2 on the online tutor. Complete the problems below on your computer and get a checkoff
More informationJoin the course group CS230-S18! Post questions, answer them if you know the answer!
http://cs.wellesley.edu/~cs230 Spring 2018 Join the course group CS230-S18! Post questions, answer them if you know the answer! Assignment 1 is available and due at 11:59pm Wednesday February 7th See schedule
More informationLab 3. A Multi-Message Reader
Lab 3 A Multi-Message Email Reader Due: Wed. 2/21 at 11PM (for Mon. aft. lab), Thurs. 2/22 at 5PM (for Mon. evening), or Thurs. 2/22 at 11 (for Tues. aft.) The goal in this week s lab is to exercise your
More informationLab # 2. For today s lab:
1 ITI 1120 Lab # 2 Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot 1 For today s lab: Go the course webpage Follow the links to the lab notes for Lab 2. Save all the java programs you
More informationLab 4 CSE 7, Spring 2018 This lab is an introduction to using logical and comparison operators in Matlab.
LEARNING OBJECTIVES: Lab 4 CSE 7, Spring 2018 This lab is an introduction to using logical and comparison operators in Matlab 1 Use comparison operators (< > = == ~=) between two scalar values to create
More informationChapter 11-D Homework ScalaFX & Eclipse Individual Assignment 10 Points
If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize and present your own logical solution to the
More informationCS 117 Programming II, Spring 2018 Dr. Ghriga. Midterm Exam Estimated Time: 2 hours. March 21, DUE DATE: March 28, 2018 at 12:00 PM
CS 117 Programming II, Spring 2018 Dr. Ghriga Midterm Exam Estimated Time: 2 hours March 21, 2018 DUE DATE: March 28, 2018 at 12:00 PM INSTRUCTIONS: Do all exercises for a total of 100 points. You are
More informationOOP- 5 Stacks Individual Assignment 35 Points
OOP-5-Stacks-HW.docx CSCI 2320 Initials P a g e 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize
More informationOutline. Review of Last Week II. Review of Last Week. Computer Memory. Review Variables and Memory. February 7, Data Types
Data Types Declarations and Initializations Larry Caretto Computer Science 16 Computing in Engineering and Science February 7, 25 Outline Review last week Meaning of data types Integer data types have
More informationSoftware and Programming 1
Software and Programming 1 Lab 1: Introduction, HelloWorld Program and use of the Debugger 17 January 2019 SP1-Lab1-2018-19.pptx Tobi Brodie (tobi@dcs.bbk.ac.uk) 1 Module Information Lectures: Afternoon
More informationCS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG
CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming
More informationMore on Arrays CS 16: Solving Problems with Computers I Lecture #13
More on Arrays CS 16: Solving Problems with Computers I Lecture #13 Ziad Matni Dept. of Computer Science, UCSB Announcements Homework #12 due today No homework assigned today!! Lab #7 is due on Monday,
More informationWeek 2: Data and Output
CS 170 Java Programming 1 Week 2: Data and Output Learning to speak Java Types, Values and Variables Output Objects and Methods What s the Plan? Topic I: A little review IPO, hardware, software and Java
More informationPattern Maker Lab. 1 Preliminaries. 1.1 Writing a Python program
Pattern Maker Lab Lab Goals: In this lab, you will write a Python program to generate different patterns using ASCII characters. In particular, you will get practice with the following: 1. Printing strings
More informationIntroduction to Programming
Introduction to Programming Python Lab 9: Functions PythonLab9 lecture slides.ppt 27 November 2018 Ping Brennan (p.brennan@bbk.ac.uk) 1 Getting Started Create a new folder in your disk space with the name
More informationLab 9 - Classes and Objects Directions
Lab 9 - Classes and Objects Directions The labs are marked based on attendance and effort. It is your responsibility to ensure the TA records your progress by the end of the lab. Do each step of the lab
More informationMore on Strings in C++ Arrays CS 16: Solving Problems with Computers I Lecture #11
More on Strings in C++ Arrays CS 16: Solving Problems with Computers I Lecture #11 Ziad Matni Dept. of Computer Science, UCSB Announcements Heads- Up: Midterm #2 is NEXT Tuesday (11/14) Covers everything
More informationIntroduction to Programming for Biology Research
Introduction to Programming for Biology Research Introduction to MATLAB: part I MATLAB Basics - The interface - Variables/arrays/matrices - Conditional statements - Loops (for and while) MATLAB: The
More informationGrade 3. EDM Version 4. Everyday Math: Unit. Measurement and Geometry. Study Guide
EDM Version 4 Grade 3 Everyday Math: Unit Measurement and Geometry. Study Guide Thank you! Catherine Wiist @ Abc123is4me http://www.teacherspayteachers.com/store/abc123is4me (All new products are discounted
More informationOOP- 4 Templates & Memory Management Print Only Pages 1-5 Individual Assignment Answers To Questions 10 Points - Program 15 Points
OOP-4-Templates-Memory-Management-HW.docx CSCI 2320 Initials P a g e 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax,
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 informationFaculty of Engineering Computer Engineering Department Islamic University of Gaza C++ Programming Language Lab # 6 Functions
Faculty of Engineering Computer Engineering Department Islamic University of Gaza 2013 C++ Programming Language Lab # 6 Functions C++ Programming Language Lab # 6 Functions Objective: To be familiar with
More informationHomework 8: Matrices Due: 11:59 PM, Oct 30, 2018
CS17 Integrated Introduction to Computer Science Klein Homework 8: Matrices Due: 11:59 PM, Oct 30, 2018 Contents 1 Reverse (Practice) 4 2 Main Diagonal (Practice) 5 3 Horizontal Flip 6 4 Vertical Flip
More informationCS 142 Style Guide Grading and Details
CS 142 Style Guide Grading and Details In the English language, there are many different ways to convey a message or idea: some ways are acceptable, whereas others are not. Similarly, there are acceptable
More informationCMSC 201 Spring 2019 Lab 06 Lists
CMSC 201 Spring 2019 Lab 06 Lists Assignment: Lab 06 Lists Due Date: Thursday, March 7th by 11:59:59 PM Value: 10 points This week s lab will put into practice the concepts you learned about lists: indexing,
More informationProgramming Assignment 8 ( 100 Points )
Programming Assignment 8 ( 100 Points ) Due: 11:59pm Wednesday, November 22 Start early Start often! README ( 10 points ) You are required to provide a text file named README, NOT Readme.txt, README.pdf,
More informationCMSC 201 Fall 2016 Homework 6 Functions
CMSC 201 Fall 2016 Homework 6 Functions Assignment: Homework 6 Functions Due Date: Wednesday, October 26th, 2016 by 8:59:59 PM Value: 40 points Collaboration: For Homework 6, collaboration is not allowed
More informationHomework 3: Relational Database Design Theory (100 points)
CS 122A: Introduction to Data Management Spring 2018 Homework 3: Relational Database Design Theory (100 points) Due Date: Wed, Apr 25 (5:00 PM) Submission All HW assignments should be turned in with a
More informationCarleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter 2012
Carleton University Department of Systems and Computer Engineering SYSC 2006 - Foundations of Imperative Programming - Winter 2012 Lab 2 - C Functions Objective The objective of this lab is to write some
More informationChapter 2. The Midpoint Formula:
Chapter 2 The Midpoint Formula: Sometimes you need to find the point that is exactly between two other points. For instance, you might need to find a line that bisects (divides into equal halves) a given
More informationClaremont McKenna College Computer Science
Claremont McKenna College Computer Science CS 51 Handout 4: Problem Set 4 February 10, 2011 This problem set is due 11:50pm on Wednesday, February 16. As usual, you may hand in yours until I make my solutions
More informationIntroduction to the C++ Programming Language
LESSON SET 2 Introduction to the C++ Programming Language OBJECTIVES FOR STUDENT Lesson 2A: 1. To learn the basic components of a C++ program 2. To gain a basic knowledge of how memory is used in programming
More informationCS Problem Solving and Object-Oriented Programming
CS 101 - Problem Solving and Object-Oriented Programming Lab 5 - Draw a Penguin Due: October 28/29 Pre-lab Preparation Before coming to lab, you are expected to have: Read Bruce chapters 1-3 Introduction
More informationOOP-8-DLList-1-HW.docx CSCI 2320 Initials Page 1
OOP-8-DLList-1-HW.docx CSCI 2320 Initials Page 1 If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize
More informationAssignment 2: Temperature Class
Assigned: September 23, 2016 Due: October 03, 2016, 11:59:59pm Assignment 2: Temperature Class Purpose The purpose of this project is to provide you more practice with implementing classes. Here you will
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 informationBIS1523 Homework Assignments 2.1
Homework Assignments 2.1 Folder: hw01 Assignment #1, Bio Overview: Create a web page with some information (real or made up) about yourself. Your web page should include the following: A header, with your
More informationPhysics 2660: Fundamentals of Scientific Computing. Lecture 3 Instructor: Prof. Chris Neu
Physics 2660: Fundamentals of Scientific Computing Lecture 3 Instructor: Prof. Chris Neu (chris.neu@virginia.edu) Announcements Weekly readings will be assigned and available through the class wiki home
More informationProgramming Standards: You must conform to good programming/documentation standards. Some specifics:
CS3114 (Spring 2011) PROGRAMMING ASSIGNMENT #3 Due Thursday, April 7 @ 11:00 PM for 100 points Early bonus date: Wednesday, April 6 @ 11:00 PM for a 10 point bonus Initial Schedule due Thursday, March
More informationLECTURE 02 INTRODUCTION TO C++
PowerPoint Slides adapted from *Starting Out with C++: From Control Structures through Objects, 7/E* by *Tony Gaddis* Copyright 2012 Pearson Education Inc. COMPUTER PROGRAMMING LECTURE 02 INTRODUCTION
More informationPlease make sure that when you submit your assignment, you submit a single HW6.py file that contains your entire assignment.
HW6: CS 110X C 2014 Note: This homework (and all remaining homework assignments) is a partner homework and must be completed by each partner pair. When you complete this assignment, you must not share
More informationFebruary 8 th February 12 th. Unit 6: Polynomials & Introduction to Quadratics
Algebra I February 8 th February 12 th Unit 6: Polynomials & Introduction to Quadratics Jump Start 1) Use the elimination method to solve the system of equations below. x + y = 2 3x + y = 8 2) Solve: 13
More informationPage 1 of 7. public class EmployeeAryAppletEx extends JApplet
CS 209 Spring, 2006 Lab 9: Applets Instructor: J.G. Neal Objectives: To gain experience with: 1. Programming Java applets and the HTML page within which an applet is embedded. 2. The passing of parameters
More informationCMSC 201 Spring 2017 Lab 01 Hello World
CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the
More informationSUBSTITUTE EMPLOYEE WEB TIME INSTRUCTIONS
SUBSTITUTE EMPLOYEE WEB TIME INSTRUCTIONS These instructions will show you how to record your time into the Frontline (formerly known as Aesop) system for payroll purposes. The following are critical elements
More informationUsing Eclipse and Karel
Alisha Adam and Rohit Talreja CS 106A Summer 2016 Using Eclipse and Karel Based on a similar handout written by Eric Roberts, Mehran Sahami, Keith Schwarz, and Marty Stepp If you have not already installed
More informationGetting started with C++ (Part 2)
Getting started with C++ (Part 2) CS427: Elements of Software Engineering Lecture 2.2 11am, 16 Jan 2012 CS427 Getting started with C++ (Part 2) 1/22 Outline 1 Recall from last week... 2 Recall: Output
More informationcoe318 Lab 1 Introduction to Netbeans and Java
coe318 Lab 1 Week of September 12, 2016 Objectives Lean how to use the Netbeans Integrated Development Environment (IDE). Learn how to generate and write formatted API documentation. Add a constructor,
More informationMidterms Save the Dates!
University of British Columbia CPSC 111, Intro to Computation Alan J. Hu (Using the Scanner and String Classes) Anatomy of a Java Program Readings This Week s Reading: Ch 3.1-3.8 (Major conceptual jump
More informationCom S 227 Spring 2018 Assignment points Due Date: Thursday, September 27, 11:59 pm (midnight) "Late" deadline: Friday, September 28, 11:59 pm
Com S 227 Spring 2018 Assignment 2 200 points Due Date: Thursday, September 27, 11:59 pm (midnight) "Late" deadline: Friday, September 28, 11:59 pm (Remember that Exam 1 is MONDAY, October 1.) General
More informationWelcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website:
Welcome to Lab! Feel free to get started until we start talking! The lab document is located on the course website: https://users.wpi.edu/~sjarvis/ece2049_smj/ We will come around checking your pre-labs
More informationCpSc 111 Lab 3 Integer Variables, Mathematical Operations, & Redirection
CpSc 111 Lab 3 Integer Variables, Mathematical Operations, & Redirection Overview By the end of the lab, you will be able to: declare variables perform basic arithmetic operations on integer variables
More informationSelf assessment due: Monday 10/29/2018 at 11:59pm (submit via Gradescope)
CS 188 Fall 2018 Introduction to Artificial Intelligence Written HW 7 Due: Monday 10/22/2018 at 11:59pm (submit via Gradescope). Leave self assessment boxes blank for this due date. Self assessment due:
More informationChapter 11-B Homework ScalaFX & Eclipse Individual Assignment 25 Points
If this lab is an Individual assignment, you must do all coded programs on your own. You may ask others for help on the language syntax, but you must organize and present your own logical solution to the
More informationHW3: CS 110X C Domain Information. Final Version: 1/29/2014
HW3: CS 110X C 2014 Note: This homework (and all remaining homework assignments) is a partner homework and must be completed by each partner pair. When you complete this assignment, you must not share
More informationFor this week only, the TAs will be at the ACCEL facility, instead of their normal office hours.
BEE 3500 Homework Assignment 5 Notes: For this assignment, you will use the computational software COMSOL Multiphysics 5.3, available in Academic Computing Center Engineering Library (ACCEL) at the Carpenter
More informationCarleton University Department of Systems and Computer Engineering SYSC Foundations of Imperative Programming - Winter 2012
Carleton University Department of Systems and Computer Engineering SYSC 2006 - Foundations of Imperative Programming - Winter 2012 Lab 6 - Prototyping a List Collection, Second Iteration Objective To continue
More informationCS 170 Java Programming 1. Week 10: Loops and Arrays
CS 170 Java Programming 1 Week 10: Loops and Arrays What s the Plan? Topic 1: A Little Review Use a counted loop to create graphical objects Write programs that use events and animation Topic 2: Advanced
More informationCMSC 201 Spring 2016 Homework 7 Strings and File I/O
CMSC 201 Spring 2016 Homework 7 Strings and File I/O Assignment: Homework 7 Strings and File I/O Due Date: Monday, April 4th, 2016 by 8:59:59 PM Value: 40 points Homework 7 is designed to help you practice
More information