Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Computer Science Assignment for CMSI 182, Fall 2006: Introduction to Computing, Assignments of Computer Science

An introduction to a computer science assignment for a course named cmsi 182 in the fall of 2006. The assignment includes both written and programming exercises to help students understand how computers process information. Students are required to read chapters 1 and 2 of the brookshear book and submit their work on hardcopy. Examples of exercises from the book and asks students to explain what happens when they run a javascript program.

Typology: Assignments

Pre 2010

Uploaded on 08/18/2009

koofers-user-yjf
koofers-user-yjf 🇺🇸

10 documents

1 / 1

Toggle sidebar

Related documents


Partial preview of the text

Download Computer Science Assignment for CMSI 182, Fall 2006: Introduction to Computing and more Assignments Computer Science in PDF only on Docsity! CMSI 182 I N T R O D U C T I O N T O C O M P U T E R S C I E N C E Fall 2006 Assignment 0914 Alright, time to get your feet wet and your hands dirty. This combination of written and programmed exer- cises is meant to cement your understanding of how computers “see” and “work with” the information that we use everyday. Not for Submission Read Chapters 1 and 2 in the Brookshear book. For Submission Submit all work on hardcopy at the beginning of our September 14 class. 1. Do the following exercises from Chapter 1 of the Brookshear book: a. Questions 2 and 3 on page 30 b. Chapter review problems 1.1, 1.2, 1.5, 1.7, 1.9, 1.12, 1.19, 1.20, 1.24, 1.25 2. Here it is — your first program! Type this JavaScript program into the JavaScript scratch page on the course Web site and run it by clicking on the page’s Run button. Remember that absolute accuracy is required — this code must be entered exactly as shown (at least until you’ve gained a little more experi- ence and knowledge on the subject): var a = "Hello"; var b = "World"; alert(a + b); var i = 1; var j = 1; alert(i + j); var c = "1"; var d = "1"; alert(c + d); var x = 1.5; var y = 3.25; alert(x + y); alert(i + j + a + b + c + d + x + y); What happens when you run this program? For each alert command (there are five of them), explain what you think the computer is doing with the expression that is being “alerted.” 3. Do the following exercises from Chapter 2 of the Brookshear book: a. Question 3 on page 82 b. Questions 1 and 2 on page 88
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved