PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 1
|
|
- Kellie Boyd
- 5 years ago
- Views:
Transcription
1 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 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 and present your own logical solution to the problem. No lab is complete until the student submits the signed pledge form associated with that lab. I realize that no coded programs will be graded until I turn in the sign & pledge form associated with that program; any late penalties will continue to compound until the pledge form is submitted. If this lab is a team assignment, both team members may share logic as they program side by side on their own computers. Each person must type all of his/her own code as part of the learning process. Team assignments are never to be You do this portion and I ll do that portion or You do this lab and I ll do the next lab. Some of the lab assignments will have short answer questions. These short answer questions will be spot checked and graded for completion, but not checked for accuracy. Once these labs are graded and returned, I encourage you to compare answers with another class member who has also had the lab graded and returned. I/We realize that the penalty for turning in work that is not my own, or assisting others in doing so, can range from an "F" in the class to dismissal from Trinity University. I realize that it is a violation of academic integrity to share any portion of this lab with any students (outside my 1320 team)! Print Name Time Required =. Hrs. Signature _ (pledged) Print Name Time Required =. Hrs. Signature _ (pledged) Print Name Time Required =. Hrs. Signature _ (pledged) Initial/Pledge} I have completed Loop 1 Square; it works correctly! Initial/Pledge} I have completed Loop 2 Square; it works correctly! Initial/Pledge} I have completed Loop 3 Square; it works correctly! Initial/Pledge} I have completed Loop 4 Square; it works correctly! Initial/Pledge} I have completed Loop 5 Square; it works correctly! Initial/Pledge} I have completed Loop 6 Square; it works correctly! Initial/Pledge} I have completed Loop 7 Square; it works correctly! Initial/Pledge} I have completed Loop 8 Square; it works correctly! Initial/Pledge} I have completed Loop 9 Square; it works correctly! Initial/Pledge} I have completed Loop 10 Square; it works correctly! Initial/Pledge} I have completed Loop 11 Square; it works correctly! Initial/Pledge} I have completed Loop 12 Square; it works correctly! Initial/Pledge} I have completed Loop 13 Square; it works correctly! Initial/Pledge} I have completed Loop 14 Square; it works correctly! Initial/Pledge} I have completed EXTRA CREDIT (1 Point) Loop 15 Square; it works correctly!
2 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 2 Chapter 4-B Homework Loops Individual/Team Assignment Questions 8 Points Script 28 Points 5/5 Extra Credit Short Answer Questions Electronic Solutions Of Short Answer Questions Will Not Be Accepted. Print A Copy Of Short Answer Question & Write Answers On Printed Copy 1] Write the line of scala code to create a string variable, called Name; initialize it with Dr. Tom Hicks 2] Write the line of scala code to display the number of characters currently in string Name in the following format: # characters in Name = 13 3] Write the line of scala code to fill an integer variable, called StrLen, and fill it with the number of characters currently in string Name 4] Write the line of scala code to display the the string of characters currently in string Name in capital form using this format: Name = DR. TOM HICKS 5] Write the line of scala code to fill a string variable, called UpperName, and fill it with the number of characters currently in string Name in all capital form. 6] Write the line of scala code to display the the string of characters currently in string Name in non-capital form using this format: Name = dr. tom hicks 7] Write the line of scala code to fill a string variable, called LowerName, and fill it with the number of characters currently in string Name in all non-cap form. 8] Write the line of scala code to display the first character of the string currently in Name in the following format: D 9] Write the line of scala code to display the first three characters of the string currently in Name in the following format: Dr. 10] Write the line of scala code to display the last character of the string currently in Name in the following format: s 11] Write the line of scala code to display the fifth character of the string currently in Name in the following format: T 12] Write the line of scala code to display the sixth character of the string currently in Name in the following format: o 13] Write the line of scala code to create a integer variable, called No; initialize it with 127
3 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 3 14] Write the line of scala short-cut numeric assignment which would be equivalent to No = No ] Write the line of scala short-cut numeric assignment which would be equivalent to No = No ] Write the line of scala short-cut numeric assignment which would be equivalent to No = No ] Write the line of scala short-cut numeric assignment which would be equivalent to No = No ] Write the line of scala short-cut numeric assignment which would be equivalent to No = No * 2 19] Write the line of scala short-cut numeric assignment which would be equivalent to No = No * -1 20] Write the line of scala short-cut numeric assignment which would be equivalent to No = No / 2 21] Write the line of scala short-cut numeric assignment which would be equivalent to No = No /14 22] Write the line of scala short-cut numeric assignment which would be equivalent to No = No % 5 23] According to the slides, the While Loop is a a) Pre-test Loop b) Post-test Loop c) Fixed Repetition Loop 24] According to the slides, the For Loop is a a) Pre-test Loop b) Post-test Loop c) Fixed Repetition Loop 25] According to the slides, the Do While Loop is a a) Pre-test Loop b) Post-test Loop c) Fixed Repetition Loop 26] According to the slides, we should generally use a While Loop when a) we know exactly how many times we wish to do something b) we don t know how many times we wish to do something but we want to do it at least once c) we don t know how many times we wish to do something and we are not sure we want to do it even once 27] According to the slides, we should generally use a For Loop when a) we know exactly how many times we wish to do something b) we don t know how many times we wish to do something but we want to do it at least once c) we don t know how many times we wish to do something and we are not sure we want to do it even once 28] According to the slides, we should generally use a Do While Loop when a) we know exactly how many times we wish to do something b) we don t know how many times we wish to do something but we want to do it at least once c) we don t know how many times we wish to do something and we are not sure we want to do it even once 29-55] Assume that the commands below are executed in the Scala interpreter. Record only the output from the print statements (if any) in the space to the right. 29] Count = 1 while (Count <= 8) Count = Count + 1 }
4 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 4 30] Count = 1 while (Count <= 8) Count += 2 } 31] Count = 1 while (Count <= 15) print ((Count+1) + " ") Count += 3 } 32] Count = 17 while (Count >= 2) if (Count % 3 == 0) Count = Count - Count % 3-1 else Count = Count - 2 } 33] println( 'A'.toInt ) 34] println( 'B'.toInt ) 35] println( 'a'.toint ) 36] println( ' '.toint ) 37] println( 65.toChar ) 38] println( 66.toChar ) 39] println( 97.toChar ) 40] println("*" + 32.toChar + "*" ) 41] Count = 1 while (Count <= 8 ) var Ch = (Count + 64).toChar print (Ch) Count = Count + 1 } 42] Count = 65 while (Count <= 80 )
5 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 5 print (Count.toChar+ " ") Count = Count + 4 } 43] Count = 7 do Count = Count + 4 } while (Count <= 21) 44] Count = 10 do Count -= 1 } while (Count >= 1) 45] Count = 10 do Count += 1 Count -= 4 } while (Count >= 1) 46] for (Count <- 1 until 6) 47] for (Count <- 1 to 6) 48] for (Count <- 6 to 1 by -1) 49] for (Count <- 6 to 1 by -2) 50] for (Count <- 7 to -9 by -3) } 51] var Country = "United States" println( Country.substring(0,1) )
6 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 6 52] var Country = "United States" println( Country.substring(1,3) ) 53] var Country = "United States" println( Country.substring (7, 13) ) 54] var Phrase = "To Err Is Human, To Forgive Devine" for (Count <- 0 until Phrase.length) print (Phrase.substring(Count, Count+1)) } 55] var Phrase = "To Err Is Human, To Forgive Devine" for (Count <- 0 until Phrase.length by 7) print (Phrase.substring(Count, Count+1) + " ") } 56] printf ("*%d*",1540) 57] printf ("*%6d*",1540) 58] printf ("*%2d*",1540) 59] printf ("*%4d-%4d*",1540,32) 60] printf("*%d + %d = %d*", 4, 3, 4+3) 61] printf ("*%2d*",123456) 62] printf ("*%f*", ) _* 1_ 63] printf ("*%9.4f*", ) 64] printf ("*%9.2f*", ) 65] printf ("*%3.2f*", )
7 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 7 66] printf ("*%.2f*", ) 67] var st = "TEXAS" printf(st(1) + "-" + st(3)) 68] var st = "TEXAS" printf(st(0) + "-" + st(2) + "-" + st(4) ) Script TomH-4B.scala 28 Points} 1] Write a script called TomH-4B.scala Use your First Name and the initial of your Last Name. Paste the following block of code (Green) into your script. 2] Complete Loops Loop 15 is extra credit. Extra Credit (5/5) only applicable if turned in on time. 3] At the end of this assignment sheet, you will see the output that you should get. Make sure that yours matches the example output. 4] Once you have all of the problems completed correctly, print & attach your script. 5] Once you have all of the problems completed correctly, print & attach your script output. scala TomH-.scala > TomH-4B-1.txt //==========================================================================// //==??????????-HW-4B-Loops (28 Points) ==// //==========================================================================// //== ==// //== Problem: Practice writing loops which produce the desired output. ==// //== ==// //== Written By:???????????????? Date:??/??/???? ==// //==========================================================================// //** WHILE LOOP PRACTICE ** //** Write The Scala Code For The Loops Below ** println("== Loop 1 ==") println("== While loop --> display first 20 numbers ==") println("== --> } Blank space between ==") println("== Loop 2 ==") println("== While loop --> display first 8 numbers ==") println("== --> 12, 16, 20, 24...} one to a line ==")
8 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e println("== Loop 3 ==") println("== While loop --> display first 9 numbers ==") println("== --> 96, 92, 88, 84,...} one to a line ==") println("== Loop 4 ==") println("== While loop --> display first 30 numbers ==") println("== --> 47, 42, 37,...} eight to a line ==") println("== --> in a 5 character field ==") //** DO WHILE LOOP PRACTICE ** println("== Loop 5 ==") println("== Do While loop --> display first 20 numbers ==") println("== --> } Blank space between ==")
9 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 9 println("== Loop 6 ==") println("== Do While loop --> display first 8 numbers ==") println("== --> 12, 16, 20, 24...} one to a line ==") println("== Loop 7 ==") println("== Do While loop --> display first 9 numbers ==") println("== --> 96, 92, 88, 84,...} one to a line ==") println("== Loop 8 ==") println("== Do While loop --> display first 30 numbers ==") println("== --> 47, 42, 37,...} eight to a line ==") println("== --> in a 5 character field ==") //** FOR LOOP PRACTICE ** println("== Loop 9 ==")
10 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 10 println("== For Loop --> display first 20 numbers ==") println("== --> } Blank space between ==") println("== Loop 10 ==") println("== For Loop --> display first 8 numbers ==") println("== --> 12, 16, 20, 24...} one to a line ==") println("== Loop 11 ==") println("== For Loop --> display first 9 numbers ==") println("== --> 96, 92, 88, 84,...} one to a line ==") println("== Loop 12 ==") println("== For Loop --> display first 30 numbers ==") println("== --> 47, 42, 37,...} eight to a line ==") println("== --> in a 5 character field ==")
11 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e 11 //** You Choose The Loop ** println("== Loop 13 ==") println("== Fill variable State with North Carolina ==") println("== --> Display the characters, in string State, ==") println("== --> in order - one character to a line ==") println("== --> N --> o --> r etc. ==") println("== --> Solution must be usable for any State. ==") N o r t h C a r o l i n a println("== Loop 14 ==") println("== Fill variable State with North Carolina ==") println("== --> Display the characters, in string State, ==") println("== --> in reverse order -> anilorac htron ==") println("== --> Solution must be usable for any State. ==") anilorac htron println("== Loop 15 EXTRA CREDIT (5/5 Points) ==") println("== Fill variable Note with ==") println("== --> Trinity University Has Computer Science, ==") println("== --> Display string Note one word to a line ==") println("== --> Solution must be usable for any Note. ==") What To Turn In
12 PCS1-Ch-3B-Basic-Loops-HW CSCI 1320 Initials P a g e No Lab Is Complete Until Both Are Complete ] You sign & submit the Pledge form. a) Make sure that all program files have a header box with a purpose that clearly defines what you are accomplishing in this lab. b) Make sure that each and every program function has a well formed documentation box that clearly describes the purpose. c) Make sure that each and every program function header box has the appropriate Written By and Date. d) Review the Pledge statement e) Sign & Pledge f) Record the amount of time you think you spent on this lab g) Staple all pages of this lab. Fold in half length-wise (like a hot-dog). Put your name on the outside. Place it on the professor desk before the beginning of lecture on the day it is due. The penalty for late homework will not exceed 25% off per day. 2] Place all programming code associated with this program, if any, in the Professor s Code Drop Box a) I do not accept programs by mail; do not submit labs via ! Comments A] Programs that do not compile are worth little, if anything. B] If a print statement format is off, the penalties will often be less than the 25% per day late penalty; turn in the lab. You would not be happy if you went to Best Buy and purchased a large screen TV that did everything except show the picture; you would consider it pretty worthless. Most users consider software that does not work properly pretty useless as well. If the lab is not working correctly, credit will be small (if any); you might be better to accept a 25% (1 day) late penalty and turn in the lab working correctly! C] Start all programs early so that you can get in contact with the professor if you have problems. D] If you are turning in this lab late, you may hand it to me if I am in the office put it in the mail box outside my office door slide it under the outer door to our suite if locked} slide it under my office door. The sooner I get late labs, the sooner the late penalty meter quits clicking. E] Backup your programs in at least three places. Put a copy on your Y drive. Put a copy on your flash drive. Put a copy on your personal computer. Send yourself a copy in your .
Chapter 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 informationOOP-15-AVL Final Project-1-HW Individual Assignment 70 Points
OOP-15-AVL Final Project-1-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 informationChapter 4C Homework Functions III Individual Assignment 30 Points Questions 6 Points Script 24 Points
PCS1-Ch-4C-Functions-3-HW.docx CSCI 1320 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
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 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 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 informationOOP- 6 Direct Access Files & Software Engineering Individual Assignment
OOP-6-DA-Files-SE-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
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 informationCisco Switch Lab II (1-3 Persons) Individual/Team Lab 35 Points
All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this
More informationClean Up Team Lab 10 Points. Cisco Switch Lab I Individual Lab 25 Points
All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this
More informationIntro-PHP-HW.docx CSCI 3343 Initials P a g e 1
Intro-PHP-HW.docx CSCI 3343 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 informationIntro To HTML & Web & Relational Queries Individual Assignment 30 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 informationDB-Queries-1 - REVIEW Individual 20 Points
DB-Queries-1.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 informationOOP-10 BTree & B+Tree Individual Assignment 15 Points
OOP-10-B+Tree-HW 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 informationServer-Configuration-2-MySQL-1-HW.docx CSCI 3343 Initials P a g e 1
Server-Configuration-2-MySQL-1-HW.docx CSCI 3343 Initials P a g e 1 The short answer questions will be spot checked and graded for completion, but not checked for accuracy. I encourage you to form a study
More informationServer 2 - MySQL #1 Lab
Server-Configuration-2-MySQL-1-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 informationDesign Relationships, Indexes, Queries, & More (Individual/Team Of 2) Assignment 20 USE PENCIL
Relationships-1-HW.docx CSCI 3321 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
More informationBusiness Router II Lab
Business-Router-1-Lab.doc 1 CSCI 3342 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
More informationLinux Command Homework Individual/Team (1-2 Persons) Homework Assignment Turn In One Copy Per Person 5 Points
All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this
More informationSimple Router Configuration Router Lab 10 Points Networking & Data Communications
DCN-Router-Configuration-HW.doc 1 CSCI 3342 You must do at least 90% of this homework without the assistance of anyone else. Once you have 90% or more of the homework completed, you may double check your
More informationBig Data NoSQL Databases Individual Assignment 20 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 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 informationCS 241 Data Organization using C
CS 241 Data Organization using C Fall 2018 Instructor Name: Dr. Marie Vasek Contact: Private message me on the course Piazza page. Office: Farris 2120 Office Hours: Tuesday 2-4pm and Thursday 9:30-11am
More informationENCE 3241 Data Lab. 60 points Due February 19, 2010, by 11:59 PM
0 Introduction ENCE 3241 Data Lab 60 points Due February 19, 2010, by 11:59 PM The purpose of this assignment is for you to become more familiar with bit-level representations and manipulations. You ll
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 informationArchitecture Diagrams
Intro To Design 2 Architecture Diagrams Software Engineering CSCI-3321 Dr. Tom Hicks Computer Science Department 1 "Good Design Is Good Design" 2 Select A Team Recorder Take Really Good Notes During Lectures
More informationITP489 In-Memory DBMS for Real Time Analytics
ITP489 In-Memory DBMS for Real Time Analytics Instructor: Richard W. Vawter ITP 489, Spring 2015 Office: OHE 530B Location: OHE 540 E-Mail: vawter@usc.edu Wed. 2:00-4:50 p.m. Phone: (213) 740-9541 Office
More informationCS 241 Data Organization. August 21, 2018
CS 241 Data Organization August 21, 2018 Contact Info Instructor: Dr. Marie Vasek Contact: Private message me on the course Piazza page. Office: Room 2120 of Farris Web site: www.cs.unm.edu/~vasek/cs241/
More informationCS 374 Fall 2014 Homework 2 Due Tuesday, September 16, 2014 at noon
CS 374 Fall 2014 Homework 2 Due Tuesday, September 16, 2014 at noon Groups of up to three students may submit common solutions for each problem in this homework and in all future homeworks You are responsible
More informationNoSQL Databases & Big Data Individual Assignment 50 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 informationLecture Programming in C++ PART 1. By Assistant Professor Dr. Ali Kattan
Lecture 08-1 Programming in C++ PART 1 By Assistant Professor Dr. Ali Kattan 1 The Conditional Operator The conditional operator is similar to the if..else statement but has a shorter format. This is useful
More informationQ1: Multiple choice / 20 Q2: C input/output; operators / 40 Q3: Conditional statements / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10
EECE.2160: ECE Application Programming Spring 2016 Exam 1 February 19, 2016 Name: Section (circle 1): 201 (8-8:50, P. Li) 202 (12-12:50, M. Geiger) For this exam, you may use only one 8.5 x 11 double-sided
More informationCOMP 3500 Introduction to Operating Systems Project 5 Virtual Memory Manager
COMP 3500 Introduction to Operating Systems Project 5 Virtual Memory Manager Points Possible: 100 Submission via Canvas No collaboration among groups. Students in one group should NOT share any project
More informationCSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I
CSC 015: FUNDAMENTALS OF COMPUTER SCIENCE I Lecture 1: Class Introduction DR. BO TANG ASSISTANT PROFESSOR HOFSTRA UNIVERSITY 1 9/7/16 CSC15 - Python OUTLINE What is Computer Science? What is this Class
More informationIntensive Introduction to Computer Science. Course Overview Programming in Scratch
Unit 1, Part 1 Intensive Introduction to Computer Science Course Overview Programming in Scratch Computer Science S-111 Harvard University David G. Sullivan, Ph.D. Welcome to CS S-111! Computer science
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 informationCSC D84 Assignment 2 Game Trees and Mini-Max
0 The Cats Strike Back Due date: Wednesday, Feb. 21, 9am (electronic submission on Mathlab) This assignment can be completed individually, or by a team of 2 students This assignment is worth 10 units toward
More informationOOP-1-Review-HW-(Part B).docx CSCI 2320 Initials P a g e 1. Print Name Time Required =. Hrs. Signature (pledged) Static Array Review
OOP-1-Review-HW-(Part B).docx CSCI 2320 Initials P a g e 1 Print Name Time Required =. Hrs. Signature (pledged) Static Array Review 1] Write the line of C/C++ code to create an array, called Nos1, which
More informationCS 1044 Program 6 Summer I dimension ??????
Managing a simple array: Validating Array Indices Most interesting programs deal with considerable amounts of data, and must store much, or all, of that data on one time. The simplest effective means for
More informationLesson 1A - First Java Program HELLO WORLD With DEBUGGING examples. By John B. Owen All rights reserved 2011, revised 2015
Lesson 1A - First Java Program HELLO WORLD With DEBUGGING examples By John B. Owen All rights reserved 2011, revised 2015 Table of Contents Objectives Hello World Lesson Sequence Compile Errors Lexical
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 informationChapter 4 Homework Individual/Team (1-2 Persons) Assignment 15 Points
All of the work in this project is my own! I have not left copies of my code in public folders on university computers. I have not given any of this project to others. I will not give any portion of this
More informationIntroduction to Data Structures
15-121 Introduction to Data Structures Lecture #1 Introduction 28 August 2019 Margaret Reid-Miller Today Course Administration Overview of Course A (very basic) Java introduction Course website: www.cs.cmu.edu/~mrmiller/15-121
More informationCSCI-1200 Data Structures Spring 2017 Lecture 5 Pointers, Arrays, Pointer Arithmetic
CSCI-1200 Data Structures Spring 2017 Lecture 5 Pointers, Arrays, Pointer Arithmetic Announcements Submitty iclicker registration is still open. Even if you already registered on the iclicker website,
More informationCMPE012 Computer Engineering 12 (and Lab) Computing Systems and Assembly Language Programming. Summer 2009
CMPE012 Computer Engineering 12 (and Lab) Computing Systems and Assembly Language Programming Summer 2009 About these notes Originally by Cyrus Bazeghi Overhauled by Andrea Di Blas Modified by me (Alexandra
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 informationTips 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 informationIntroduction to Programming in C Department of Computer Science and Engineering. Lecture No. #06 Loops: Operators
Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #06 Loops: Operators We have seen comparison operators, like less then, equal to, less than or equal. to and
More informationCSCI 201L Syllabus Principles of Software Development Spring 2018
L Syllabus Principles of Software Development Spring 2018 Instructor: Jeffrey Miller, Ph.D. Email: jeffrey.miller@usc.edu Web Page: http://www-scf.usc.edu/~csci201 Office: SAL 342 Phone: 213-740-7129 Lectures:
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 informationCMSC 201 Spring 2017 Homework 4 Lists (and Loops and Strings)
CMSC 201 Spring 2017 Homework 4 Lists (and Loops and Strings) Assignment: Homework 4 Lists (and Loops and Strings) Due Date: Friday, March 3rd, 2017 by 8:59:59 PM Value: 40 points Collaboration: For Homework
More informationCS 6371: Advanced Programming Languages
CS 6371: Advanced Programming Languages Dr. Kevin Hamlen Spring 2017 Fill out, sign, and return prereq forms: Course number: CS 6371 Section: 1 Prerequisites: CS 5343: Algorithm Analysis & Data Structures
More informationQ1: Multiple choice / 20 Q2: Arrays / 40 Q3: Functions / 40 TOTAL SCORE / 100 EXTRA CREDIT / 10
EECE.2160: ECE Application Programming Spring 2017 Exam 2 March 29, 2017 Name: Section (circle 1): 201 (Dr. Li, MWF 8-8:50) 202 (Dr. Geiger, MWF 12-12:50) For this exam, you may use only one 8.5 x 11 double-sided
More informationCredit: The lecture slides are created based on previous lecture slides by Dan Zingaro.
CSC148 2018 Here 1 Credit: The lecture slides are created based on previous lecture slides by Dan Zingaro. 2 Larry Zhang Office: DH-3042 Email: ylzhang@cs.toronto.edu 3 The teaching team Dan Zingaro: LEC0103
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 informationDue Friday, March 20 at 11:59 p.m. Write and submit one Java program, Sequence.java, as described on the next page.
CS170 Section 5 HW #3 Due Friday, March 20 at 11:59 p.m. Write and submit one Java program, Sequence.java, as described on the next page. The assignment should be submitted on the Math/CS system (from
More informationMidterm Exam 2 Solutions C Programming Dr. Beeson, Spring 2009
Midterm Exam 2 Solutions C Programming Dr. Beeson, Spring 2009 April 16, 2009 Instructions: Please write your answers on the printed exam. Do not turn in any extra pages. No interactive electronic devices
More informationGrade 6 Math Circles. Spatial and Visual Thinking
Faculty of Mathematics Waterloo, Ontario N2L 3G1 Introduction Grade 6 Math Circles October 31/November 1, 2017 Spatial and Visual Thinking Centre for Education in Mathematics and Computing One very important
More informationCOSE212: Programming Languages. Lecture 0 Course Overview
COSE212: Programming Languages Lecture 0 Course Overview Hakjoo Oh 2017 Fall Hakjoo Oh COSE212 2017 Fall, Lecture 0 September 4, 2017 1 / 9 Basic nformation nstructor: Hakjoo Oh TAs: Position: Assistant
More informationDue: 9 February 2017 at 1159pm (2359, Pacific Standard Time)
CSE 11 Winter 2017 Program Assignment #2 (100 points) START EARLY! Due: 9 February 2017 at 1159pm (2359, Pacific Standard Time) PROGRAM #2: DoubleArray11 READ THE ENTIRE ASSIGNMENT BEFORE STARTING In lecture,
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 information(Refer Slide Time: 01:25)
Computer Architecture Prof. Anshul Kumar Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture - 32 Memory Hierarchy: Virtual Memory (contd.) We have discussed virtual
More informationThe American University in Cairo Department of Computer Science & Engineeringt CSCI &09 Dr. KHALIL Exam-I Fall 2009
The American University in Cairo Department of Computer Science & Engineeringt CSCI 106-05&09 Dr. KHALIL Exam-I Fall 2009 Last Name :... ID:... First Name:... Form I Section No.: EXAMINATION INSTRUCTIONS
More informationProgramming in C++ PART 2
Lecture 07-2 Programming in C++ PART 2 By Assistant Professor Dr. Ali Kattan 1 The while Loop and do..while loop In the previous lecture we studied the for Loop in C++. In this lecture we will cover iteration
More informationLecture 05 I/O statements Printf, Scanf Simple statements, Compound statements
Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture 05 I/O statements Printf, Scanf Simple
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 informationAP Computer Science A Summer Assignment 2017
AP Computer Science A Summer Assignment 2017 The objective of this summer assignment is to ensure that each student has the ability to compile and run code on a computer system at home. We will be doing
More informationX
Cosumnes River College CISN 303 Network Administration Linux Server A Hybrid-Online Course Spring 2016 Instructor: Buddy Spisak Office Hours: Mon. 6:00-7:00 p.m. (Mar. 15 to May 18) Office: BS-143 Voice
More informationProject 1. due date Sunday July 8, 2018, 12:00 noon
Queens College, CUNY, Department of Computer Science Object-oriented programming in C++ CSCI 211 / 611 Summer 2018 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 2018 Project 1 due date Sunday July 8,
More informationBCIS 3630 Dr. GUYNES FALL 2014 MONDAY SECTION
GUYNES s CLASS RULES During the lecture portion of the class [the first 2 hours], all laptops, all cellphones, all Ipads, all PDAs, etc. must be turned off and put away. They cannot be on the desktop,
More informationWeb API Lab. The next two deliverables you shall write yourself.
Web API Lab In this lab, you shall produce four deliverables in folder 07_webAPIs. The first two deliverables should be pretty much done for you in the sample code. 1. A server side Web API (named listusersapi.jsp)
More informationCS : Programming for Non-majors, Fall 2018 Programming Project #2: Census Due by 10:20am Wednesday September
CS 1313 010: Programming for Non-majors, Fall 2018 Programming Project #2: Census Due by 10:20am Wednesday September 19 2018 This second assignment will introduce you to designing, developing, testing
More information(Refer Slide Time: 00:01:30)
Digital Circuits and Systems Prof. S. Srinivasan Department of Electrical Engineering Indian Institute of Technology, Madras Lecture - 32 Design using Programmable Logic Devices (Refer Slide Time: 00:01:30)
More informationEECE.2160: ECE Application Programming Spring 2016 Exam 1 Solution
EECE.2160: ECE Application Programming Spring 2016 Exam 1 Solution 1. (20 points, 5 points per part) Multiple choice For each of the multiple choice questions below, clearly indicate your response by circling
More informationCHAPTER INTRODUCTION
CHAPTER 1 INTRODUCTION The base slide set from which most slide sets in this course were created was originally created by Donald W. Smith of TechNeTrain.com Final Draft Oct. 15, 2011 » Names!» Your Job»
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 informationBinary, Hexadecimal and Octal number system
Binary, Hexadecimal and Octal number system Binary, hexadecimal, and octal refer to different number systems. The one that we typically use is called decimal. These number systems refer to the number of
More informationAnnouncements. 1. Forms to return today after class:
Announcements Handouts (3) to pick up 1. Forms to return today after class: Pretest (take during class later) Laptop information form (fill out during class later) Academic honesty form (must sign) 2.
More informationCPSC 150 Laboratory Manual. Lab 1 Introduction to Program Creation
CPSC 150 Laboratory Manual A Practical Approach to Java, jedit & WebCAT Department of Physics, Computer Science & Engineering Christopher Newport University Lab 1 Introduction to Program Creation Welcome
More informationIntroduction to Web Design & Computer Principles
Introduction to Web Design & Computer Principles CSCI-UA.0004-007 Instructor: Adam Scher Tuesday/Thursday 8:00am - 9:15am Warren Weaver Hall Room 101 What s in store today... Who Am I? Course Overview
More informationIntroduction to Programming in C Department of Computer Science and Engineering. Lecture No. #13. Loops: Do - While
Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #13 Loops: Do - While So far we have been using while loops in C, now C programming language also provides you
More informationPublic-Service Announcement
Public-Service Announcement Valley Consulting Group is a student-run consulting organization which provides strategy consulting services to our clients. We tackle cutting edge challenges faced exclusively
More informationCS 1428 Programming Assignment 2 Due Wednesday September 19 th :15 am Section 3 3:45 pm Section 4
CS 1428 Programming Assignment 2 Due Wednesday September 19 th 2018 11:15 am Section 3 3:45 pm Section 4 Program 2: Write a C++ program to create a customer s bill for a company. The company sells only
More information1. General Information Course Title: CSCI-605 Advanced Object-Oriented Programming Concepts Instructor: Hans-Peter Bischof Office: Telephone:
1. General Information Course Title: CSCI-605 Advanced Object-Oriented Programming Concepts Instructor: Hans-Peter Bischof Office: 70-3005 Telephone: (585) 475-5568 Office Hours: [Tues Thurs]day: 10am
More informationCMPSC 111 Introduction to Computer Science I Fall 2016 Lab 2 Assigned: September 7, 2016 Due: Wednesday, September 14, 2016 by 2:30 pm
1 Objectives CMPSC 111 Introduction to Computer Science I Fall 2016 Lab 2 Assigned: September 7, 2016 Due: Wednesday, September 14, 2016 by 2:30 pm To develop a template for a Java program to use during
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 informationEECS 492 Midterm #1. Example Questions. Note: Not a complete exam!
EECS 492 Midterm #1 Example Questions Note: Not a complete exam! General Instructions This exam is closed book, except that you are allowed to refer to a single sheet of paper. You may use a calculator
More informationHomework 1. Notes. What To Turn In. Unix Accounts. Reading. Handout 3 CSCI 334: Spring, 2017
Homework 1 Due 14 February Handout 3 CSCI 334: Spring, 2017 Notes This homework has three types of problems: Self Check: You are strongly encouraged to think about and work through these questions, but
More informationSyllabus CS 301: Data Structures Spring 2015
Syllabus CS 301: Data Structures Spring 2015 Meeting Times Instructor Graders Text Lect: 12:00-12:50 M, Tu, Wed, HB 116 Labs: 12:00-12:50 Th, HB 203 Dr. Razvan Andonie, HB 219-B, Office hours Projects
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 informationNote : Your program must contain the following 6 functions :
Fall 2018 - CS1428 Programming Assignment 6 Due Date : Wednesday November 7 th - 2018 Sections 3 and 4 Write a menu driven C++ program that prints the day number of the year, given the date in the form
More informationLecture 1. Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering?
Lecture 1 Introduction to course, Welcome to Engineering, What is Programming and Why is this the first thing being covered in Engineering? Welcome to ENGR 102 Syllabus review Your Time Expectations (in
More information(Refer Slide Time: 02.06)
Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering Indian Institute of Technology, Delhi Lecture 27 Depth First Search (DFS) Today we are going to be talking
More informationIntroduction to Programming in C Department of Computer Science and Engineering. Lecture No. #28. Functions: Examples 2
Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #28 Functions: Examples 2 (Refer Slide Time: 00:14) With the concepts we have seen so far, let us design a sample
More informationDue: Tuesday 29 November by 11:00pm Worth: 8%
CSC 180 H1F Project # 3 General Instructions Fall 2016 Due: Tuesday 29 November by 11:00pm Worth: 8% Submitting your assignment You must hand in your work electronically, using the MarkUs system. Log in
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 information(Refer Slide Time: 05:25)
Data Structures and Algorithms Dr. Naveen Garg Department of Computer Science and Engineering IIT Delhi Lecture 30 Applications of DFS in Directed Graphs Today we are going to look at more applications
More informationIntroduction to Scientific Python, CME 193 Jan. 9, web.stanford.edu/~ermartin/teaching/cme193-winter15
1 LECTURE 1: INTRO Introduction to Scientific Python, CME 193 Jan. 9, 2014 web.stanford.edu/~ermartin/teaching/cme193-winter15 Eileen Martin Some slides are from Sven Schmit s Fall 14 slides 2 Course Details
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 informationCLIENT ONBOARDING PLAN & SCRIPT
CLIENT ONBOARDING PLAN & SCRIPT FIRST STEPS Receive Order form from Sales Representative. This may come in the form of a BPQ from client Ensure the client has an account in Reputation Management and in
More information