CS122 – Quiz 1 Winter, 2013 Quiz Hints. Quiz 1 Hints Question 1 – Understanding procs  First, we did not fully explain the structure of the Maple proc,

Slides:



Advertisements
Similar presentations
How to Import an Excel File Using the SAS Import Wizard SAS 9 for Windows.
Advertisements

CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2010.
Room Assignments Room Assignments is a companion Excel spreadsheet to the Master Schedule Board tool and is dynamically linked to it. For this tool to.
© 2010 Delmar, Cengage Learning Chapter 9: Using ActionScript.
Intermediate Level Course. Text Format The text styles, bold, italics, underlining, superscript and subscript, can be easily added to selected text. Text.
CIS101 Introduction to Computing Week 12. Agenda Your questions Solutions to practice text Final HTML/JavaScript Project Copy and paste assignment JavaScript:
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 14 – Student Grades Application: Introducing.
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 8 - Interest Calculator Application: Introducing.
Programming – Touch Sensors Intro to Robotics. The Limit Switch When designing robotic arms there is always the chance the arm will move too far up or.
CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2010.
Lab Assignment 7 | Web Forms and Manipulating Strings Interactive Features Added In this assignment you will continue the design and implementation of.
1 Shawlands Academy Higher Computing Software Development Unit.
CS 123 Computational Lab IIl Spring 2008 Department of Computer Science Drexel University Copyright by the authors. Permission is given for students and.
CHAPTER 3 Working with Templates and Styles. CHAPTER OBJECTIVES  Create an Expression Web site from a template  Rename a page  Rename a folder  Add.
Peer Edit Day Today’s Quiz Grade: 50 points= two peer edits of a student draft 50 points= complete rough draft * MLA format of all parts * minimum of 4-5.
CS 122 Engineering Computation Lab Lab 2 Dan De Sousa and Tim Cheeseman Department of Computer Science Drexel University April 2009 ©By the author. All.
1 Data List Spreadsheets or simple databases - a different use of Spreadsheets Bent Thomsen.
Lecture 21 May 2, Exam 2 Post-Mortem Average grade was 69.3 –Median was 72, which means there were some very low scores that pulled down the average.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 5 – Dental Payment Application: Introducing.
© 2001 Business & Information Systems 2/e1 Chapter 8 Personal Productivity and Problem Solving.
Lead Black Slide Powered by DeSiaMore1. 2 Chapter 8 Personal Productivity and Problem Solving.
The Initial Problem Chapter 1, Section 1.6 #71 x = 793 x needs to be isolated on the left. Therefore, 341 should be subtracted from both sides: x.
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2009 ©By the author. All rights reserved. Permission.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Spring 2011.
The Great Art Heist Forensics Fall 2015.
Bilgisayar Mühendisliği Bölümü CENG 102 – Computer Programming Melek OKTAY Syllabus Administrative Information.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Spring 2011.
CSEB114: PRINCIPLE OF PROGRAMMING Course Introduction.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2010.
CS122 Instructor Assignments Winter, 2010 Term. Overview Some changes in assignments due to schedule considerations Some new initiatives / revised strategies.
ME 142 Engineering Computation I Exam 2 Review VBA.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2012.
The Software Development Process
CS 123 Lab 4 Instructor: Mark Boady Course Designer: Professor Bruce Char Department of Computer Science Drexel University Spring 2013.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Spring 2011.
Click on your group to see your activity for today
CS 121 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Fall 2010 ©By the author. All rights reserved. Permission.
Chapter 1: Overview of SAS System Basic Concepts of SAS System.
CS123 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Spring 2012.
04/02/ Procedures Top-down approach / Stepwise Refinement & Sub Procedures.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2013.
Chapter 4: More Object Concepts. Objectives Understand blocks and scope Overload a method Avoid ambiguity Create and call constructors with parameters.
1 Project 7: Looping. Project 7 For this project you will produce two Java programs. The requirements for each program will be described separately on.
CS122 – Quiz 2 Winter, 2013 Quiz Hints. Quiz 2 Hints Question 1 – working with the “if” statement  First, we did not fully explain the structure of the.
CS122 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS122 Engineering Computation Lab Lab 3 Bruce Char Department of Computer Science Drexel University Winter 2010.
CS123 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Spring 2013.
1 Functions Function Prototype float sqrt(float x); Function name, type, parameter and parameter type Function Definition float sqrt(float x) { // compute.
Building Programs from Existing Information Solutions for programs often can be developed from previously solved problems. Data requirements and solution.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2011.
CS122 Engineering Computation Lab Lab 1 Bruce Char Department of Computer Science Drexel University Winter 2012.
CS 122 Engineering Computation Lab Lab1 Bruce Char Department of Computer Science Drexel University Summer 2009 ©By the author. All rights reserved. Permission.
1 ENGI 2420 Structured Programming (Lab Tutorial 2) Memorial University of Newfoundland.
CS 122/CS123 Engineering Computation Lab Lab 2 Bruce Char Department of Computer Science Drexel University Summer 2011 ©By the author. All rights reserved.
Alice and Java Unit 7 1. Day 1  Objective: Gain an introduction to Java and Eclipse  Essential skill: DM-1: Use technology to advance critical thinking.
CS122 Engineering Computation Lab Lab 4 Bruce Char Department of Computer Science Drexel University Winter 2013.
Solving Systems of Equations using Substitution
CS122 Engineering Computation Lab Lab 4
CS123 Engineering Computation Lab Lab 4
Topic: Functions – Part 2
CS122 Engineering Computation Lab Lab 3
Remark Exam-Grading Instructions
Personal Fitness Welcome to Mr. Dallaire’s Personal Fitness course.
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Class 4: Repetition Pretest Posttest Counting Flowchart these!
3Q08 Update Phase 4: Data Entry
Review of Previous Lesson
Review of Previous Lesson
Presentation transcript:

CS122 – Quiz 1 Winter, 2013 Quiz Hints

Quiz 1 Hints Question 1 – Understanding procs  First, we did not fully explain the structure of the Maple proc, but rather supplied the proc within the work sheets in the unzipped folder in Lab 1.  Some key features of the proc include: Header – 1st statement  procname := proc(list of input parameters) Solve12 := proc(a,b,c,d) local – list of variables used in proc, but not passed in as an input parameter  local answer, part1, part2; To execute a proc (open a code edit region and then copy proc from quiz, adding the proc call after the end proc: statement) :  procname(parameter list) Solve12(10000, 8000, 7000, 9000);

Quiz 1 Hints Question 2 – while loop with steps  The easiest way to solve this problem is to copy the code into a code edit region, execute the proc and then count the number of *'s produced. Question 3 – drive in a square (using nested “while” loops)  Review the Lab 1 Tutorial # 4, which creates a square using nested “while” loops and then fill in the blanks.

Quiz 1 Hints Questions 4 and 5 – Using the Car Simulator – 1st, some general comments pertaining to both questions It is important to remember from lab 1 that both the.mw work sheets and the 2 Car Simulator library files must reside in the same folder. That is why we unzipped the file on the course web site and created the folder that contained all necessary files In Maple, we always opened our work sheets for all problems from that folder

Quiz 1 Hints Questions 4 and 5 – Using the Car Simulator – 2nd, the 11 step process described in questions 4 and 5 results in your new file (for the question 4 or 5 solution) residing in the folder along with the 2 library files. – It is critical that you understand and can replicate this process because 2 of the 4 questions on the C portion of your proficiency exam will come from this type of example from either quiz 1 or 2. – Please visit the CLC (room 147 UC) with any questions regarding this procedure

Quiz 1 Hints Questions 4 and 5 – other tips and hints – For either question, it is possible that the car is NOT originally facing the proper direction. If this is the case, you must start your solution with an appropriate turn Perhaps turn(Pi); → a 180 degree turn – Note that each question contains 2 sets of code for creating the grid. Each will set up a grid with different spacing between barriers, turns and targets, so you cannot count and code the number of blocks to move for a specific layout. “While” loops are necessary to determine when you are at the target, gap, etc. If both sets of code work, your solution has been correctly coded.

Quiz 1 Hints Questions 4 and 5 – other tips and hints – Finally, the easiest way to copy and paste the properly formatted proc code into the quiz solution box is to highlight and copy the blue code under the code edit region (in the execution trace) that is produced when the proc is executed. This will ensure that the appropriate syntax is captured. – The solutions themselves consist merely of the correct ordering of moves, turns and isTouching functions.