Free Essay

Comp

In: Other Topics

Submitted By npesala
Words 2288
Pages 10
COMP101 – Problem Solving with Computing
Homework - WEEK 12 [30 points]

This is further review of some of the material from Chapter 6, some simple steps in coding using JavaScript and the repl.it website, and lectures from class.

No credit for answers that are copies or near verbatim transcripts – please use your own words[1] and document sources where appropriate.

Chapter 7

Answer the following questions:

1. JavaScript Debugging Exercises [1 point each, 5 points total]

The snippets of JavaScript below contain syntax errors and/or logic errors. Identify the errors and insert your corrected code.

a. function main()

{ var num1 = getNumber(); var num2 = getNumber(); } function getNumber() { var input = Number(prompt("Enter a number")); } main();

b. function main() { var total = 0;

for (var ctr = 0; ctr < 10; ctr++) { total = computeTotal(total); } } function computeTotal(total, ctr) { total = total + ctr; return total; } main();

c. function main() { var playerName1; var playerName2;

playerName1, playerName2 = getPlayerNames(); } function getPlayerNames() { var name1 = prompt("Enter the name of player1"); return name1;

var name2 = prompt("Enter the name of player2"); return name2; } main();

d. module main() { var ctr = 1; while (ctr <= 10) { console.log("The value of ctr is " + ctr); ctr = ctr + 1; } } main();

e. function main() { var stuName = prompt("Enter the name of your student"); var stuScore = Number(prompt("Enter the test score for the student"));

var output = displayOutput(stuScore, stuName); console.log(output); } function displayOutput(stuName, stuScore) { var output = "The student name is " + stuName + "."; var output = output + " The student score is “ + stuScore + "."; return output; } main();

2. JavaScript Code [3 points total]

Your instructor evaluated and provided feedback on your Raptor flowchart solution from Homework 11. You will be writing a JavaScript program using this evaluated solution. Please be sure to incorporate the corrections identified by your instructor as you proceed to use the JavaScript programming language to code and test the problem using the repl.it programming tool for JavaScript.

NOTE: You will be using snippets from JavaScript in order to code the Raptor flowchart from the previous assignment. You will not be required to learn any HTML in order to execute and try out your JavaScript snippet. Following are some important details about the JavaScript language that you will want to know before proceeding with this assignment:

As is noted above, we will be using a tool called repl.it to enter and test our JavaScript code snippets this week. It is recommended that you use the latest version of the Chrome browser for these labs. Please refer to last week’s homework assignment details if you have questions about how to maneuver in this tool.

Remember, your code should start with documentation. Document the first few lines of your program to include your name, the date, and a brief description of what the program does. You will need to create four (4) variables in the main part of the program: endProgram, playerOne, playerTwo and winnerName. You will then use a while loop and continue until the user has entered a 1 to end the program. Within the while loop, you will get the dice value for each of the users, making sure to print out the value for each within the rollDice() function. You will then output the winner based on the name returned from the rollDice() function. You will need to create three (3) functions for this program: getName() which will be called once for each of the two players, rollDice() and displayInfo(). The getName() function will simply prompt the user for each player’s name. The rollDice() function will call the Math.floor(Math.random()*6+1) function once for each player and print each out to the screen using the player’s names. It will then calculate which layer’s dice roll is higher or if there is a tie and set the winner’s name to that player’s name or ‘TIE’ if it is a tie and will return that value. Last is the displayInfo() function that will simply take as an argument the winner’s name and print that out. Last, you will prompt the user if he or she wishes to end the program. That will then end the program or continue back through the loop again.

When your code is complete and runs properly, simply highlight all code that appears in the left (white) portion of the editor window, then do a copy and paste here. Do the same for the terminal or output that appears in the black portion of the screen.

PASTE CODE HERE

PASTE OUTPUT RESULTS HERE

3. JavaScript Hand Trace Chart [2 points total]

PUT HAND TRACE CHART HERE [2 points] (Your Hand Trace Chart should include a column for each of the variables defined in the JavaScript code and a row for each line of code. Include an additional column to show output that is displayed to the user. Enter “Joe” for the name of the first player. Enter “Sam” for the name of the second player. Play once through assuming that Joe rolled a 4 and Sam rolled a 2. Play again, assuming Joe rolled a 4 and Sam rolled a 6. Play one last time assuming Joe rolled a 3 and Sam rolled a 3.

4. Short Answers [1 point each, 2 points total]

1. Give a description of the input validation loop process.

2. In this chapter you saw how a posttest loop can be used in input validation, as an alternative to the priming read followed by a pretest loop. Why is it typically not best to use a posttest loop approach?

5. Algorithms [1 point each, 5 points total]

1. Design an algorithm that prompts the user to enter a positive nonzero number and validates the input.

2. Design an algorithm that prompts the user to enter a number in the range of 1 through 100 and validates the input.

3. Design an algorithm that prompts the user to enter “yes” or “no” and validates the input (use a case-insensitive comparison).

4. Design an algorithm that prompts the user to enter a number that is greater than 99 and validates the input.

5. Design an algorithm that prompts the user to enter a secret word. The secret word should be at least 8 characters long. Validate the input.

6. Debugging Exercises [1 point each, 3 points total]

1. Why does the following pseudocode not perform as indicated in the comments?

// This program asks the user to enter a value between 1 and 10 validates the input. Declare Integer value

// Get a value from the user. Display “Enter a value between 1 and 10.” Input value

// Make sure the value is between 1 and 10. While value < 1 AND value > 10 Display “ERROR: The value must be between 1 and 10.” Display “Enter a value between 1 and 10.” Input value End While

2. Why does the following pseudocode not perform as indicated in the comments? // This program gets a dollar amount from the user and validates the input. Declare Real amount

// Get the amount from the user. Display “Enter a dollar amount.” Input amount

// Make sure the amount is not less than zero. If it is, get a new amount from the user. While amount < 0 Display “ERROR: The dollar amount cannot be less than zero.” Display “Enter a dollar amount.” End While

3. The following pseudocode works, but it performs a case-sensitive validation of the user’s input. How could the algorithm be improved so the user does not have to pay attention to capitalization when entering a name? // This program asks the user to enter a string and validates the input. Declare String choice

// Get the user’s response. Display “Cast your vote for chess team captain.” Display “Would you like to nominate Lisa or Tim?” Input choice

// Validate the input. While choice != “Lisa” AND choice != “Tiim” Display “Please enter Lisa or Tim.” Display “Cast your vote for chess team captain.” Display “Would you like to nominate Lisa or Tim?” Input choice End while

7. Pseudocode and RAPTOR Flowcharting Tool [10 points] [2]

Write the pseudocode and flowchart [3] using the RAPTOR Flowcharting Tool for the following program. The program is a follows:

Design and write a program that calculates and displays the number of minutes over the monthly contract minutes that a cell phone user incurred. The program should ask the user how many minutes were used during the month and how many minutes they were allowed. Validate the input as follows:

• The minimum minutes allowed should be at least 200, but not greater than 800. Validate input so that the minutes allowed are between 200 and 800. • The minutes used must be over 0. Validate input so that the user does not enter a negative value.

Once correct data is entered, the program should calculate the number of minutes over the minutes allowed. If minutes were not over, print a message that they were not over the limit. If minutes were over, for every minute over, a .20 fee should be added to the monthly contract rate of 74.99. Be sure not to add the .20 fee for minutes 1 to the number of minutes allowed, but rather just minutes over. Display the number of minutes used, minutes allowed, the number of minutes over, and the total due that month.

You should have the following functions and variables:

• A function that allows the user to enter in minutes allowed within the range of 200 and 800. (getAllowed) • A function that allows the user to enter in the minutes used greater than or equal to 0. (getUsed) • A function that calculates the minutes over. (calcOver) • A function that calculates the total due (calcTotalDue) • A function that prints a monthly use report (printData) • Variables: endProgram, minutesAllowed, minutesUsed, totalDue, minutesOver

a. Pseudocode (You will declare your variables and start a while loop that checks if the endProgram variable is “no” or not and validates the input. You will call getAllowed function to get the number of minutes allowed, validating the input as described above. You will call the getUsed function to get the number of minutes used, validating the input as described above. You will call the calcOver function that will return the total minutes over and call the calcTotalDue function that calculates the total due. Last, you will call the printData function that tell the user the minutes allowed, minutes used, minutes over and total due. ).

PUT PSEUDOCODE HERE

b. Flowchart (Your flowchart will start by declaring the variables needed and setting the endProgram to “no” initially. Next, in a loop you will check that the endProgram variable is set to either “yes” or “no” and validate the input and act accordingly. You will set your variables, call getAllowed, getUsed, calcOver, calcTotal and printData. Then you will ask the user if they wish to end the program or not. You will have subcharts or modules for the main, getAllowed, getUsed, calcOver, calcTotal and printData. You will validate the input in the getAllowed and getUsed modules using a pretest loop.)

PUT FLOWCHARTS HERE [4]

DELIVERABLES

One MS Word document and one RAPTOR file (named hw_w12.rap).

Put both files into a folder and zip them up before you use the Submit tool. For help or problems related to using Submit, please contact the Help Desk. Your program source file has to be named hw_w12.rap. Be sure the required identifying information (name, class, assignment numbers, etc.) are on all of your Word documents so that you can receive credit for your work.

1. A clearly organized document with the answers in order by number (there is no need to copy the questions back).

2. Your RAPTOR application file, named hw_w12.rap.

-----------------------
[1] This will apply to all assignments in this class.
[2] You should have plenty of experience doing flowcharts using RAPTOR in the previous homework assignments. To get additional help with functions in RAPTOR, please refer to the online assistance given within the RAPTOR program.
[3] (note that you will not be asked to produce an algorithm as part of this section going forward but you should still make sure you go through the necessary algorithm steps prior to beginning your pseudocode and flowchart).
[4] (include a copy of your flowchart here [do this by going to the file menu item in RAPTOR, then selecting the “Print to Clipboard” option … you must also have your Word file open and ready to paste into in order for it to work properly] and also submit it in a separate file called hw_w12.rap)

-----------------------
Coding in JavaScript

Please click on the JS_W12.pdf file attached to this container at the course for details on what you will need to know about the JavaScript programming language in order to complete this portion of the homework assignment for this week. Some additional online references on the language are listed below as well … all are free …

Eloquent JavaScript, 2nd edition (9781593275846) …Thoroughly updated and revised, Eloquent JavaScript, 2nd Edition shows you how to write effective JavaScript code. Click HERE for the link to get to this textbook on Safari … or HERE to get to it online …

JavaScript Pocket Reference, 3rd edition (9781449335977) …this book is an all-new excerpt of The Definitive Guide, collecting the essential parts of that hefty volume into this slim yet dense pocket reference. Click HERE for the link to get to this textbook on Safari …

Head First JavaScript Programming (9781449340131) …this book takes a light approach to earning JavaScript. It teaches you everything from JavaScript language fundamentals to advanced topics, including objects, functions, and the browser’s document object model. You won’t just be reading—you’ll be playing games, solving puzzles, pondering mysteries, and interacting with JavaScript in ways you never imagined.. … click HERE to view it on Safari …

Similar Documents

Premium Essay

Comp and Lit Comparison of Blue+Yellow/Story of an Hour

...Frank Auth Comp & lit II Essay 1 In the short story “the Story of an Hour” by Kate Chopin and the short story “blue + yellow” by Chris Killen compare in many ways. These two stories use the same literary device strongly such as imagery. Imagery is a literary device in which the author uses words and phrases to paint a picture in the readers head throughout the story. These two short stories are written with very descriptive language to help paint a picture of the occurrences in the story and describe a scene. These two stories also contrast in many ways such as the way they use symbolism as well as the relationships between the characters in both stories. The two short stories compare in the use of the literary devices imagery and in the themes. The imagery used in “the Story of an Hour” is when the author is painting a picture of the main characters reaction to the news of her husband’s apparent death. When Mrs. Mallard learns of her husband’s death she is very upset, and locks herself in her room, and sits down in her chair starring out the window. The author uses descriptive language here such as “There stood, facing the open window, a comfortable, roomy armchair. Into this she sank, pressed down by a physical exhaustion that haunted her body and seemed to reach into her soul,” (Kate Chopin Par 4) to paint a picture of how the character is acting. Using such detail helps the reader clearly understand and mentally visualize how the character is acting in this......

Words: 1310 - Pages: 6

Premium Essay

Comp 2

...EN1420 Comp II Unit 5 Project Part II Portner, J. (2005). The Return of School Uniforms. In K. Burns (Ed.), Contemporary Issues Companion. School Violence. San Diego: Greenhaven Press. (Reprinted from Teacher Magazine, 1996, February 14, 15[21]) Retrieved from http://ic.galegroup.com.proxy.itt-tech.edu/ic/ovic/ViewpointsDetailsPage/ViewpointsDetailsWindow?displayGroupName=Viewpoints&disableHighlighting=true&zid=&search_within_results=&prodId=OVIC&action=2&catId=&documentId=GALE%7CEJ3010082216&userGroupName=itted&jsid=c4801c247a7918ca8b7aaf75a46a3bb3 Daniels, S. (2005). School Dress Codes Are Necessary and Constitutional. In J. Carroll (Ed.), Opposing Viewpoints. Students' Rights. San Diego: Greenhaven Press. (Reprinted from Findings, 2001, May) Retrieved from http://ic.galegroup.com.proxy.itt-tech.edu/ic/ovic/ViewpointsDetailsPage/ViewpointsDetailsWindow?displayGroupName=Viewpoints&disableHighlighting=true&zid=&search_within_results=&prodId=OVIC&action=2&catId=&documentId=GALE%7CEJ3010398217&userGroupName=itted&jsid=5b35c1b4b1c2cae05faaabbe58795c7f WILKINS, J. (1999, March). School Uniforms. The Humanist, 59(2), 19. Retrieved from http://ic.galegroup.com.proxy.itt-tech.edu/ic/ovic/AcademicJournalsDetailsPage/AcademicJournalsDetailsWindow?displayGroupName=Journals&disableHighlighting=true&search_within_results=&prodId=OVIC&action=2&catId=&documentId=GALE%7CA54099133&...

Words: 596 - Pages: 3

Premium Essay

Comp 274

...COMP 274 Week 5 Homework Questions Answer the following questions: 1. Describe the graphical coordinate system in Java. Where is the origin? What units apply to the x,y coordinates? The horizontal axis is the x coordinate and the vertical axis is the y coordinate. The origin is the upper left corner of the display area. Moving to the right increases the x value, moving down increases the y value. The units are pixels. 2. How would you use the Graphics class to draw a line between 2 specific points? Give an example. public void paint(Graphics g) { Graphics2D g2 = (Graphics2D) g; Line2D lin = new Line2D.Float(5, 30, 380, 30); g2.draw(lin); } 3. How do you specify a particular color to be used as fill when using the Graphics class? g2.setPaint(Color.BLACK); 4. How would you create a SanSerif font of point size 14 that is bold and italic? Give an example. JButton b = new JButton("OK"); b.setFont(new Font("sansserif", Font.BOLD, 32)); 5. Given a graphics object g, write a few lines of code to have that graphics object draw a green circle (filled in) that has a diameter of 100 pixels. import java.awt.*; import java.applet.*; public class FirstApplet extends Applet { public void paint (Graphics g) { g.drawRect(40,20,200,100); g.drawOval(40,20,200,100); } 6. Given a graphics object g, write a few lines of code to draw a red......

Words: 625 - Pages: 3

Free Essay

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM http://helpido.com/comp-274-week-5/ COMP274 COMP/274 COMP 274 WEEK 5 PROGRAMMING ASSIGNMENT ________________________________________ Timer and Mouse Events and Java Graphics Introduction The purpose of this week’s programming assignment is to learn how to deal with events from multiple sources. In addition, we will learn how to use some of Java’s graphics capabilities for drawing shapes in a display area. The programming assignment for this week is to implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls. The player moves a paddle in one dimension, trying to hit the ball whenever possible. If the ball hits the paddle, it bounces off and continues on its way. If the paddle misses the ball, the ball goes off the end of the display area and the player loses a point. In our paddle ball game, the ball moves around the display, bouncing off walls just as in the Pong game. The player controls a paddle trying to hit the ball just like in the Pong game. If the ball hits the paddle, it bounces off and continues on its way. The main difference in our game is that if the player misses the ball, the ball simply bounces off the wall behind the paddle and continues to travel. There is no scoring in this game. Object Oriented Design If we analyze the game description we can see there are several different......

Words: 2412 - Pages: 10

Free Essay

Comp274 Comp/274 Comp 274 Week 5

...HELPIDO.COM http://helpido.com/comp-274-week-5/ COMP274 COMP/274 COMP 274 WEEK 5 PROGRAMMING ASSIGNMENT ________________________________________ Timer and Mouse Events and Java Graphics Introduction The purpose of this week’s programming assignment is to learn how to deal with events from multiple sources. In addition, we will learn how to use some of Java’s graphics capabilities for drawing shapes in a display area. The programming assignment for this week is to implement a simple paddle ball game. Paddle Ball Game Overview The paddle ball game is a simplification of the Pong game. In the Pong game, a ball is moving around the display, bouncing off walls. The player moves a paddle in one dimension, trying to hit the ball whenever possible. If the ball hits the paddle, it bounces off and continues on its way. If the paddle misses the ball, the ball goes off the end of the display area and the player loses a point. In our paddle ball game, the ball moves around the display, bouncing off walls just as in the Pong game. The player controls a paddle trying to hit the ball just like in the Pong game. If the ball hits the paddle, it bounces off and continues on its way. The main difference in our game is that if the player misses the ball, the ball simply bounces off the wall behind the paddle and continues to travel. There is no scoring in this game. Object Oriented Design If we analyze the game description we can see there are several different......

Words: 2412 - Pages: 10

Free Essay

Comp 1

...as a person and my goals define what I allow myself to experience.Being human i'm subject to occasional apathy but at one crux of my life i became overwhelmed with a sense of nothing.Through hard work and aspiration I rose above my apathy and began to truly experience life as I aspired to.This class is another experience i aspired to collect and my goals reflect that of an inexperienced youth in a fishbowl waiting to one day leap past the bounds of my bowl into a world much bigger than my own experience.Through this class i aspire to improve my composition skills to prepare myself for an environment that requires much more of me than i am currently capable,and as well to create a plethora of bonds with those i meet on my journey through Comp 1. The current level of the composition skills i posses , as seen in this essay,rest somewhere between an ignorant writer and an overconfident high school student..Through this class i'll endeavor to participate in and research thoroughly the assignments, with the goal of insight into writing elements in mind,offered. in order to not only sufficiently improve my skills but to exceed that of which will be required of me.With great effort and help,from the wonderfully humorous and eccentric ,Mr.Cornette I believe in earnest that i can greatly advance my writing abilities.In order to accomplish this I have taken it upon my self to study dillegently both in and outside of class as well as to not pass off any assignment giving in to......

Words: 704 - Pages: 3

Free Essay

Comp 230 Week 5

...Each objItem in colItems WScript.Echo vbCrLf & _"Drive Letter ......... " & objItem.Name & vbCrLf & _ "Description .......... " & objItem.Description & vbCrLf & _ "Volume Name .......... " & objItem.VolumeName & vbCrLf & _ "Drive Type ........... " & objItem.DriveType & vbCrLf & _ "Media Type ........... " & objItem.MediaType & vbCrLf & _ "VolumeSerialNumber ... " & objItem.VolumeSerialNumber & vbCrLf & _ "Size ................. " & Int(objItem.Size /1073741824) & " GB" & vbCrLf & _ "Free Space ........... " & Int(objItem.FreeSpace /1073741824) & " GB" Next End Sub "========================================" & 'Ronald Litland 'Comp 230 'Week 5 lab :Run PC_Tests.vbs echo off :start cls echo Computer System Analysis echo. & echo. echo [1] Check System Information echo [2] Check System Memory echo [3] Check Operating System Version echo [4] Check Printers Status echo [5] Check Logical Drive Information echo [x] Exit Program" echo. set /p choice="Enter the Number of your Choice .... " if %choice% equ x exit if %choice% equ X exit cscript //nologo Mod1_PCTests.vbs %choice% echo. pause goto start '========================================= ' Menu Driven Computer / Network Tests ' This VBScript program is run using the PC_Tests.cmd Batch Script Set args = WScript.Arguments WScript.Echo vbCrLf ' Select case from Mod1_PCTests.cmd and......

Words: 2479 - Pages: 10

Premium Essay

Comp Intro

...Contact the instructor: You are welcome to communicate with me through emails or drop by in my office during office hours. Since there are so many spams around the email system, please make sure that you put your course number in the subject heading (eg. COMP 150 AB2) and send it from your UFV email account. Otherwise, your email may be accidentally filtered/deleted. If I don’t respond in two days, please re-send the email or talk to me directly after class or during my office hours. Course Description This course is an introduction to structured computer programming. Students will study algorithms and top-down design, and will implement algorithms in a procedural programming language. Please refer to http://www.ufv.ca/calendar/CourseOutlines/PDFs/COMP/COMP150-20100423.pdf for further information. NOTE: COMP 150 or 152 (respectively) cannot be taken for further credit. Prerequisite B.C. Principles of Math 11 with a grade of C or better or MATH 085 with a C or better. Competent in computer skills. Course Text & Material Reference: Schaums’ Outline: Programming with C++ John Hubbard McGraw-Hill ISBN: 0-07-135346-1 Text: C++ for Everyone Cay Horstmann Wiley ISBN-13: 978-0-470-92713-7 Note: You may need a flash drive if you want to keep your own copy and transfer files. Other Course Resources Q:\cis\Jon Quah\comp150 It is your responsibility to check the website often as files may be added or updated at any time. Course Objectives/Outcomes ...

Words: 832 - Pages: 4

Premium Essay

Comp 11 Fianl

...How Genetics Affect Criminal Behavior Lynn Wigtion English Comp 2 4/27/2003 Amy DeBolt The human behavioral system is neither environmentally or genetically determined, but does have potentials that come through interaction of the environment and genes (Jones, pg.87). Concerning criminal behavior, many people want to blame the parents, or the individual’s upbringing, especially if it is a child or a teen committing a crime. Others want to blame social media and gaming or our society. While all of these can play a role in criminal behavior, so does genetics. Let’s repeat that, genetics play a role in criminal behavior, not make a person become a criminal. Genes do not cause behavior, but they affect tendencies to behave in certain ways (Nurnberger, Aug 10, 2006, para. 3). Anything can influence an individual to act and behave like a criminal, but those things do not make individuals commit crimes. That is entirely a choice. Genes contribute to an individual’s patterns because genes affect learning. Saying that something is influenced genetically is not saying environmental factors are not relevant. Saying a behavior is influenced genetically is not saying that it is unalterable or inevitable. “A predisposition is not predestination (Jones, pg87). Several components that contribute to criminal behavior are looked at; however, genetic factors are often overlooked as an important attribute. Some genetic influences are children who have behavior or disruptive......

Words: 2188 - Pages: 9

Premium Essay

Comp 230 Week 4 Lab

...Student Name | | Class | COMP 230 | Date | 06/01/2015 | VBScript IP Array Report In the space provided below, copy and paste your IP_Array.vbs Program Code. If it doesn’t fit, use the next page for the continuation of your sourcecode program. ' VBScript: IP_Array.vbs ' Written by: Cornelius Harrell ' Date: 06/28/2015 ' Class: COMP230 ' Professor: Mir Daryabigi ' =================================== ' This initialize a 2-dimension array ' of IP Address. The first index +100 ' is the room# and the second index+1 ' is the computer# in the room. Dim ipAddress (5,3) ipAddress(0,0)="192.168.10.11" ipAddress(0,1)="192.168.10.12" ipAddress(0,2)="192.168.10.13" ipAddress(0,3)="192.168.10.14" ipAddress(1,0)="192.168.10.19" ipAddress(1,1)="192.168.10.20" ipAddress(1,2)="192.168.10.21" ipAddress(1,3)="192.168.10.22" ipAddress(2,0)="192.168.10.27" ipAddress(2,1)="192.168.10.28" ipAddress(2,2)="192.168.10.29" ipAddress(2,3)="192.168.10.30" ipAddress(3,0)="192.168.10.35" ipAddress(3,1)="192.168.10.36" ipAddress(3,2)="192.168.10.37" ipAddress(3,3)="192.168.10.38" ipAddress(4,0)="192.168.10.43" ipAddress(4,1)="192.168.10.44" ipAddress(4,2)="192.168.10.45" ipAddress(4,3)="192.168.10.46" ipAddress(5,0)="192.168.10.51" ipAddress(5,1)="192.168.10.52" pAddress(5,2)="192.168.10.53" ipAddress(5,3)="192.168.10.54" ' Define program variables roomStr="" compStr="" roomNum=0 compNum=0 ans = "" Do ......

Words: 1270 - Pages: 6

Free Essay

Devry Comp 129 Week 1 Quiz – Latest

...DeVrY COMP 129 Week 1 Quiz – LATEST IF You Want To Purchase A+ Work Then Click The Link Below , Instant Download http://www.hwspeed.com/DeVrY-COMP-129-Week-1-Quiz-LATEST-095090404.htm?categoryId=-1 If You Face Any Problem E- Mail Us At JOHNMATE1122@Gmail.Com Week 1(Quiz) Grading Summary These are the automatically computed results of your exam. Grades for essay questions, and comments from your instructor, are in the "Details" section below. Date Taken: 5/9/2015 Time Spent: 11 min , 17 secs Points Received: 9 / 10 (90%) Question Type: # Of Questions: # Correct: Multiple Choice 6 5 Many Multiple Choice 1 1 Grade Details - All Questions Question 1. Question : (Syllabus Question) What materials are required for this course? Select all that apply. Student Answer: A+ Guide to Managing and Maintaining Your PC, 6th edition Complete CompTIA A+ Guide to PCs, 6th Edition A+ Essentials TestOut Software with Activation code A+ IT Technician TestOut Software with Activation code LabSim Comp 129 Bundle software product activation code Points Received: 1 of 1 Comments: Question 2. Question : (Syllabus Question) You will need your Lab Simulation Software for your lab assignment in what week of the course? Student Answer: Weeks 6 and 7 only Starting in Week 1 and throughout the term so buy it early! Weeks 4, 5, and 6 only What LabSim software? We were not......

Words: 517 - Pages: 3

Premium Essay

Comp 230

...following. Introduction Description of program (script) Source Code with detailed comments Source Code should contain a minimum 5 out of 6 topics learned during this session. Explain the output along with screenshots of the output Conclusion All DeVry University policies are in effect, including the plagiarism policy. Use each week’s lecture, reading assignments, labs, and discussions as guidance and supporting information for your proposal. APA formatting is required for your proposal. The proposal shall be your individual and original work. This is not a team project. The proposal is intended to be a professional document. - See more at: http://www.topnotchpapers.com/comp-230/#sthash.2w62xZSC.dpuf...

Words: 343 - Pages: 2

Premium Essay

English Comp Final

...Lizbeth Gerena Final Project- My Writing Portfolio English Comp. 101 Prof. Cody June 27, 2015 I have decided to enter writing assignments 1, 2, and 5 into my writing portfolio as a part of my final project. I chose these three specific essays because each essay relates to me in a unique way regarding my life experiences. I feel that I capture my audience’s attention in such a personal way that they desire to hear more. My personal writing comes from a vantage point about a particular subject in an expressive aim. The content of my writings are equipped for people who are more advanced in life; compared to those who haven’t had experience to support a family, finances, or particular employment. My writings apply to the expressive aim of writing and have comparable lacks. In my future writing processes, I plan to sum up my essays with less redundancy and more content. I learned to touch on the major points of my writings without presenting new information into my conclusions. While reviewing my essays, I realized that I continued to repeat the same errors but made the effort to not double speak when creating my words and thoughts. Given the corrections, I was able to make improvements to my writings so that they will have a continuous, but steady flow avoiding lessening the value of the subject at hand. Throughout the review process of my writing assignment 1, I was able to learn how to conduct APA Style within in my......

Words: 2455 - Pages: 10

Free Essay

Comp

...Software and deployment optimization Algorithmic efficiency Main article: Algorithmic efficiency Further information: Analysis of algorithms The efficiency of algorithms has an impact on the amount of computer resources required for any given computing function and there are many efficiency trade-offs in writing programs. Algorithm changes, such as switching from a slow (e.g. linear) search algorithm to a fast (e.g. hashed or indexed) search algorithm can reduce resource usage for a given task from substantial to close to zero. A study by a physicist at Harvard, estimated that the average Google search released 7 grams of carbon dioxide (CO₂).[25] However, Google disputes this figure, arguing instead that a typical search produces only 0.2 grams of CO₂.[26] Resource allocation Main article: Resource allocation Algorithms can also be used to route data to data centers where electricity is less expensive. Researchers from MIT, Carnegie Mellon University, and Akamai have tested an energy allocation algorithm that successfully routes traffic to the location with the cheapest energy costs. The researchers project up to a 40 percent savings on energy costs if their proposed algorithm were to be deployed. However, this approach does not actually reduce the amount of energy being used; it reduces only the cost to the company using it. Nonetheless, a similar strategy could be used to direct traffic to rely on energy that is produced in a more environmentally friendly or......

Words: 370 - Pages: 2

Premium Essay

Comp 328 Expert Tutor/ Indigohelp

...COMP 328 Entire Course (DEVRY) For more classes visit www.indigohelp.com COMP 328 Week 1 lab 1 (DEVRY) COMP 328 Week 2 lab 2 (DEVRY) COMP 328 Week 3 lab 3 (DEVRY) COMP 328 Week 4 lab 4 (DEVRY) COMP 328 Week 5 lab 5 (DEVRY) COMP 328 Week 6 lab 6 (DEVRY) COMP 328 All ilabs weeks 1-6 Devry University COMP 328 Final Exam (DEVRY) ………………………………………………… COMP 328 Final Guide (DEVRY) For more classes visit www.indigohelp.com COMP 328 Java Exam Select the best answer. 1: The .class extension on a file means that the file a.contains Java source code. b.contains HTML. c.is produced by the Java compiler (javac). d.contains a machine specific executable image. 2: Which command compiles the Java source code file Welcome.java? a.cd Welcome.java b.javac Welcome.java c.java Welcome.java d.compile Welcome.java 3: A(n) ________ enables a program to read data from the user. a.printf b.import declaration c.Scanner d.main routine 4: Which of the following is a Scanner method? a.nextLine b.nextText c.nextWord d.readNext 5: Every Java application is required to have a. at least one public static method. b.at least one data member. c. a String variable which holds the name of the application. d.a content pane and several GUI components. 6: Which of the following statements about creating arrays and initializing their elements is false? a. The new keyword should be used to create an array. b. When an array is created,......

Words: 624 - Pages: 3