1. Unit 5 Programming Portfolio 1
Student number: 5904068 30.10.2015
Module: 210СCT
Programming Portfolio 1.
Contents
Task 1: Harmonic Series..........................................................3
Task 2..........................................................................................3–4
Task 3: Range Search............................................................4–5
Task 4: Node Delete Function..................................................5
Appendix: Full C++ code...................................................................6–7
Task 1: Harmonic Series
a) def harmonic(n): ... Show more content on Helpwriting.net ...
Input: array arr, int size, int key
Ouput: int position , if found, else –1 def: binary_search(arr, key, l, u)
Where l = 0, r = size – 1 If ( u > l) return –1; mid = (l + u)/2; if (arr[mid] > value) return
binary_search(arr, key, l, mid – 1); else if (arr[mid] < value) return binary_search(arr, value, mid +
1, u); else return mid;
The run–time complexity of this algorithm is O(log(n)).
Task 4:Node Delete Function
void NodeDeleteFunctoin(int l)
{
Node* temp = head; //Point that we need a beginning of the list
Node* prev = NULL; //Previous element is empty
Node* next = NULL; //Next element is empty while (temp != NULL) { if (temp–>value == l) {
//Delete a first node but there are others if (temp == head) { //Point that we need a beginning head =
temp–>next; //We shift the starting of the beginning of the next element if (head != NULL) {head–
2. >prev = NULL;}
}
else if (temp == tail) //Point that we need a tail
{
prev = temp–>prev; //Move the tail in the back prev–>next = NULL; //Point that there is nothing
before the tail tail = prev; //Remember the address of the removable
... Get more on HelpWriting.net ...
3.
4. What Is The Pseudocode To Compute 2D Convex Hulls?
This is the pseudocode for the algorithm I implemented in my program to compute 2D convex hulls.
I chose this incremental algorithm, which adds the points one by one and updates the solution after
each point added. We must ensure that every turn (walking from vertex to vertex is a turn) is a right
turn, so we take the last 3 points at the current point of the solution and determine if they make a
right turn. Using the last 3 points p0, p1, and p2, we can determine if they make a right or left turn
by calculating the cross product of the two vectors p0–p1 and p2–p1. Since it's a 2D x–y plane, the z
coordinate of the cross product is the only nonzero value. If this component is positive, the second
vector is to the left of the first, and if ... Show more content on Helpwriting.net ...
In this case (1, 1) and (3,3) are part of the convex hull, but not (2,2) since it's along the same line
and is in the middle. In this case, the values (1,1), (2,1), and (3,1) all have the same x–coordinate
which can cause problems in the algorithm if not handled correctly. A general way to order the
convex hull points is simply by x–coordinate, so if two points shared that x–coordinate, the ordering
system is defined poorly. This was fixed by ordering the points in a lexicographical way, such that if
two points have the same x–coordinate, they will be further sorted by the y coordinate. I've done this
type of sorting in my code. This is an example with 20 points with the x and y coordinates ranging
from 0–20. As you can see from the graph, the convex hull is correctly computed and the output is
all the vertices of the hull in a clockwise ordering. This is another regular case example with 10
points, with the x and y coordinates ranging from 0–10. As you can see from the graph to the right,
the convex hull is correctly computed with exactly 5 vertices, just like the algorithm's output with
the points listed in a clockwise fashion. I've tested my algorithm with various numbers of points
(input) to analyze the performance. For inputs with less than 100,000 points, the algorithm only
takes about a second to complete. The algorithm starts taking 30 seconds around an input of
1,000,000 points. For
... Get more on HelpWriting.net ...
5.
6. Week 5 Assignments New
PT1420 – Unit 5 Homework and Lab Assignment Unit 5 Assignment 1: Homework 1.) Design an
if–then statement that assigns 20 to the variable y and assigns 40 to the variable z if the variable x is
greater than 100. (Simple if statement) If x > 100 then Y=20 Z=40 End if 2.) Design an if–then
statement that assigns 0 to the variable b and assigns 1 to the variable c if variable a is less than 10.
(Simple if statement) 3.) Design an if–then–else statement that assigns 0 to variable b if variable a is
less than 10, otherwise it should assign 99 to variable b. (Alternative if statement) If a < 10 then B =
0 Else B = 99 End f 4.) The symbols >, <, and == are all Relational operators. 5.) ... Show more
content on Helpwriting.net ...
Additionally, if their sales
... Get more on HelpWriting.net ...
7.
8. Sdlc : System Development Life Cycle
SDLC: System Development Life Cycle
Definition: The System Development Life Cycle describes functions and activities that system
developers perform typically, without considering how those functions and activities actually used
in that particular methodology. SDLC denotes a set of general categories that show the major steps,
of system development project. These are different phases in SDLC which each of them can be used
to denote a step of the process that is followed in the development of certain system. These phases
remain same at all the time for different systems as they are the basic steps.
Phases of SDLC:
There are five different phases. They are
1. System Planning
2. System Analysis
3. System Design
4. System Implementation
5. System Operation and Support
Each of these phases are explained below.
Example: Creation of a Robot. 1. System Planning:
The goal of stage 1 is to direct a preparatory analysis, propose elective solutions, portray costs and
advantages and present a preparatory arrangement with proposals. Conduct the preparatory analysis:
in this stride, you have to discover the organization 's destinations and the nature and extent of the
issue under study. Regardless of the fact that an issue alludes just to a little fragment of the
organization itself then you have to discover what the goals of the organization itself are. At that
point you have to perceive how the issue being concentrated on fits in with them.
Propose elective solutions: In diving into
... Get more on HelpWriting.net ...
9.
10. Eng 1101 Unit 3 Programming Assignment
Programming Assignment. Ola Fatai, Ayanleke. CS 1101 Programming Assignment unit 3. The
University of the People (UoPeople), AY 2016 – 2017. April 20, 2017. Hello, Peers, and Assessors
of this Programming Assignment Developing a Simple Calculator with Python In this assignment, I
will be explaining very briefly some few concepts in order for you or someone else to understand
the steps, the graphics and the written methodologies that I will be engaging in order to tackle this
Programming Assignment task. In addition, I will be demonstrating how I arrived as my Choice and
Solution. The Processes Decomposing the task It is very important for us to understand in the first
place, the task to accomplish. Every information we need are in ... Show more content on
Helpwriting.net ...
If I should just do the programming, I will choose to make use of Pseudocodes. Nevertheless, I love
coding, and I want you to, visually, understand what is going to be done. In addition, I want you to
see the result. Therefore, in this assignment, I will be making use of both the Flowchart and
Pseudocode Conceptual models. Thereafter I will produce the Calculator and you can even use it.
The Flowchart Conceptual model The above Flowchart is hard work and time consuming for a
programmer that wanted to do the job as fast as possible. He would rather write a Pseudocode
model. This Flowchart concept is best practice if the programmer wants to do presentation and
demonstration of the way his/her program will flow. The Rectangular shapes in Black represent the
internal job of the Program at a particular section or point The Parallelogram Shapes in light Blue
represent interaction on input or output entered by the users or fed by the program as a display. The
small circular shapes in dark Blue represent a joint in Model. Because of the space Flowchart model
consumes, it is normal to join one end of a Flow to the starting point of another. The diamond
shapes are somewhat a Yes or No decision qualifier. It can also represent a looping point. The oval–
like shape rectangle at the beginning and end of the flowchart represent what the terminals. Just as
the names imply
... Get more on HelpWriting.net ...
13. Details
Objectives 4.1 Demonstrate the iteration control structure. 4.2 Design complex program algorithms
using the three basic control structures. Read Ch. 5 of Prelude to Programming. Design a program
that models the worm's behavior in the following 01/20/12 30
Due
Points
Reading CheckPoint
Course Design Guide IT/210 Version 5
4
Iteration Control Structure
scenario: A worm is moving toward an apple. Each time it moves, the worm cuts the distance
between itself and the apple by its own body length until the worm is close enough to enter the
apple. The worm can enter the
... Get more on HelpWriting.net ...
14.
15. Essay about Chapter 6 solutions
Programming Logic and Design, 6e Solutions 6–1 Programming Logic and Design, 6th Edition
Chapter 6 Exercises 1. a. Design the logic for a program that allows a user to enter 10 numbers, then
displays them in the reverse order of their entry. Answer: A sample solution follows Flowchart:
Pseudocode: start Declarations num index num SIZE = 10 num numbers[SIZE] = 0,0,0,0,0,0,0,0,0,0
getReady() Programming Logic and Design, 6e Solutions 6–2 while index < SIZE getNumbers()
endwhile finishUp() stop getReady() index = 0 return getNumbers() output "Enter a number for
position ", index input numbers[index] index = index + 1 return finishUp() output "The numbers in
reverse order are: " while index > ... Show more content on Helpwriting.net ...
a. Daily Life Magazine wants an analysis of the demographic characteristics of its readers. The
Marketing department has collected reader survey records containing the age, gender, marital status,
and annual income of readers. Design an application
... Get more on HelpWriting.net ...
16.
17. Cis 115 Week 1 Lab
Week 1 iLab for Rebecca L Bean
––––––––––––––––––––––––––––––––––––––––––––––––– TCO 1: Given a simple problem,
design and desk–check a solution that is expressed in terms of pseudocode, flowchart, and/or input–
process–output (IPO) diagrams. iLab This exercise will cover the steps used to create a solution.
You will use variable lists, IPO charts, pseudocode, flowcharts, and desk–checking. Rubric
Point distribution for this activity: Lab Activity | Document | Points possible | Points received | Part
1 | 10 | | Part 2 | 10 | | Part 3 | 10 | | Part 4 | 10 | | Part 5 | 10 | | Total points | 50 | |
Problem
You have an idea for a restaurant tip calculator app that you want to develop for use ... Show more
content on Helpwriting.net ...
It would not be "wrong" to do so, but these are not usually helpful as a design document. A
programmer looking at the IPO table will primarily be concerned with outputs that involve variable
expressions. (2) Your instructor does not require you to express the full logic details of your
processes in the Process section of the IPO table. A descriptive, unambiguous phrase will suffice. A
programmer using this as a guide can easily look at your flowchart, pseudocode, or actual code to
see the details of a calculation. If a calculation is particularly complex or hard to follow, you may
add some additional brief, explanatory comments. (3) Do not forget that input variables may also
appear as output variables as well, as salesPrice does in this exampe. Be sure to list the variable as
both an input AND output in this situation
(3) Pseudocode
Describe your solution using pseudocode. Use the same valid variable names you selected in Step 1.
Start decimal CheckAmount output "check amount? " input CheckAmount decimal TaxRate output
"Tax Rate?" input TaxRate decimal TipPercentage output "Tip Percentage input TipPercentage
decimal TaxAmount
Let TaxAmount=CheckAmout*TaxRate decimal TipAmount=CheckAmount*TipPercentage
decimal TotalAmount=CheckAmount+TipAmount+TaxAmount output "Check amount = " &
CheckAmount output "Tax amount = " & TaxAmount output "Tip amount = " &
TipAmount output "Total amount = " &
... Get more on HelpWriting.net ...
18.
19. Cis 115 Week 3 Exercise Solution
Week 3 Activity–Calculate Overtime Pay
–––––––––––––––––––––––––––––––––––––––––––––––––
TCO 3–Given a simple problem, design and desk–check a solution algorithm requiring a modular
design that is expressed in terms of pseudocode or program notes, input–process–output (IPO)
analysis, and flow chart.
–––––––––––––––––––––––––––––––––––––––––––––––––
TCO 4–Given a simple problem that requires one or more decisions, create a working solution that
uses decisions with logical and relational expressions.
–––––––––––––––––––––––––––––––––––––––––––––––––
TCO 8–Given a more complex problem, develop a complete solution that includes a comprehensive
statement of the problem, complete program design, and program documentation. ... Show more
content on Helpwriting.net ...
Game Seating Charges | Document | Points possible | Points received | Variable list | 4 | | IPO chart |
4 | | Flowchart | 4 | | Pseudocode | 4 | | Working program | 4 | | Total points | 20 | |
1) Variable List
List all variables you will use (use valid variable names). Indicate whether the data type is string,
integer, or double, and so on.
Constant MARRIED_RATE .15 Decimal
Constant SINGLE_RATE .22 Decimal
Constant DIVORCED_RATE .23 Decimal
Constant WIDOWED_RATE .13 Decimal hourlyRate Decimal hoursWorked Decimal regularPay
Decimal overtimePay Decimal maritalStatus Character grossPay Decimal taxRate Decimal
taxAmount Decimal netPay Decimal
2) IPO Chart
List the inputs, any processes/calculations, and outputs. Use the same valid variable names you used
in Step 1.
Inputs | Process (calculations) | Outputs | hourlyRatehoursWorkedmaritalStatus | if maritalStatus =
'M' taxRate = MARRIED_RATEif maritalStatus = 'S' taxRate = SINGLE_RATEif maritalStatus =
'D' taxRate = DIVORCED_RATEif maritalStatus = 'W' taxRate = WIDOWED_RATEIf
hoursWorked <= 40 grossPay = hoursWorked * hourlyRateElse regularPay = (40 * hourlyRate)
overtimePay = ((hoursWorked–40) * (hourlyRate * 1.5)) grossPay = regularPay +
20. overtimePaytaxAmount = grossPay * taxRatenetPay = grossPay – taxAmount | If hoursWorked
<= 40 grossPay netPayElse
... Get more on HelpWriting.net ...
21.
22. What Is a Flow Chart?
By Nicholas Hebb Flow Chart Defined A flow chart is a graphical or symbolic representation of a
process. Each step in the process is represented by a different symbol and contains a short
description of the process step. The flow chart symbols are linked together with arrows showing the
process flow direction. Common Flowchart Symbols Different flow chart symbols have different
meanings. The most common flow chart symbols are: * Terminator: An oval flow chart shape
indicating the start or end of the process. * Process: A rectangular flow chart shape indicating a
normal process flow step. * Decision: A diamond flow chart shape indication a branch in the process
flow. * Connector: A small, labeled, circular flow chart shape used ... Show more content on
Helpwriting.net ...
Business Process Model Notation (BPMN) is a more technical type of diagram and should not be
used synonymously with flow chart. Lastly, Activity Diagrams, which are used in UML modeling,
are basically just flow charts, but they are used in conjunction with other types of diagrams that
depict software design and usage. Pseudocode (pronounced SOO–doh–kohd) is a detailed yet
readable description of what a computer program or algorithm must do, expressed in a formally–
styled natural language rather than in a programming language. Pseudocode is sometimes used as a
detailed step in the process of developing a program. It allows designers or lead programmers to
express the design in great detail and provides programmers a detailed template for the next step of
writing code in a specific programming language. Because pseudocode is detailed yet readable, it
can be inspected by the team of designers and programmers as a way to ensure that actual
programming is likely to match design specifications. Catching errors at the pseudocode stage is less
costly than catching them later in the development process. Once the pseudocode is accepted, it is
rewritten using the vocabulary and syntax of a programming language. Pseudocode is sometimes
used in conjunction with computer–aided software engineering–based methodologies. It is possible
to write programs that will convert a given pseudocode language into a given programming
language. RELATED GLOSSARY
... Get more on HelpWriting.net ...
23.
24. Programming
Programming Programming Logic and Design, 6th Edition Chapter 3 Exercises 1. In Figure 3–10
the process of buying and planting flowers in the spring was shown using the same structures as the
generic example in Figure 3–9. Describe some other process with which you are familiar using
exactly the same logic. Answer: Student answers will vary widely. They should come up with
processes that fit the generic logic shown in Figure 3–9. Some examples could include: making a
dentist appointment or registering for a class. Pseudocode for each follows. if it's time for your
annual teeth cleaning call the dentist for an appointment tomorrow while the day and time you want
isn't available if another time the same day is ... Show more content on Helpwriting.net ...
a two–inch by one–inch rectangle Pseudocode: start lower the pen to a piece of paper move one inch
along a straight line move one inch along a straight line turn 90 degrees to the right move one inch
along a straight line turn 90 degrees to the right move one inch along a straight line move one inch
along a straight line turn 90 degrees to the right move one inch along a straight line raise the pen
from the paper stop or start do A do C do C do D do C do D do C do C do D do C do B stop
Flowchart: [pic] c. a string of three beads Pseudocode: start lower the pen to a piece of paper draw a
circle that is one–inch in
... Get more on HelpWriting.net ...
25.
26. Final Reflection
I can honestly say that I am glad I made the decision to return to school and finish my degree, more
specifically, I am glad I changed my degree program to Mechatronics. I believe a bachelor's degree
in Mechatronics can allow me to become more marketable in a realm of sectors and industries and I
can learn more about the broad spectrum of engineering. A bachelor's in Mechatronics is a like
obtaining associate's in Electronics, Electrical, and Mechanical Engineering along with an
associate's in Computer Programming. I am on my last week of Logic and Design and must say I am
somewhat upset that it is only five weeks long; I would not have guessed I would like the class as
much as I did. I had to complete a course project, broken into 5 sections which covered the major
requirements of the class. I learned a lot from doing the project, found my weaknesses ... Show more
content on Helpwriting.net ...
A loop's purpose is to make computer programming efficient by eliminating to write code for every
result of the decision within the program. Looping allows you to account for more than one action
that will or may repeat itself. In week three is when I realized that knowing how to show a looping
within a flowchart was my weakness. My first flowchart I did not know if I should use a loop if the
decision "Is the PartNumber valid" answer was a "No". I completely confused if I should loop it
back to Search or PartsResources. The main reason for the confusion was my job became real
demanding. The company is forcing the employees to exhaust all of their vacation time by the end
the year. So a lot there has been a major increase of people out on leave and a shortage of
technicians. As a result, I have been working overtime on my usually days off, days where I do most
of my studying for class. Needless to say I was not able to read much on looping. Once I did I
realize that looping to PartsResources was the best course to
... Get more on HelpWriting.net ...
27.
28. Study Of Data Mining Algorithm For Cloud Computing
ABSTRACT
This technical paper consists of the study of data mining algorithm in cloud computing. Cloud
Computing is an environment created in user's machine from online application stored in clouds and
run through web browser. Therefore, it is essential to manage user's data efficiently. Data mining
also known as knowledge discovery is the process of analyzing data from different perspectives and
summarizing it into useful information where the information can be used to increase revenue, cut
costs of implementation and maintenances, or all. Data mining software and/or algorithms is one of
a number of analytical tools for analyzing data. It allows users to analyze data from many different
dimensions or angles, categorize it, and summarize the relationships identified. Technically, data
mining is the process of finding correlations or patterns among dozens of fields in large relational
databases. The process of mining data can be done in many ways; this paper discusses the
theoretical study of two algorithms K–means and Apriori, their explanation using flow chart and
pseudo code, and comparison for time and space complexity of the two for the dataset of an "Online
Retail Shop".
General Terms
Data Mining, Algorithms et. al.
Keywords
Clusters, data sets, item, centroid, distance, converge, frequent item sets, candidates.
1. INTRODUCTION
Data Mining in Cloud Computing applications is data retrieving from huge collection of data sets.
The process of converting a huge set of data
... Get more on HelpWriting.net ...
29.
30. Cs Programming Chapter 1
Chapter 1: An Overview of Computers and Programming
TRUE/FALSE
1. Every programming language has rules governing its word usage and punctuation.
ANS: T PTS: 1
2. Professional computer programmers write programs to satisfy their own needs.
ANS: F PTS: 1
3. The heart of the programming process lies in planning the program's logic.
ANS: T PTS: 1
4. Once a program is completed, it is ready for the organization to use.
ANS: F PTS: 1
5. Alan Turing is often regarded as the first programmer.
ANS: F PTS: 1
6. Charles Babbage incorporated vacuum tube technology in the Analytical Engine.
ANS: F
7. MS–DOS is the kernel of the operating system residing in the Macintosh.
ANS: F
8. The World Wide Web is identical to the Internet. ... Show more content on Helpwriting.net ...
Permanent storage devices are nonvolatile–that is, their contents are persistent and are retained even
when power is lost.
31. PTS: 1 TOP: Critical Thinking
2. Describe the function of a compiler and interpreter.
ANS:
Each programming language uses a piece of software, called a compiler or an interpreter, to translate
your program code into machine language. Machine language is also called binary language, and is
represented as a series of 0s and 1s. The compiler or interpreter that translates your code tells you if
any programming language component has been used incorrectly. Syntax errors are relatively easy
to locate and correct because the compiler or interpreter you use highlights every syntax error. If you
write a computer program using a language such as C++ but spell one of its words incorrectly or
reverse the proper order of two words, the software lets you know that it found a mistake by
displaying an error message as soon as you try to translate the program.
PTS: 1 TOP: Critical Thinking
3. What is a variable and how is it used in a program?
ANS:
Suppose the location myNumber is a variable. A variable is a named memory location whose value
can vary–for example, the value of myNumber might be 3 when the program is used for the first
time and 45 when it is used the next time.
PTS: 1 TOP: Critical Thinking
4. What is involved in putting a program into production?
ANS:
Once the program is tested
... Get more on HelpWriting.net ...
32.
33. Essay On Splitup Function
This splitup function helps in coming out of the problem associated with DBSCAN as it aims to
partition highly uniform datasets, which may be incorrectly identified as a single cluster if
DBSCAN is called with a reasonable large s–reachability value (Usually the density based algorithm
forms relatively less clusters based on the density even when there is a need to further divide the
clusters). This splitup function is also useful for some datasets that present specific challenges for
the density based algorithm such as those with large discrepancies in density. When there is a
situation which leads into a dilemma in which clusters to split, this function takes the strength of the
cluster as well as the distance between the new clusters ... Show more content on Helpwriting.net ...
The initial centroid for the "top" cluster is the data point far away from the original cluster's
centroid. To find the initial location of the centroid of the "bottom" cluster, we draw a vector starting
at the original cluster's centroid and ending at the top cluster's centroid. This vector is then set to
point in the opposite direction of the "top" centroid. The endpoint of this mirrored vector is used as
the initial centroid for the "bottom" cluster. This entire process of splitting the cluster results in the
initial centroids for "top" and "bottom" being as far away from each other as possible. Figure 3. A
pseudocode of the mirroring function used in the weighted split function of our CluDataSE. The
complete dataset points of the original cluster are then assigned to either the "top" or "bottom"
clusters, depending on which centroid is closer. Once all the data points have been assigned to some
cluster, the "top" and "bottom" clusters are then checked to have at least minimum points of data
points. If either the "top" or the "bottom" cluster contains less than minimum points of data points,
then the split is considered invalid. In this case, the original cluster remains the same without further
classification, and, the "top" and "bottom" clusters formed using splitup function are discarded. If a
split has occurred, the two new clusters, "top" and "bottom" are stored in a list of new
... Get more on HelpWriting.net ...
34.
35. Homework Chapter 3 Essay
Multiple Choice
1) Module
2) Divide and Conquer
3) Header
4) Call
5) Return
6) Top–down Design
7) Flowchart
8) Local Variable
9) Scope
10) Argument
11) Parameter
12) By Value
13) By Reference
14) Global variable
15) Global
True or False
1) False
2) True
3) True
4) False
5) True
6) False
7) False
8) True
9) True
10) False
11) True
12) False
Short Answers
1) You can call the module several times instead of writing it out each time.
2) The header is the starting point and the body is a list of statements that belong to the module.
3) It will return back to its previous point in the program.
36. 4) A local variable is declared inside the module only. Only the statements inside the module can
access it.
5) A ... Show more content on Helpwriting.net ...
Module main() call salesTax
End Module
Module salesTax(Integer Value)
Declare Integer tax
Set tax = value * 0.02 * 0.04
Display tax
End Module
3. How Much Insurance? Many financial experts advise that property owners should insure their
homes or buildings for at least 80 percent of the amount it would cost to replace the structure.
Design a modular program that asks the user to enter the replacement cost of a building and then
displays the minimum amount of insurance he or she should buy for the property.
Module main()
Call amount
Display cost
End Module
Module amount
Declare Integer cost
Display "Enter price"
Set cost = value * .80
End Module
4. Automobile Costs Design a modular program that asks the user to enter the monthly costs for the
fol–lowing expenses incurred from operating his or her automobile: loan payment, in–surance, gas,
oil, tires, and maintenance. The program should then display the total monthly cost of these
expenses, and the total annual cost of these expenses.
Module main()
Declare Integer number
Display " Enter loan"
Input loan
Declare Integer number
Display " Enter insurance"
Input insurance
Declare Integer number
Display " Enter gas"
Input gas
Declare Integer number
Display " Enter oil"
Input oil
37. Declare Integer number
Display " Enter tires"
Input tires
Declare Integer number
Display " Enter maintenance"
Input maintenance
Call totalCost(
... Get more on HelpWriting.net ...
38.
39. What Is The Coding Interview In Pseudocode?
Coding Interview in Pseudocode Pseudocode is when a programmer puts what he wants his code to
do in the simplest for term for anyone to understand. The process of programming can be
complicated and such a tool can be used to make future additions to the code simpler. While maybe
not as truthfully complicated getting a job as a programmer probably can feel like a chore. One
needs multiple skills in order to pass the exam that is the coding interview. In Gayle Laakmann
Mcdowells book "Cracking the Coding Interview," Mcdowell informs readers about what an
interview would be like and how multiple companies want to see multiple things. Medium.com
article "Coding Interview for Dummies" puts heavy emphasis on practice of coding and especially
... Get more on HelpWriting.net ...
40.
41. Frequent Shopper Program Part Iii Essay
Individual Assignment: Frequent Shopper Program Part III
BSA/385
University of Phoenix
Table of Contents
1. Purpose .......................................................................................3
2. Referenced Documents ...............................................................3
3. Management ..................................................................................3
3.1 Organization ..............................................................................3
3.2 Tasks .......................................................................................
3.3 Responsibilities ..........................................................................
3.4 QA Estimated Resources ...............................................................
4. Documentation .................................................................................
4.1 Purpose ......................................................................................
4.2 Minimum Documentation Requirements ...........................................
4.3 Other ........................................................................................
5. Standards ...........................................................................................
5.1 Purpose .......................................................................................
5.2 Content ... Show more content on Helpwriting.net ...
The QA Organization team is responsible for all non–unit testing. It is the project leader's
responsibility to ensure all inspections and unit tests are performed. The schedule for these will be
placed in the SPMP.
3.3 QA Estimated Resources
The estimated resources required:
One engineer who will work half time for the 1st third of the frequent shopper program project
One engineer who will work full time for the 2nd third of the frequent shopper program project
One engineer who will work full time for the last third of the frequent shopper program project
An extra engineer who will work half time for the last third of the frequent shopper program project
(University of Phoenix, 2001).
4. Documentation
4.1 Purpose
The purpose of this section is to identify the documentation that will be used for ensuring quality.
4.2 Minimum Documentation Requirements
The following documents will be produced for this project:
Software Quality Assurance Plan (SQAP)
42. Software Configuration Management Plan (SCMP)
Software Project Management Plan (SPMP)
Software Requirements Specifications (SRS)
Software Design Document (SDD)
Software Test Documentation (STD)
Software Verification and Validation Plan (SVVP)
Maintenance Plan
4.3 Other
5. Standards, Practices, & Metrics
5.1 Purpose
The purpose of this section is to provide a description of the standards, practices, conventions, and
... Get more on HelpWriting.net ...
43.
44. Essay on Cmis 102 Assignment 1
CMIS102 Homework Assignment 1
Student Name: Ryan J. Rath
Class/Section: 6383
Professor Name: Anthony Baird
Assignment due date: 1/27/2013
1. Using a similar approach as example 2.3 (textbook page 75): "Finding the Sale Price of Items in a
Department Store", provide your analysis for the following problem statement:
You need to write a program that will calculate the number of square feet (living space) in a 4–room
house. Your analysis should be clearly written and demonstrate your thought process and steps used
to analyze the problem. Be sure to include what is the required output? What is the necessary input
and how you will obtain the required output from the given input? Also, include your variable
names and ... Show more content on Helpwriting.net ...
Variables * Length of Room 1 = length1 (Float) – Length of Room 4 = length4 (Float) * Width of
Room 1 = width1 (Float) – Width of Room 4 = width4 (Float) * Length of Room 2 = length2 (Float)
* Width of Room 2 = width2 (Float) * Length of Room 3 = length3 (Float) * Width of Room3 =
width3 (Float)
Additional Variables
Area = length*width
Area1 = length1 * width1 (float variable)
Area2 = length2 * width2 (float variable)
Area3 = length3 * width3 (float variable)
Area4 = length4 * width4 (float variable) Area1 + Area2 + Area3 + Area4=totalArea (float variable)
Program Module Components
Fundamental Tasks * Input the data. * Input variables length1, width1, length2, width2, length3,
width3, length4, width4 * Perform Calculations * totalArea=area1+area2+area3+area4 where: *
area1=length1*width1 * area2=length2*width2 * area3=length3*width3 * area4=length4*width4 *
Output Results * Display the "totalArea" of the House (in square feet)
Program Design
45. Declare the variables
Declare totalArea As Float Declare length1 As Float Declare width1 As Float Declare length2 As
Float Declare width2 As Float Declare length3 As Float Declare width3 As Float Declare length4 As
Float Declare width4 As Float Write "This Program Will Calculate The Area In Square Feet Of A
Four Room House"
Call Input Data module
... Get more on HelpWriting.net ...
46.
47. Pt1420 Unit 2 Programming Problem Analysis
In order to solve the programming problem that we are facing, we need to define the flow of the
program and the actions that the program must take. Attempting to write a successful program
without considering how to solve the problem and how the program must be created makes the task
very difficult for the programmer. This is where flowcharts or pseudocode will help us build a
conceptual model of how a program will work before we get into the complexity of the
programming language. A flowchart is a diagram that depicts the "flow" of a program. It contains
symbols that represent each step in the program (Pearson Education, 2012). It has 4 general
structures: – Sequence Structure: A sequence structure is a series of actions or steps, performed ...
Show more content on Helpwriting.net ...
It requires less time and space to develop, and we can write it in our own way as there are no fixed
rules. The lack of standards may be the main disadvantage of pseudocode. Pseudocode is by nature
unstructured, so the reader may not be able to see the logic in a step. However, flowchart is capable
of showing the overall flow of instructions from one process to another and even files and devices
involved in the process. We can see the individual processes just at a glance (like the number of
decision making operations). In terms of a conceptual model, it is easier to show iteration (loops)
and conditional statements using flowchart, which in case of pseudocode, can easily be as complex
as the program code. Furthermore, flowcharts follow a standard format which makes it easy to
explain to other programmers (Heathcote, 2000). If a problem is a really complicated and complex, I
think flowcharts should be used first because they are graphical and are much better at expressing
meta–considerations like showing the main line of execution as opposed to branches. Pseudocode
can then be used
... Get more on HelpWriting.net ...
48.
49. Introduction to Computers and Problem Solving
Chapter 1 An Introduction to Computers and Problem Solving
Section 1.1 An Introduction to Computers
1.
Visual Basic is considered to be a
(A)
(B)
(C)
(D)
2.
The person who actually runs a computer program is called a
(A)
(B)
(C)
(D)
(E)
3.
user. customer. client. tester. runner.
A
A collection of lines of instruction is called a(n)
(A)
(B)
(C)
(D)
4.
first–generation language. package. higher–level language. machine language.
C
50. program. algorithm. system. programmer. A
Which of the following is NOT considered to be one of the three basic features of a program? (A)
(B)
(C)
(D)
input processing output store D
5.
Software refers to the people who work with computer ... Show more content on Helpwriting.net ...
(A)
(B)
(C)
(D)
(E)
input/output annotation decision start/stop process
D
12. A graphical depiction of the logical steps to carry out a task and show how the steps relate to
each other is called a(n)
(A)
(B)
(C)
(D)
flowchart. pseudocode. algorithms. hierarchy chart.
A
13. A flowchart is an arrangement of geometric shapes connected by arrows. (T/F)
T
14. A top–down chart is the same thing as a flowchart. (T/F)
F
15. Pseudocode and flowcharts are two different tools or methods used in planning a solution to a
problem. (T/F)
T
16. Suppose your supervisor at work wants you to write a program to accomplish a task that he
has specified. However, he has not let you know which computer language to use. It is still possible
to design the program in pseudocode. (T/F)
T
17. During the design phase, all errors will be caught by Visual Basic's smart editor. (T/F)
F
18. Although a flowchart (as its name suggests) depicts data flow very well, it is not easily modified
51. once written. (T/F)
T
19. If a problem is very complex, extensive design prior to coding will actually delay the completion
of the project. (T/F)
F
20. The divide–and–conquer–method of problem solving breaks a problem into large, general pieces
first, then refines each piece until the problem is manageable. (T/F)
T
21. The purpose of a test or decision in a looping structure is to tell when the loop should end.
(T/F)
T
22. Flowcharts,
... Get more on HelpWriting.net ...
52.
53. Stop Language Assignment
Assignment Instructions: Develop a routine to identify and remove stop words Implement a porter
stemmer to stem the tokens processed by your indexer routine. Remove (do not process) any term
that begins with a punctuation character Determine the term frequency (tft,d) for each unique term
in each document in the collection to be included in the inverted index. Determine the document
frequency (dft) which is a count of the number of documents from within the collection that each
unique inverted index term appears in. Calculate the inverse document frequency using the
following formula: idft = log(N/dft) o The N in this formula refers to the number of documents that
exist in the collection. When using the corpus–small document collection N will be 41 as there are
41 documents in the collection. Calculate the tf–idf weighting using the following formula: tf – idftd
= tft,d × idft The ... Show more content on Helpwriting.net ...
What I was able to complete begins after line 336, after the imported provided stemmer code. You
will see in the included Python file that I included an array of stop words which I built based on one
of the many suggested lists of stop words you can find online (List of Stop Words, 2018). I also
included an array of punctuation used to identify any tokens that started with any punctuation. I
created two dictionaries to keep track of the terms and documents with an associated ID. Starting at
line 424, is the code to perform the token stemming, removal of stop words, and removal of tokens
that start with punctuation. As part of this, I tracked the number of unique terms that were removed
by the stop words and also added code to output a .dat file of the stopped words. I also had this "stop
and punctuation.dat" file include the tokens that were removed for punctuation. The punctuation
tokens were not tracked as unique stop words that were removed and reported along with the other
program
... Get more on HelpWriting.net ...
54.
55. Csc200 Week 3
Taylor Shuler CSCI 36200 HW1 Report with Run Time Analysis Selection Sort: Pseudocode: n =
A.length for j = 1 to n – 1 c1: n smallest = j c2: n–1 for i = j + 1 c3: ∑_(j=1)^(n–1)▒〖(j+1)〗 if
A[i] < A[smallest] c4: ∑_(j=1)^(n–1)▒j smallest = i c5: ∑_(j=1)^(n–1)▒〖jt_(i,j) 〗 exchange A[j]
with A[smallest] c6: n–1 Best Case: Already Sorted; tij = 0 Worst Case: Sorted Backwards; tij = 1
T(n)=c_1 n+ c_2 (n–1)+ c_3 (∑_(j=1)^(n–1)▒(j+1) )+ c_4 (∑_(j=1)^(n–1)▒j)+ c_5 (∑_(j=1)^(n–
1)▒〖jt_(i,j) 〗)+ c_6 (n–1) ... Show more content on Helpwriting.net ...
In insertion sort, the best case is not quadratic because it only has to verify each entry once since it
would have nothing to insert. The algorithm would just read through the array once and see that it is
already sorted. Selection sort must check each entry twice to verify that the array is correctly sorted
in the best
... Get more on HelpWriting.net ...
56.
57. Design Of A Design Representation
6.3. ARCHITECTURAL DESIGN
The design should provide a complete picture of the software, addressing the data, functional, and
behavioral domains from an implementation perspective. Each of these characteristics is actually a
goal of the design process. To evaluate the quality of a design representation, we must establish
technical criteria for good design. Design should exhibit an architectural structure that
Has been created using recognizable design patterns
Is composed of components that exhibit good design characteristics.
Can be implemented in an evolutionary fashion, there by facilitating implementation and testing.
Design should be modular.
Design should contain distinct representation of architecture, interfaces and ... Show more content
on Helpwriting.net ...
User, from there, can view Help Tutorial, can go to SME Project Details Module, Deactivated
Components Module or DE–Manager Change Details Module. The architectural design of CARETS
Admin Reports in shown in figure given below. Fig. 6.2. CARETS Admin Reports Functional
Architectural Model 6.4. INTERFACE DESIGN
User Interfaces determines how the user will interact with the system. Interface design should be
analyzed, planned and implemented in detailed and organized manner. Following aspects should be
kept in mind while designing the interface:
It should satisfy all user's requirements.
Keep it simple, elegant and efficient.
Easy to use, learn and implement.
Reduce burden on user's memory
Increase speed of operation and learning
Maintain consistency.
6.4.1. SAMPLE OF FORMS, REPORTS AND INTERFACES
6.4.1.1. Input Forms
Input forms can have various control features such as Menu Bar, Text Box, Toggle Buttons, List
Box, Dropdown List, Check Box, Radio Buttons, and Calendars etc. Fig. 6.3. Login Form Fig. 6.4.
Deactivated Components Form Fig. 6.5. DE–Manager Change Form Showing Calendar
Calendar feature is not supported in Mozilla Firefox and Internet Explorer. User will have to give
the date in required format.
6.4.1.2. Output Report Format
While designing the output, few things should be kept in mind:
Purpose of the output?
Who will use the information and how?
58. What information to be included?
Will the output be printed,
... Get more on HelpWriting.net ...
59.
60. Bellman-Ford Deliverout Analysis
This part of your exam is worth 30 points.
Using the provided network diagram, write a program that finds the shortest path routing using the
Bellman–Ford algorithm. Your program should represent the fact that your node is U. Show how the
iterative process generates the routing table for your node. One of the keys to your program will be
in determining when the iterative process is done. Deliverables
1. Provide an output that shows the routing table for your node after each iteration. Add a second
table with two columns. One that shows the destination from your node and the second column
indicating the number of hops to reach that node.
OUTPUT:
The screenshot of the output of the running program is attached below. The distance ... Show more
content on Helpwriting.net ...
Below shown is how the output looks:
2. Provide a Word document with screenshots that explains how your program incorporates the
Bellman–Ford algorithm. Ensure you explain and show how you incorporated the iterative process
and determined when the routing table for your node was optimum. You can incorporate your
outputs into this document; however, you must identify where in your source code you print the
results required in deliverable 1 above.
This algorithm calculates the shortest path using the bottom–up approach. The Bellman Ford
algorithm using a relaxation formula and calculates the path between each edge and iterates for V–1
times using this formula to finally calculate the shortest path. We are assuming that there are no
negative weight cycle in the network.
It starts by calculating the shortest path between one node at first, then it checks for the path
between two nodes, and so on proceeds in each iteration. I have put the outer loop as V–1, where V
is the total number of vertices that is present in the network. In our case, V=6. Therefore, there must
be V–1, which is 5 iterations to obtain the optimal shortest path to each of the node from the source
node.
The below shown highlighted screenshot is the comparison relaxation formula used to check at each
edge.
If we iterate through all the edges one more time, and still get the shortest path, this means that there
is a negative weight cycle in the network. Hence,
63. Comp230-Intro to Scripting Essay
Week 1 Week 1 – Quiz A 1. The name of the service that controls the queue of print jobs with the
Window NET command is ______. SPOOLER 2. Which of the following Windows commands will
shutdown and restart your computer in 2 minutes? Shutdown –r –t 120 3. Which Windows shutdown
command switch is sued to log off the current user of the local computer? –l 4. Which one of the
following Windows AT commands specifies an action that will take place at 3:00 p.m.? At 15:00
command 5. From the Start/Run dialog, the command used to open the 32–bit Windows command
prompt is ______. cmd 6. The Windows CLI command used to turn off the display of the current
command in a batch file is ______. @command Week1 – Quiz B 1. Which ... Show more content on
Helpwriting.net ...
ServiceName? DELETE 2. The netsh command that will set the IP Address of the interface name
"NIC" to 192.168.100.10 255.255.255.0 with a metric of 1 is _____. netsh interface ip set address
"NIC" source=static 192.168.100.10 255.255.255.0 1 3. Which of the following Windows
commands will shutdown and power down the computer FileServer in 2 minutes? shutdown –s –m
FileServer –t 120 4. Which one of the following Windows AT commands specifies an action that
will take place at 3:00 p.m.? at 15:00 command 5. The Windows CLI command that is used to
display the search path for the executable files is _____. path 6. The Windows CLI command used
to turn off the display of the current command in a batch file is _____. @command Week 1 – Quiz
G 1. Which one of the following Windows NET commands will allow other computers to access the
C:Data directory under the share name UserData? NET SHARE UserData=C:Data 2. The netsh
command that will set the IP Address of the interface name "NIC" to a DHCP supplied IP address is
_____. netsh interface ip set address "NIC" source=dhcp 3. Which Windows shutdown command
switch is used to log off the current user of the local computer? –1 4. Which Windows shutdown
command switch is used to shutdown and turn off a local or remote computer? /s 5. From the
Start/Run dialog, the command used to open the 32–bit Windows command prompt is _____. cmd 6.
The Windows CLI command
... Get more on HelpWriting.net ...
64.
65. As 91070 Unit 1 Assignment
AS 91070 Demonstrate understanding of basic concepts of information management. Identifying
and describing key features of operating systems and common application software as they relate to
the management of information. Key features of the operating systems: Operating systems are very
important to be able to run different applications on your phone or computer etc. so you can run
multiple programs at the same time, it manages internal memory, it runs the input and output of
attached devices like your phone or printer by transferring data. And lastly it also enables you to run
more than 1 processor at the same time by dividing the program. So as you can see operating
systems are very important to improve and be able to run your PC. ... Show more content on
Helpwriting.net ...
And we programmed a system within this application which could calculate the
area/perimeter/circumference of a square, rectangle, and a circle. So you would type in the length of
the side or radius and it would be able to calculate the length or size of the certain shape. We had to
store our programmed "shape calculator" in a certain folder so that it could be found and all my
programming would not be lost. This is my coding below Another application i used was Google
slides. Google slides works to be able to create a presentation where you can change the design of
the background of the separate slides. You are also able to create text boxes where you can put
information in. within this assessment we used google slides for we had to create a certain folder
named DGT1.42 so that the teacher would know what assessment was within the folder. We did our
pseudocode for the calculator program within google slides, the pseudocode is where we described
what each of the functions were used for to be able to translate the "python code" into "english" for
people who couldn't read what each of the python functions were. As shown
... Get more on HelpWriting.net ...
66.
67. Document Pt1420 Essay
Unit 9: Functions
Course Objectives Covered by this Unit * CO8: Apply techniques to write functions in programs.
Unit Learning Outcomes * LO32: Describe the usefulness of functions in computer programs. *
LO33: Write functions using pseudocode/flowcharts. * LO34: Differentiate between the various
functions created for use in computer programs. * LO35: Write input validation loops and validation
functions to check accuracy of input data.
Key Concepts * Structures of functions * Use the library functions * Input validation loops and
validation functions
Reading * Gaddis, Chapter 6, "Functions," pages 217–218 (through Library Functions) and 225–231
(through How to Use Functions) * Gaddis, ... Show more content on Helpwriting.net ...
* Pass the number to a function called addTen() that will return the number with 10 added to it. *
Display the number with 10 added to it. * Ask the user to enter another number. * Display the square
root and square of the number.
Complete Lab 9.1: Functions in Pseudocode and Visual Basic from the lab manual and submit the
following for this lab: * The workable pseudocode of a function called addTen() in Step 1 * The
workable Visual Basic code to call function addTen() in Step 2 * The workable Visual Basic code of
the main() module in Step 3 * The workable Visual Basic code of addTen() function in Step 4 * The
workable Visual Basic code of number = number + 10 in Step 5 * The workable Visual Basic code
of a return statement in Step 6 * The workable completed Visual Basic code in Step 7 * A workable
sample of program output by Visual Basic Console in Step 7 * The workable Visual Basic code in
Step 8 * The workable Visual Basic code in Step 9 * The workable Visual Basic code in Step 10 *
The workable Visual Basic code in Step 11 * The workable Visual Basic code in Step 12 * The
... Get more on HelpWriting.net ...
68.
69. Cmis102 Assignment 1 Essay
CMIS102 Homework Assignment 1 (Worth 13% of your grade)
Problem definition: Calculate the usable area in square feet of house. Assume that the house has a
maximum of four rooms, and that each room is rectangular. A. Problem Analysis – Following the
directions in the assignment, clearly write up your problem analysis in this section.
This program will compute the area of a house that has four rectangular rooms. Output is the value
of the total area (total_area) of the house and is to be calculated by area/length/width input (A1, A2,
A3, A4, L1, L2, L3, L4, W1, W2, W3, and W4) variables declared as float variables. The program
will utilize the standard mathematical formula of obtaining area of a rectangle: A = L*W. As well,
the ... Show more content on Helpwriting.net ...
The design of the modular program will be created in Raptor and the design will look like this:
Main module:
Comment: "This program computes the total area of a four bedroom house in square footage.
Call Input_Data_module
Call Calculations_module
Call Output_Data_module
End
Input_Data_Module:
Write "Length of first room" (L1)
Write "Width of first room" (W1)
Write "Length of second room" (L2)
Write "Width of second room" (W2)
Write "Length of third room" (L3)
Write "Width of third room" (W3)
Write "Length of fourth room" (L4)
Write "Width of fourth room" (W4)
Call Calculations_module
End
Perform Calculations module:
Declare A1, A2, A3, and A4; as float
Set A1 = L1*W1
Set A2 = L2*W2
Set A3 = L3*W3
Set A4 = L4*W4
Set total_area = (A1+A2+A3+A4)
70. End
Output Data module:
Write "The total area of house is:" + total_area
End
C. Program Comments and Test Data – Following the directions in the assignment, include your test
data and expected results in this section.
Table 1. Include your test data table here
TEST RUN OF DATA INPUT INTO PROGRAM Room#: | Input: Length & Width (in feet) | |
Expected Output: Footage of house (in feet) | | Test Run 1 | Area of Rectangle : | A=L*W | Room 1 |
L=10, W=5 | | 50=10*5 | Room 2 | L=10, W=5 | | 50=10*5 | Room 3 |
... Get more on HelpWriting.net ...
71.
72. graded assignments Essay
PT1420
Introduction to Programming
GRADED ASSIGNMENTS
Graded Assignment Requirements
This document includes all of the assignment requirements for the graded assignments in this
course. Your instructor will provide the details about when each assignment is due.
Unit 1 Assignment 1: Homework
Learning Objectives and Outcomes
Describe the role of software for computers.
Identify the hardware associated with a computer.
Describe how computers store data.
Explain how programs work.
Differentiate among machine language, assembly language, and high–level languages.
Differentiate between compilers and interpreters.
Identify the different types of ... Show more content on Helpwriting.net ...
Use compound logical conditions.
Assignment Requirements
Do the following problems:
Algorithm Workbench Review Questions 6–10, starting on page 159
Programming Exercises 5 and 8, starting on page 160
Required Resources
Textbook
Submission Requirements
Submit your written answers to your instructor at the beginning of Unit 7.
Unit 7 Assignment 1: Homework
Learning Objectives and Outcomes
Use pseudocode/flowcharts to represent repetition structures.
73. Create While, Do–While, and Do–Until conditional loops.
Describe the implications of an infinite loop.
Assignment Requirements
Answer:
Short Answer Review Questions 1–5, starting on page 213
Algorithm Workbench Review Questions 1, 2, 7, and 8, starting on page 213
Programming Exercises 1, 3, and 4, starting on page 214
Required Resources
Textbook
Submission Requirements
Submit your written answers to your instructor at the beginning of Unit 8.
Unit 8 Assignment 1: Homework
Learning Objectives and Outcomes
Use pseudocode/flowcharts to represent repetition structures.
Evaluate counter–controlled For loops.
Use sentinel values in creating computer programs.
Use nested loops in a program.
Assignment Requirements
Answer:
Short Answer Review Questions 6–10, starting on page 213
Algorithm Workbench Review Questions 3, 4, 9, and 10, starting on page 213
Programming Exercises 7, 9, and 10 starting on page 215
Required Resources
Textbook
Submission
... Get more on HelpWriting.net ...
74.
75. Comp 230 Final Exam Answers
COMP 230 Final Exam Answers http://www.homework–bank.com/downloads/comp–230–final–
exam–answers/ COMP 230 Final Exam Answers
1. (TCO 2) What is an example of a string constant?
2. (TCO 2) What is the assignment operator?
3. (TCO 2) The symbols used to describe the logic of a program are known as _____.
4. (TCO 2) If a variable holds the value 12345, what is its data type?
5. (TCO 3) The logical AND operator can replace ____ in how it behaves.
6. (TCO 3) Which pseudocode produces the same result as the following? if customerAge > 65 OR
customerAge = 65 then discount = 0.10 else discount = 0 end if?
7. (TCO 3) What logic operator could be used to replace the nested selection structure in this ...
Show more content on Helpwriting.net ...
15. (TCO 7) What is the name for a column that uniquely identifies a record?
16. (TCO 7) What is the name for a unique key that is constructed from multiple columns?
1. (TCO 1) Write the Windows CLI commands that will clear the screen; turn off command echo;
and display the current IP address, subnet mask, and default gateway.
2. (TCO 1) Write the Windows CLI NET commands that will turn the Spooler service OFF and then
ON.
3. (TCO 2) Write the VBScript code lines that define a constant TAXRATE that is 25%, a variable
basePay that is $1000, and a variable bonusPay that is $500. Calculate the net pay, and assign that
value to netPay. Then, calculate the taxes, and assign that value to tax With held.
4. (TCO 3) Given the variable age, write the VBScript code that will decide whether the age is of a
teenager or is not of a teenager. Display the message "The value of age is a Teenager" or "The value
of age is NOT a Teenager," depending on the value of the age.
76. 1. (TCO 4) Write the VBScript code that initializes all the variables in the numArray(100) to the
value numArray(0)=1, numArray(1)=2,&#–123;,numArray(100)=101.
2. (TCO 5) Write a VBScript procedure (or subroutine) called Swap(ByRef num1,ByRef num2) that
accepts two number variables by reference and exchanges the two values whereby num1 is assigned
the original value of num2, and num2 is assigned the
... Get more on HelpWriting.net ...
77.
78. Cs Programming Chapter 1
Chapter 1: An Overview of Computers and Programming
TRUE/FALSE
1. Every programming language has rules governing its word usage and punctuation.
ANS: T PTS: 1
2. Professional computer programmers write programs to satisfy their own needs.
ANS: F PTS: 1
3. The heart of the programming process lies in planning the program's logic.
ANS: T PTS: 1
4. Once a program is completed, it is ready for the organization to use.
ANS: F PTS: 1
5. Alan Turing is often regarded as the first programmer.
ANS: F PTS: 1
6. Charles Babbage incorporated vacuum tube technology in the Analytical Engine.
ANS: F
7. MS–DOS is the kernel of the operating system residing in the Macintosh.
ANS: F
8. The World Wide Web ... Show more content on Helpwriting.net ...
a.|input line|c.|command line|
b.|communication line|d.|GCI|
79. ANS: C PTS: 1
20. A ____ allows users to interact with a program in a graphical environment.
a.|GCI|c.|command line|
b.|CGI|d.|GUI|
ANS: D PTS: 1
21. The major difference between the two main programming styles in use today is the ____.
a.|use of flowcharts versus pseudocode|
b.|testing procedure used by the programmer|
c.|focus the programmer takes during the earliest planning stages of a project|
d.|programming language used|
ANS: C PTS: 1
COMPLETION
1. When instructions are carried out, a program runs, or ____________________.
ANS: executes
PTS: 1
2. The heart of the programming process lies in planning the program's ____________________.
ANS: logic
PTS: 1
3. When you draw a flowchart, you use a parallelogram to represent a(n) ____________________,
which indicates an input operation.
ANS: input symbol
PTS: 1
4. A preselected value that stops the execution of a program is often called a(n)
____________________ value because it does not represent real data.
ANS: dummy
PTS: 1
5. You can write a(n) ____________________ program in any language that supports object
orientation.
80. ANS: procedural
PTS: 1
6. A(n) ____ is a location on your computer screen at which you type text entries to communicate
with the computer's
... Get more on HelpWriting.net ...
81.
82. Pseudocode Standard
PSEUDOCODE STANDARD Example Pseudocode is a kind of structured english for describing
algorithms. It allows the designer to focus on the logic of the algorithm without being distracted by
details of language syntax. At the same time, the pseudocode needs to be complete. It describe the
entire logic of the algorithm so that implementation becomes a rote mechanical task of translating
line by line into source code. In general the vocabulary used in the pseudocode should be the
vocabulary of the problem domain, not of the implementation domain. The pseudocode is a
narrative for someone who knows the requirements (problem domain) and is trying to learn how the
solution is organized. E.g., Extract the next word from the line (good) ... Show more content on
Helpwriting.net ...
Two keywords, REPEAT and UNTIL are used. The general form is: REPEAT sequence UNTIL
condition The "sequence" in this type of loop is always performed at least once, because the test is
peformed after the sequence is executed. At the conclusion of each iteration, the condition is
evaluated, and the loop repeats if the condition is false. The loop terminates when the condition
becomes true. FOR This loop is a specialized construct for iterating a specific number of times,
often called a "counting" loop. Two keywords, FOR and ENDFOR are used. The general form is:
FOR iteration bounds sequence ENDFOR In cases where the loop constraints can be obviously
inferred it is best to describe the loop using problem domain vocabulary. Example FOR each month
of the year (good) FOR month = 1 to 12 (ok) FOR each employee in the list (good) FOR empno = 1
to listsize (ok) NESTED CONSTRUCTS The constructs can be embedded within each other, and
this is made clear by use of indenting. Nested constructs should be clearly indented from their
surrounding constructs. Example SET total to zero REPEAT READ Temperature IF Temperature
> Freezing THEN INCREMENT
... Get more on HelpWriting.net ...
83.
84. Value Added Tax and Total Sales Tax Essay
Unit 3 Assignment 1: Homework Short Answer 5, 6 p. 71 5. What two things must you normally
specify in a variable declaration? You must specify the variable type and identifier. 6. What value is
stored in uninitialized variables? Some languages assign a default value as 0 to uninitialized
variables. In many languages, however, uninitialized variables hold unpredictable values. Algorithm
Workbench Review Questions 3–10 p.71 3. Write assignment statements that perform the following
operations with the variables a, b, and c. a. Adds 2 to a and stores the result in b Set b= 2 +a b.
Multiplies b times 4 and stores the result in a set a= b*4 c. Divides a by 3.14 and stores the result in
b set b= 3.14/b d. Subtracts 8 from b ... Show more content on Helpwriting.net ...
Sales tax Design a program that will ask the user to enter the amount of purchase. The program
should then compute the state and country sales tax. Assume the state sales tax is 4 percent and the
country sales tax is 2 percent. The program should display the amount of purchase, the state sales
tax, the country sales tax, the total sales tax, and the total of the sale (which is the sum of the amount
of purchase plus the total sales tax). Hint use the value 0.02 to represent the 2 percent, and 0.04 to
represent 4 percent. public class SalesTax { public static void main(String[] args) { double price;
price = 100.00; System.out.println("The price of the item is " + price); double value1 = 0.02; double
state_tax = value1 * price; System.out.println("The state tax on the item is $ " + state_tax); double
value2 = 0.04; double county_tax = value2 * price; System.out.println("The county tax on the item
is $" + county_tax); double total_sales_tax = state_tax + county_tax; System.out.println("The total
sales tax on the item is $" + total_sales_tax); double total_sale_of_item = total_sales_tax + price;
System.out.println("The total sale of the item is $" + total_sale_of_item); } } 8. Tip, Tax, and Total
Design a program that calculates the total amount of a meal purchased at a restaurant. The program
should ask the user to enter the charge for the food, and then calculate the amount of a 15 percent tip
and 7 percent sales tax. Display each of
... Get more on HelpWriting.net ...
85.
86. Rrw02 Week 1 Assignment
During my INRW 0302 class, the professor helped me to get into the internship. That internship
helps me learn about our career before taking the class. Unfortunately, the internship was not
completed is because I was too late to tell the employer about my driver license number. As the
result, they did not call me to work and I really feel nothing to worry about; because they can just
contact me after the holiday. If they did not call me; there is nothing for me to worry about. To learn
about my career better, I went to AsimAli channel and search computer science. The video showed
as Lecture 0 – Introduction to Computer Science I, it talks the computer science is fast growing a
career. The video tells that the computer scientist must learn to know what is Binary, ASCII.
Algorithms, Pseudocode, Source code, Compiler, Object code, Scratch, Statements, Boolean
expressions, Conditions, Loops, Variables, Functions, Arrays, Threads, Events. The binary number
system is a central role that how information is stored on computers. It made up of electronic
circuits, which have 2 states: on and off. ASCII stands for American Standard Code for ... Show
more content on Helpwriting.net ...
Algorithms are set of steps for solving a problem; algorithms also make the program faster. For
example, when you are checkers games and you want the user to be able to play against the
computer. Computer scientist must figure how to a checkers' program that never loses by using the
minimax search algorithm to search through the huge tree of possible moves. Another interesting
topic that I learned in the video is object code. Object code is the output of a compiler after
processes source code; source code was written by a human in a programming language for a
computer program. A compiler is a conversion of source code into object code. Object code is
usually a CPU, but sometimes it designed to convert source code into an assembly language or into
some other programming
... Get more on HelpWriting.net ...
87.
88. Comp 122 Week 1 Ilab Essay
COMP122
Week 1 iLab – Part 2
Complete the following two programs:
Programming Problem 1
John wants to know the values of the area and perimeter of a rectangle. John can take measurements
of the length and width of the rectangle in inches. John's measurements are expected to be accurate
to within 0.1 inch.
1. Identify the inputs and outputs of the problem.
Inputs
Double Length
Double Width
Output:
Double Area
Double Perimeter
2. Identify the processing needed to convert the inputs to the outputs.
Area= length*width
Perimeter= 2*(length+width)
3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each
input and to report each output.
A. Declare input and output variable
B. ... Show more content on Helpwriting.net ...
Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each
input and to report each output.
A declare input and output variable
B. read reports measurements in centimeters
C. converted into yards, feet, and inches
D. output variable.
4. Identify two test cases other than the example given above. For each of the two test cases show
89. what inputs you will use and calculate what your expected outputs should be.
5. Write the program to implement your algorithm. Test your program using your test cases. Did
your program produce the values predicted in your test cases? Explain.
Yes,
For each of the two programming problems, create a program using Visual C++.Net. Make sure to
capture a sample of your program's output. The best way to do this is to click on the console window
you want to capture and then press the Alt and PrintScreen keys at the same time. Then paste your
captured screen image into a Word document. For each of the two programs, put the screen capture
followed by a copy of your source code into your Word document.
Your final programming document should contain in the following order: 1. Answers to all of the
questions listed above.
2. Screen capture of the first program followed by source code.
3. Screen capture of the second program followed
... Get more on HelpWriting.net ...
90.
91. Output and Lt Essay
COMP122
Week 1 Homework
Part 1: Complete the following problems.
1. What is machine code? Why is it preferable to write programs in a high level language such as
C++?
2. What does a compiler do? What kinds of errors are reported by a compiler?
3. What does the linker do?
4. What is an algorithm?
5. Bob enters a pizza shop and notices there are three different sizes of pizzas available. Sizes are
given as the diameter of the pizza in inches. The cost of a pizza is based on the size. Bob would like
to know which size of pizza has the lowest cost per square inch.
a. Identify the inputs and outputs for this problem.
b. Identify the processing needed to convert the inputs to the outputs.
c. Design an algorithm ... Show more content on Helpwriting.net ...
b. Declare and initialize an int variable temp to 10 and a char variable ch to 'A'. c. Add 5 to the int
variable x which already exists. d. Declare and initialize a double variable payRate to 12.50. e. Copy
the value from an existing int variable firstNum into an existing int variable tempNum. f. Swap the
contents of existing int variables x and y. (Declare any new variables you need.) g. Output the
contents of existing double variables x and y, and also output the value of the expression x + 12 / y –
8. h. Copy the value of an existing double variable z into an existing int variable x.
5. Given the following variable declarations:
int x = 2, y = 5, z = 6;
What is the output from each of the following statements?
92. a. cout << "x = " << x << ", y = " << y << ", z = " << z << endl;
b. cout << "x + y = " << x + y << endl; c. cout << "Sum of " << x <<
" and " << z << " is " << x + z << endl; d. cout << "z / x = " << z / x
<< endl; e. cout << "2 times " << x << " = " << 2 * x << endl;
6. Given the following variable declarations:
int a = 5, b = 6, c;
What is the value of a, b, and c after each of the following statements executes? Assume that the
statements execute in the sequence given.
a. a = b++ + 3; b. c = 2 * a + ++b; c. b = 2 * ++c –
... Get more on HelpWriting.net ...
93.
94. Mathematics and Family Members
Question: Analyze, design, and document a simple program that utilizes a good design process and
incorporates sequential, selection and repetitive programming statements as well as at least one
function call and the use of at least one array. The specific problem you need to solve for the final
project is: Design a program that will allow a user to Input a list of your family members along with
their age and state where they reside. Determine and print the average age of your family and print
the names of anyone who live in Texas. 2. What is the required output? What is the necessary input?
How you will obtain the required output from the given input? Clearly describe variable names and
definitions. Include all necessary formulas and ... Show more content on Helpwriting.net ...
Pseudocode Module Main() Declare s_Names as String Array // Array to store names Declare s_Age
as Int Array // Array to store ages Declare s_State as String Array // Array to store state of residence
Declare i_Count as Int // Variable to hold count of total family members Declare f_avAvg as float //
Variable to hold average family age Declare lc as Int // loop counter While (have more family
members to enter) // loop to input family data Display "Enter Member Name:" Input s_Names(lc) //
Input name Display "Enter Member Age:" Input s_Age(lc) // Input age Display "Enter state" Input
s_State(lc) // Input state Increment lc and i_Count End while calcAverageAge(s_Age, i_Count) //
Call module to calculate and display average age call printTexans(s_Names, s_State, i_Count) //
Print names of Texans End Main Module calcAverageAge(s_Age, i_Count) // Module to calculate
average family age Declare f_Avg as float // Variable to hold average age result Declare lc1 as Int //
loop
... Get more on HelpWriting.net ...
95.
96. logic and design study guide for final
CIS 121 Logic & Design Study Guide For Final Exam 1 . The two broadest types of data are
____________ . a. internal and external b. volatile and constant c. text and numeric d. permanent
and temporary 2 . The following pseudocode is an example of ____. if conditionA is true then do
stepE else do stepB do stepC do stepD endif Choose one answer. a. nesting b. stacking c. a posttest
d. a pretest 3 . Adding 1 to a variable is also called _____ it. a. digesting b. resetting c. decrementing
d. incrementing 4 . When a program or module uses another module, you can refer to the main
program as the ____ program. a. director b. calling ... Show more content on Helpwriting.net ...
if–then–else b. do–while c. do–until d. while 30 . ____ errors are detected by a compiler. a. Logic b.
Syntax c. Input d. Process CIS 121 Logic and Design Study Guide for Final Exam Multiple Choice
1. Another name for a loop structure is ____. a. execution c. iteration b. selection d. case 2. Suppose
a movie theater manager says, "Provide a discount to patrons who are under 13 years old and those
who are over 64 years old; otherwise, charge the full price." Which statement will implement this
logic correctly? a. if patronAge < 13 AND patronAge > 64 then price = discountPrice else price =
fullPrice endif b. if patronAge > 13 AND patronAge < 64 then price = discountPrice else price =
fullPrice endif c. if patronAge < 13 OR patronAge > 64 then price = discountPrice else price =
fullPrice endif d. if patronAge > 13 OR patronAge < 64 then price = discountPrice else price =
fullPrice endif 3. The statement that best describes the following pseudocode is: ____. if conditionA
is true then do stepE else do stepB if conditionF is true then while conditionI is true do stepJ
endwhile else do stepG endif do stepD endif a. A decision is nested in a sequence b. A decision is
nested in a loop c. A loop is nested in a decision that is nested in another decision d. A sequence is
nested inside a
... Get more on HelpWriting.net ...