SlideShare a Scribd company logo
1 of 22
CIS 110 Chapter 8 & 9 Quiz
For more classes visit
www.snaptutorial.com
Chapter 8 Quiz
1. In every popular computer coding scheme, “A” is numerically one
greater than “B.”
2. A two-dimensional array contains two dimensions: ____.
3. When records are in ____ order, they are arranged one after
another on the basis of the value in a particular field.
4. When you ____ records, you store a list of key fields paired with the
storage address for the corresponding data record.
5. In a ____, items in a list are compared with each other in pairs.
6. Every time you add a new record to a linked list, you search through
the list for the correct ____ location of the new record.
7. Why might you never need to write a program that sorts data as a
professional programmer?
8. List and describe the general rules for sorting an array with a
bubble sort.
9. Describe a two-dimensional array
10.Most programmers consciously make decisions about cohesiveness
for each method they write.
Chapter 9 Quiz
1. A method that calls itself is a ____.
2. Programmers use the term ____ to describe any extra time and
resources required by an operation.
3. A calling method sends a(n) ____ to a called method.
4. Every time you call a method, the address to which the program
should return at the completion of the method is stored in a memory
location called the ____.
5. ____ refers to how the internal statements of a method serve to
accomplish the method’s purpose.
6. A variable passed into a method is passed by ____.
7. List the items that must be included within the method declaration
parentheses.
8. Discuss loose coupling.
9. Describe what a method’s return statement can return.
10. List the four things that you need to know when you want to
use a method
**********************************************************
CIS 110 Week 6 Assignment 1 Fran’s Virtual
Fruit Stand, Part 1
For more classes visit
www.snaptutorial.com
Assignment 1: Fran’s Virtual Fruit Stand, Part 1
Fran’s Virtual Fruit Stand is an online store that sells several types of
dried fruit. Based on the needs of Fran’s Virtual Fruit stand, you must
design a flowchart using Visual Logic. The flowchart must also be a
fully functional program which follows the design requirements below.
Note: This program does not require the use of arrays. The program will
prompt for data on a single item, process that data, display any relevant
messages as described below, and then move on to the next item. Use the
“console” option in the outputcommand to display the output in a
single window. Displaying the output can be accomplished with as few
as three (3) variables that simply get overwritten each time the loop
repeats.
Using Visual Logic, you need to design a flowchart that is also a fully
functional program. According to your design, the program must:
Continually accept data regarding the purchase of fruit until a sentinel
value is entered.
Prompt the user for each item, and accept the name of the fruit (e.g.,
“dried apples”), the price per pound, and the number of pounds sold in
a month.
Display a clear message for items that are considered:
Best-selling items
Note: Best-selling items are identified as those that sell 5,000 or more
pounds per month on average. For example, an acceptable message may
read, “Yellow raisins are a best-selling item.”
Big-ticket items
Note: Big-ticket items are identified as those that are best-selling items
and also cost $4 per pound or more. For example, an acceptable
message may read, “Freeze-dried blueberries are a big-ticket item.”
High-priced items
Note: High-priced items are identified as those that sell for $7 per
pound or more. For example, an acceptable message may read, “Dried
mangos are a high-priced item.”
Lowest-selling items
Note: Lowest-selling items are identified as those that sell 500 pounds or
less per month on average. For example, an acceptable message may
read, “Dried Ugli Fruit is a lowest-selling item.”
High-income generating items
Note: High-income generating items are identified as those that
generate $7,000 or more per month on average. To determine the
income generated per item, multiply the price per pound by the number
of pounds sold per month. If the item generates $7,000 or more per
month, an acceptable message may read, “Dried pineapple chunks are a
high-income generating item.”
Loop through all of the above steps until the user types the sentinel value
when prompted. Display the sentinel value so that the user may
ultimately be able to demonstrate an understanding of the way in which
to end the program. Note:An acceptable message may read “Type n to
end the program.”, where “n” is the sentinel value.
Your Visual Logic program must follow these formatting requirements:
Be accomplished in a single Visual Logic program.
Be submitted as a single file with the “.vls” file extension.
Be fully functional in order to receive full credit.
The specific course learning outcomes associated with this assignment
are:
Demonstrate the use of algorithms and pseudocoding to the problem-
solving process.
Distinguish among the basic types, steps, and properties of
programming.
Apply the techniques of functional decomposition, modularization
techniques, and debugging strategies into program design.
Describe the features and fundamental data structures of programming
design.
Select and create the appropriate conditional and iteration constructs
for a given programming task.
**********************************************************
CIS 110 Week 6 Quiz
For more classes visit
www.snaptutorial.com
• Question 1
A parallel array is an array that stores another array as each element.
• Question 2
Many newer programming languages such as C++, Java, and C# use
the bracket notation for arrays.
• Question 3
Besides making your code easier to modify, using a named constant
makes the code easier to understand.
• Question 4
Parallel arrays must contain the same data type.
• Question 5
If values in your program have a direct relationship, you probably
don’t need parallel arrays.
• Question 6
Every array has a(n) ____ size.
• Question 7
When you search through a list from one end to the other, you are
performing a ____.
• Question 8
Parallel arrays are most useful when value pairs have a(n) ____
relationship.
• Question 9
Named ____ hold values that do not change during a program’s
execution.
• Question 10
Array subscripts are always a sequence of ____.
• Question 11
If you declare a variable to be Boolean, you can set its value to ____.
• Question 12
One advantage to using a named constant is that the statement becomes
____.
• Question 13
The number of elements in an array is called the ____ of the array.
• Question 14
Array elements all have the same ____ in common.
• Question 15
In every programming language, when you access data stored
in an array, it is important to use a ____ containing a value that
accesses memory occupied by the array.
• Question 16
In all languages, subscript values must be ____.
• Question 17
A(n) ____ is another name for an array.
• Question 18
Providing array values is sometimes called ____.
• Question 19
The true benefit of using an array lies in your ability to use a ____ as
a subscript to the array.
• Question 20
Which statement is true of arrays?
echnical style convention.
**********************************************************
CIS 110 Week 8 Case Study 1: The Ideal HPC
Programming Language
For more classes visit
www.snaptutorial.com
Case Study 1: The Ideal HPC Programming Language
Due Week 8 and worth 100 points
Read the article titled, “The Ideal HPC Programming Language” dated
2010, located in the online course shell.
Article Source: Loh, E. (2010, June). The ideal hpc programming
language. Queue, 8(6), 30.
Write a two to three (2-3) page paper in which you:
Summarize the main points of the article.
Describe one (1) way in which arrays are used in high-performance
computing.
Explain one (1) new concept that you have learned about arrays and one
(1) new concept that you have learned about loops as a result of reading
the assigned article.
Your assignment must follow these formatting requirements:
Be typed, double spaced, using Times New Roman font (size 12), with
one-inch margins on all sides; citations and references must follow APA
or school-specific format. Check with your professor for any additional
instructions.
Include a cover page containing the title of the assignment, the student’s
name, the professor’s name, the course title, and the date. The cover
page and the reference page are not included in the required assignment
page length.
The specific course learning outcomes associated with this assignment
are:
Distinguish among the basic types, steps, and properties of
programming.
Describe the use of arrays and subscripts, and the steps involved in
declaring, initializing, loading, and searching arrays.
Use technology and information resources to research issues in
computer programming design.
Write clearly and concisely about computer programming design topics
using proper writing mechanics and technical style convention.
**********************************************************
CIS 110 Week 9 Assignment 2: Fran’s Virtual
Fruit Stand, Part 2
For more classes visit
www.snaptutorial.com
Assignment 2: Fran’s Virtual Fruit Stand, Part 2
Due Week 9 and worth 160 points
Use the concepts and scenario from Assignment 1 to help Fran’s Virtual
Fruit Stand increase the functionality of its online shopping cart. When
a customer checks out, the shopping cart must store the required data
pertaining to each item the customer is buying. Your job is to design a
program that will prompt the user for the required data and then store
it. The required data includes the item name, the price per pound, and
the number of pounds of that item being purchased. When complete,
your program should include three (3) arrays, two (2) loops, one (1) and
/ or conditionalstatement, and one (1) variable.
Using Visual Logic, design a flowchart that is also a fully functional
program to add functionality to the online shopping cart. According to
your design, the program must:
Continually accept data regarding the purchase of fruit as specified
below until the user enters a sentinel value, or until five (5) items are
entered, whichever comes first.
Prompt the user for each item and accept the name of the fruit (e.g.,
“dried apples”), the price per pound, and the number of pounds sold in
a month.
Store the required data in three (3) arrays (e.g., one (1) for the item
name, one (1) for the price per pound, and one (1) for the number of
pounds being purchased) with corresponding index values. Note: For
example, index value 3, when applied to the “itemName” array, would
give us the name of the third item that the customer is buying. That same
index value of 3, when applied to the “pricePerPound” array, would
give us the price per pound of that same third item that the customer is
buying.
Store up to five (5) values in each of the three (3) arrays.
Provide functionality in which the user ends the program by typing a
sentinel value, and the program tells the user what the sentinel value is.
Note: An acceptable message may read “Type n to end the program.”,
where “n” is the sentinel value. If the user does not end the program in
this way, then the program ends when it has collected the data for five
(5) items.
Print an itemized receipt with the following data after the last item in the
purchase has been saved to the array.
Item name
Price per pound of each item
Number of pounds purchased of each item
Subtotalprice for each item, calculated as price per pound multiplied by
the number of pounds
Total weight of the entire order (in pounds)
The cost of shipping which is based on the total weight of the entire
order, calculated as 50 cents per pound. Note: For example, if the entire
order weighs seven (7) pounds, the cost of shipping would be $3.50.
Grand total price of all items and shipping.
Note: Use the “console” option in the output command to accomplish
this task. An example of an acceptable output has been provided below:
Item name
Price per pound
Number of pounds
Subtotal
Yellow Raisins
$4
3
$12
Dried Apples
$3
5
$15
Total
Shipping
8
$27
$4
Grand Total
$31
Your assignment must follow these formatting requirements:
Include the code as a fully functional Visual Logic Program with the .vls
extension.
Submit the assignment files (Visual Logic Program and Screenshot) as a
packaged .zip file.
The specific course learning outcomes associated with this assignment
are:
Demonstrate the use of algorithms and pseudocoding to the problem-
solving process.
Distinguish among the basic types, steps, and properties of
programming.
Apply the techniques of functional decomposition, modularization
techniques, and debugging strategies into program design.
Design and write programs using the appropriate data structure and
fundamental programming constructs for a given problem.
Select and describe relational comparison operators, AND / OR logic
and their precedence for a given problem.
Describe the use of arrays and subscripts, and the steps involved in
declaring, initializing, loading, and searching arrays.
Develop design documents for an interactive event-driven program.
**********************************************************
CIS 110 Week 10 Technical Paper: Object-
oriented Programming (OOP) / Event-Driven
Programming (EDP) versus Procedural
Programming (PP)
For more classes visit
www.snaptutorial.com
Technical Paper: Object-oriented Programming (OOP) / Event-Driven
Programming (EDP) versus Procedural Programming (PP)
Due Week 10 and worth 100 points
Use the Internet or databases to research the advantages, features, and
common examples of OOP and EDP. Note: You may use the Association
for Computing Machinery (ACM) Digital Library to support research on
the above topics. Instructions detailing the necessary steps to access the
ACM Digital Library are located at the end of the Course Guide.
Write a three to five (3-5) page paper in which you:
Identify at least two (2) advantages to using OOP as compared to using
only PP.
Create one (1) original example of a class with at least one (1) attribute
and one (1) method. Identify what the class in question represents, the
attributes the class stores, and the purpose of the related method. Next,
examine the relationship between the class, attributes, and methods that
you have identified.
Describe at least one (1) feature of object-oriented programming that
Visual Logic lacks.
Identify at least one (1) advantage to using event-driven programming,
as compared to using purely procedural programming.
Use at least three (3) quality resources in this assignment.Note:
Wikipedia and similar Websites do not qualify as quality resources.
Your assignment must follow these formatting requirements:
Be typed, double spaced, using Times New Roman font (size 12), with
one-inch margins on all sides; citations and references must follow APA
or school-specific format. Check with your professor for any additional
instructions.
Include a cover page containing the title of the assignment, the student’s
name, the professor’s name, the course title, and the date. The cover
page and the reference page are not included in the required assignment
page length.
The specific course learning outcomes associated with this assignment
are:
Explain and identify object-oriented concepts.
Identify object-oriented classes and also the attributes and methods they
contain.
Explain the use and benefits of object-oriented programming and event-
driven programming.
Use technology and information resources to research issues in
computer programming design.
Write clearly and concisely about computer programming design topics
using proper writing mechanics and technical style convention.
**********************************************************
CIS 110 Week 10 Technical Paper Object-
oriented Programming (OOP) Event-Driven
Programming (EDP) versus Procedural
Programming (PP)
For more classes visit
www.snaptutorial.com
Technical Paper: Object-oriented Programming (OOP) / Event-Driven
Programming (EDP) versus Procedural Programming (PP)
Due Week 10 and worth 100 points
Use the Internet or Strayer databases to research the advantages,
features, and common examples of OOP and EDP. Note: You may use
the Association for Computing Machinery (ACM) Digital Library to
support research on the above topics. Instructions detailing the
necessary steps to access the ACM Digital Library are located at the
end of the Course Guide.
Write a three to five (3-5) page paper in which you:
Identify at least two (2) advantages to using OOP as compared to using
only PP.
Create one (1) original example of a class with at least one (1) attribute
and one (1) method. Identify what the class in question represents, the
attributes the class stores, and the purpose of the related method. Next,
examine the relationship between the class, attributes, and methods that
you have identified.
Describe at least one (1) feature of object-oriented programming that
Visual Logic lacks.
Identify at least one (1) advantage to using event-driven programming,
as compared to using purely procedural programming.
Use at least three (3) quality resources in this assignment. Note:
Wikipedia and similar Websites do not qualify as quality resources.
Your assignment must follow these formatting requirements:
Be typed, double spaced, using Times New Roman font (size 12), with
one-inch margins on all sides; citations and references must follow APA
or school-specific format. Check with your professor for any additional
instructions.
Include a cover page containing the title of the assignment, the student’s
name, the professor’s name, the course title, and the date. The cover
page and the reference page are not included in the required assignment
page length.
The specific course learning outcomes associated with this assignment
are:
Explain and identify object-oriented concepts.
Identify object-oriented classes and also the attributes and methods they
contain.
Explain the use and benefits of object-oriented programming and event-
driven programming.
Use technology and information resources to research issues in
computer programming design.
**********************************************************

More Related Content

Similar to CIS 110 Chapter 8 & 9 Quiz and Assignment Solutions

Pos 408 Social Responsibility - tutorialrank.com
Pos 408  Social Responsibility - tutorialrank.comPos 408  Social Responsibility - tutorialrank.com
Pos 408 Social Responsibility - tutorialrank.comPrescottLunt1008
 
Prg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comPrg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comBaileya28
 
Cis 510 Effective Communication / snaptutorial.com
Cis 510   Effective Communication / snaptutorial.comCis 510   Effective Communication / snaptutorial.com
Cis 510 Effective Communication / snaptutorial.comBaileyan
 
Inf 103 Believe Possibilities / snaptutorial.com
Inf 103    Believe Possibilities / snaptutorial.comInf 103    Believe Possibilities / snaptutorial.com
Inf 103 Believe Possibilities / snaptutorial.comDavis27a
 
INF 103 Effective Communication/tutorialrank.com
 INF 103 Effective Communication/tutorialrank.com INF 103 Effective Communication/tutorialrank.com
INF 103 Effective Communication/tutorialrank.comjonhson291
 
Cis 375 Enhance teaching / snaptutorial.com
Cis 375   Enhance teaching / snaptutorial.comCis 375   Enhance teaching / snaptutorial.com
Cis 375 Enhance teaching / snaptutorial.comDavis105
 
Inf 103 Future Our Mission/newtonhelp.com
Inf 103 Future Our Mission/newtonhelp.comInf 103 Future Our Mission/newtonhelp.com
Inf 103 Future Our Mission/newtonhelp.comamaranthbeg40
 
CIS 375 Focus Dreams/newtonhelp.com
CIS 375 Focus Dreams/newtonhelp.comCIS 375 Focus Dreams/newtonhelp.com
CIS 375 Focus Dreams/newtonhelp.combellflower87
 
Section1 compound data class
Section1 compound data classSection1 compound data class
Section1 compound data classDương Tùng
 
Cis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comCis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comrobertlesew50
 
Cis 550-week-9-case-study-7
Cis 550-week-9-case-study-7Cis 550-week-9-case-study-7
Cis 550-week-9-case-study-7shyaminfo18
 
INF 103 Exceptional Education - snaptutorial.com
INF 103  Exceptional Education - snaptutorial.comINF 103  Exceptional Education - snaptutorial.com
INF 103 Exceptional Education - snaptutorial.comDavisMurphyB9
 
Inf 103 Education Organization-snaptutorial.com
Inf 103 Education Organization-snaptutorial.comInf 103 Education Organization-snaptutorial.com
Inf 103 Education Organization-snaptutorial.comrobertlesew19
 
Lesson 4 Advanced Spreadsheet Skills/Post-Test
Lesson 4 Advanced Spreadsheet Skills/Post-TestLesson 4 Advanced Spreadsheet Skills/Post-Test
Lesson 4 Advanced Spreadsheet Skills/Post-Testdaki01
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comrock1234548
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comrock1234599
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comrock1234546
 
POS 408 Effective Communication - tutorialrank.com
POS 408  Effective Communication - tutorialrank.comPOS 408  Effective Communication - tutorialrank.com
POS 408 Effective Communication - tutorialrank.comBartholomew58
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comrock123450
 
POS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.comPOS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.comMcdonaldRyan107
 

Similar to CIS 110 Chapter 8 & 9 Quiz and Assignment Solutions (20)

Pos 408 Social Responsibility - tutorialrank.com
Pos 408  Social Responsibility - tutorialrank.comPos 408  Social Responsibility - tutorialrank.com
Pos 408 Social Responsibility - tutorialrank.com
 
Prg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.comPrg 420 Enhance teaching / snaptutorial.com
Prg 420 Enhance teaching / snaptutorial.com
 
Cis 510 Effective Communication / snaptutorial.com
Cis 510   Effective Communication / snaptutorial.comCis 510   Effective Communication / snaptutorial.com
Cis 510 Effective Communication / snaptutorial.com
 
Inf 103 Believe Possibilities / snaptutorial.com
Inf 103    Believe Possibilities / snaptutorial.comInf 103    Believe Possibilities / snaptutorial.com
Inf 103 Believe Possibilities / snaptutorial.com
 
INF 103 Effective Communication/tutorialrank.com
 INF 103 Effective Communication/tutorialrank.com INF 103 Effective Communication/tutorialrank.com
INF 103 Effective Communication/tutorialrank.com
 
Cis 375 Enhance teaching / snaptutorial.com
Cis 375   Enhance teaching / snaptutorial.comCis 375   Enhance teaching / snaptutorial.com
Cis 375 Enhance teaching / snaptutorial.com
 
Inf 103 Future Our Mission/newtonhelp.com
Inf 103 Future Our Mission/newtonhelp.comInf 103 Future Our Mission/newtonhelp.com
Inf 103 Future Our Mission/newtonhelp.com
 
CIS 375 Focus Dreams/newtonhelp.com
CIS 375 Focus Dreams/newtonhelp.comCIS 375 Focus Dreams/newtonhelp.com
CIS 375 Focus Dreams/newtonhelp.com
 
Section1 compound data class
Section1 compound data classSection1 compound data class
Section1 compound data class
 
Cis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comCis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.com
 
Cis 550-week-9-case-study-7
Cis 550-week-9-case-study-7Cis 550-week-9-case-study-7
Cis 550-week-9-case-study-7
 
INF 103 Exceptional Education - snaptutorial.com
INF 103  Exceptional Education - snaptutorial.comINF 103  Exceptional Education - snaptutorial.com
INF 103 Exceptional Education - snaptutorial.com
 
Inf 103 Education Organization-snaptutorial.com
Inf 103 Education Organization-snaptutorial.comInf 103 Education Organization-snaptutorial.com
Inf 103 Education Organization-snaptutorial.com
 
Lesson 4 Advanced Spreadsheet Skills/Post-Test
Lesson 4 Advanced Spreadsheet Skills/Post-TestLesson 4 Advanced Spreadsheet Skills/Post-Test
Lesson 4 Advanced Spreadsheet Skills/Post-Test
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.com
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.com
 
INF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.comINF 103 Future Our Mission/newtonhelp.com
INF 103 Future Our Mission/newtonhelp.com
 
POS 408 Effective Communication - tutorialrank.com
POS 408  Effective Communication - tutorialrank.comPOS 408  Effective Communication - tutorialrank.com
POS 408 Effective Communication - tutorialrank.com
 
INF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.comINF 103 Course Success is a Tradition / newtonhelp.com
INF 103 Course Success is a Tradition / newtonhelp.com
 
POS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.comPOS 408 Education Specialist / snaptutorial.com
POS 408 Education Specialist / snaptutorial.com
 

Recently uploaded

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 

Recently uploaded (20)

BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 

CIS 110 Chapter 8 & 9 Quiz and Assignment Solutions

  • 1. CIS 110 Chapter 8 & 9 Quiz For more classes visit www.snaptutorial.com Chapter 8 Quiz 1. In every popular computer coding scheme, “A” is numerically one greater than “B.” 2. A two-dimensional array contains two dimensions: ____. 3. When records are in ____ order, they are arranged one after another on the basis of the value in a particular field. 4. When you ____ records, you store a list of key fields paired with the storage address for the corresponding data record. 5. In a ____, items in a list are compared with each other in pairs. 6. Every time you add a new record to a linked list, you search through the list for the correct ____ location of the new record. 7. Why might you never need to write a program that sorts data as a professional programmer? 8. List and describe the general rules for sorting an array with a bubble sort.
  • 2. 9. Describe a two-dimensional array 10.Most programmers consciously make decisions about cohesiveness for each method they write. Chapter 9 Quiz 1. A method that calls itself is a ____. 2. Programmers use the term ____ to describe any extra time and resources required by an operation. 3. A calling method sends a(n) ____ to a called method. 4. Every time you call a method, the address to which the program should return at the completion of the method is stored in a memory location called the ____. 5. ____ refers to how the internal statements of a method serve to accomplish the method’s purpose. 6. A variable passed into a method is passed by ____. 7. List the items that must be included within the method declaration parentheses. 8. Discuss loose coupling. 9. Describe what a method’s return statement can return. 10. List the four things that you need to know when you want to use a method
  • 3. ********************************************************** CIS 110 Week 6 Assignment 1 Fran’s Virtual Fruit Stand, Part 1 For more classes visit www.snaptutorial.com Assignment 1: Fran’s Virtual Fruit Stand, Part 1 Fran’s Virtual Fruit Stand is an online store that sells several types of dried fruit. Based on the needs of Fran’s Virtual Fruit stand, you must design a flowchart using Visual Logic. The flowchart must also be a fully functional program which follows the design requirements below. Note: This program does not require the use of arrays. The program will prompt for data on a single item, process that data, display any relevant messages as described below, and then move on to the next item. Use the “console” option in the outputcommand to display the output in a single window. Displaying the output can be accomplished with as few as three (3) variables that simply get overwritten each time the loop repeats.
  • 4. Using Visual Logic, you need to design a flowchart that is also a fully functional program. According to your design, the program must: Continually accept data regarding the purchase of fruit until a sentinel value is entered. Prompt the user for each item, and accept the name of the fruit (e.g., “dried apples”), the price per pound, and the number of pounds sold in a month. Display a clear message for items that are considered: Best-selling items Note: Best-selling items are identified as those that sell 5,000 or more pounds per month on average. For example, an acceptable message may read, “Yellow raisins are a best-selling item.” Big-ticket items Note: Big-ticket items are identified as those that are best-selling items and also cost $4 per pound or more. For example, an acceptable message may read, “Freeze-dried blueberries are a big-ticket item.” High-priced items Note: High-priced items are identified as those that sell for $7 per pound or more. For example, an acceptable message may read, “Dried mangos are a high-priced item.” Lowest-selling items
  • 5. Note: Lowest-selling items are identified as those that sell 500 pounds or less per month on average. For example, an acceptable message may read, “Dried Ugli Fruit is a lowest-selling item.” High-income generating items Note: High-income generating items are identified as those that generate $7,000 or more per month on average. To determine the income generated per item, multiply the price per pound by the number of pounds sold per month. If the item generates $7,000 or more per month, an acceptable message may read, “Dried pineapple chunks are a high-income generating item.” Loop through all of the above steps until the user types the sentinel value when prompted. Display the sentinel value so that the user may ultimately be able to demonstrate an understanding of the way in which to end the program. Note:An acceptable message may read “Type n to end the program.”, where “n” is the sentinel value. Your Visual Logic program must follow these formatting requirements: Be accomplished in a single Visual Logic program. Be submitted as a single file with the “.vls” file extension. Be fully functional in order to receive full credit. The specific course learning outcomes associated with this assignment are: Demonstrate the use of algorithms and pseudocoding to the problem- solving process. Distinguish among the basic types, steps, and properties of programming.
  • 6. Apply the techniques of functional decomposition, modularization techniques, and debugging strategies into program design. Describe the features and fundamental data structures of programming design. Select and create the appropriate conditional and iteration constructs for a given programming task. ********************************************************** CIS 110 Week 6 Quiz For more classes visit www.snaptutorial.com • Question 1 A parallel array is an array that stores another array as each element. • Question 2 Many newer programming languages such as C++, Java, and C# use the bracket notation for arrays. • Question 3
  • 7. Besides making your code easier to modify, using a named constant makes the code easier to understand. • Question 4 Parallel arrays must contain the same data type. • Question 5 If values in your program have a direct relationship, you probably don’t need parallel arrays. • Question 6 Every array has a(n) ____ size. • Question 7 When you search through a list from one end to the other, you are performing a ____. • Question 8 Parallel arrays are most useful when value pairs have a(n) ____ relationship. • Question 9 Named ____ hold values that do not change during a program’s execution. • Question 10 Array subscripts are always a sequence of ____. • Question 11 If you declare a variable to be Boolean, you can set its value to ____.
  • 8. • Question 12 One advantage to using a named constant is that the statement becomes ____. • Question 13 The number of elements in an array is called the ____ of the array. • Question 14 Array elements all have the same ____ in common. • Question 15 In every programming language, when you access data stored in an array, it is important to use a ____ containing a value that accesses memory occupied by the array. • Question 16 In all languages, subscript values must be ____. • Question 17 A(n) ____ is another name for an array. • Question 18 Providing array values is sometimes called ____. • Question 19 The true benefit of using an array lies in your ability to use a ____ as a subscript to the array. • Question 20 Which statement is true of arrays?
  • 9. echnical style convention. ********************************************************** CIS 110 Week 8 Case Study 1: The Ideal HPC Programming Language For more classes visit www.snaptutorial.com Case Study 1: The Ideal HPC Programming Language Due Week 8 and worth 100 points Read the article titled, “The Ideal HPC Programming Language” dated 2010, located in the online course shell. Article Source: Loh, E. (2010, June). The ideal hpc programming language. Queue, 8(6), 30.
  • 10. Write a two to three (2-3) page paper in which you: Summarize the main points of the article. Describe one (1) way in which arrays are used in high-performance computing. Explain one (1) new concept that you have learned about arrays and one (1) new concept that you have learned about loops as a result of reading the assigned article. Your assignment must follow these formatting requirements: Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions. Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length. The specific course learning outcomes associated with this assignment are: Distinguish among the basic types, steps, and properties of programming.
  • 11. Describe the use of arrays and subscripts, and the steps involved in declaring, initializing, loading, and searching arrays. Use technology and information resources to research issues in computer programming design. Write clearly and concisely about computer programming design topics using proper writing mechanics and technical style convention. ********************************************************** CIS 110 Week 9 Assignment 2: Fran’s Virtual Fruit Stand, Part 2 For more classes visit www.snaptutorial.com Assignment 2: Fran’s Virtual Fruit Stand, Part 2 Due Week 9 and worth 160 points
  • 12. Use the concepts and scenario from Assignment 1 to help Fran’s Virtual Fruit Stand increase the functionality of its online shopping cart. When a customer checks out, the shopping cart must store the required data pertaining to each item the customer is buying. Your job is to design a program that will prompt the user for the required data and then store it. The required data includes the item name, the price per pound, and the number of pounds of that item being purchased. When complete, your program should include three (3) arrays, two (2) loops, one (1) and / or conditionalstatement, and one (1) variable. Using Visual Logic, design a flowchart that is also a fully functional program to add functionality to the online shopping cart. According to your design, the program must: Continually accept data regarding the purchase of fruit as specified below until the user enters a sentinel value, or until five (5) items are entered, whichever comes first. Prompt the user for each item and accept the name of the fruit (e.g., “dried apples”), the price per pound, and the number of pounds sold in a month. Store the required data in three (3) arrays (e.g., one (1) for the item name, one (1) for the price per pound, and one (1) for the number of pounds being purchased) with corresponding index values. Note: For example, index value 3, when applied to the “itemName” array, would give us the name of the third item that the customer is buying. That same index value of 3, when applied to the “pricePerPound” array, would give us the price per pound of that same third item that the customer is buying. Store up to five (5) values in each of the three (3) arrays.
  • 13. Provide functionality in which the user ends the program by typing a sentinel value, and the program tells the user what the sentinel value is. Note: An acceptable message may read “Type n to end the program.”, where “n” is the sentinel value. If the user does not end the program in this way, then the program ends when it has collected the data for five (5) items. Print an itemized receipt with the following data after the last item in the purchase has been saved to the array. Item name Price per pound of each item Number of pounds purchased of each item Subtotalprice for each item, calculated as price per pound multiplied by the number of pounds Total weight of the entire order (in pounds) The cost of shipping which is based on the total weight of the entire order, calculated as 50 cents per pound. Note: For example, if the entire order weighs seven (7) pounds, the cost of shipping would be $3.50. Grand total price of all items and shipping. Note: Use the “console” option in the output command to accomplish this task. An example of an acceptable output has been provided below:
  • 14. Item name Price per pound Number of pounds Subtotal Yellow Raisins $4 3 $12 Dried Apples $3
  • 16. $31 Your assignment must follow these formatting requirements: Include the code as a fully functional Visual Logic Program with the .vls extension. Submit the assignment files (Visual Logic Program and Screenshot) as a packaged .zip file. The specific course learning outcomes associated with this assignment are: Demonstrate the use of algorithms and pseudocoding to the problem- solving process. Distinguish among the basic types, steps, and properties of programming.
  • 17. Apply the techniques of functional decomposition, modularization techniques, and debugging strategies into program design. Design and write programs using the appropriate data structure and fundamental programming constructs for a given problem. Select and describe relational comparison operators, AND / OR logic and their precedence for a given problem. Describe the use of arrays and subscripts, and the steps involved in declaring, initializing, loading, and searching arrays. Develop design documents for an interactive event-driven program. ********************************************************** CIS 110 Week 10 Technical Paper: Object- oriented Programming (OOP) / Event-Driven Programming (EDP) versus Procedural Programming (PP) For more classes visit www.snaptutorial.com
  • 18. Technical Paper: Object-oriented Programming (OOP) / Event-Driven Programming (EDP) versus Procedural Programming (PP) Due Week 10 and worth 100 points Use the Internet or databases to research the advantages, features, and common examples of OOP and EDP. Note: You may use the Association for Computing Machinery (ACM) Digital Library to support research on the above topics. Instructions detailing the necessary steps to access the ACM Digital Library are located at the end of the Course Guide. Write a three to five (3-5) page paper in which you: Identify at least two (2) advantages to using OOP as compared to using only PP. Create one (1) original example of a class with at least one (1) attribute and one (1) method. Identify what the class in question represents, the attributes the class stores, and the purpose of the related method. Next, examine the relationship between the class, attributes, and methods that you have identified. Describe at least one (1) feature of object-oriented programming that Visual Logic lacks. Identify at least one (1) advantage to using event-driven programming, as compared to using purely procedural programming. Use at least three (3) quality resources in this assignment.Note: Wikipedia and similar Websites do not qualify as quality resources.
  • 19. Your assignment must follow these formatting requirements: Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions. Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length. The specific course learning outcomes associated with this assignment are: Explain and identify object-oriented concepts. Identify object-oriented classes and also the attributes and methods they contain. Explain the use and benefits of object-oriented programming and event- driven programming. Use technology and information resources to research issues in computer programming design. Write clearly and concisely about computer programming design topics using proper writing mechanics and technical style convention. **********************************************************
  • 20. CIS 110 Week 10 Technical Paper Object- oriented Programming (OOP) Event-Driven Programming (EDP) versus Procedural Programming (PP) For more classes visit www.snaptutorial.com Technical Paper: Object-oriented Programming (OOP) / Event-Driven Programming (EDP) versus Procedural Programming (PP) Due Week 10 and worth 100 points Use the Internet or Strayer databases to research the advantages, features, and common examples of OOP and EDP. Note: You may use the Association for Computing Machinery (ACM) Digital Library to support research on the above topics. Instructions detailing the necessary steps to access the ACM Digital Library are located at the end of the Course Guide.
  • 21. Write a three to five (3-5) page paper in which you: Identify at least two (2) advantages to using OOP as compared to using only PP. Create one (1) original example of a class with at least one (1) attribute and one (1) method. Identify what the class in question represents, the attributes the class stores, and the purpose of the related method. Next, examine the relationship between the class, attributes, and methods that you have identified. Describe at least one (1) feature of object-oriented programming that Visual Logic lacks. Identify at least one (1) advantage to using event-driven programming, as compared to using purely procedural programming. Use at least three (3) quality resources in this assignment. Note: Wikipedia and similar Websites do not qualify as quality resources. Your assignment must follow these formatting requirements: Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.
  • 22. Include a cover page containing the title of the assignment, the student’s name, the professor’s name, the course title, and the date. The cover page and the reference page are not included in the required assignment page length. The specific course learning outcomes associated with this assignment are: Explain and identify object-oriented concepts. Identify object-oriented classes and also the attributes and methods they contain. Explain the use and benefits of object-oriented programming and event- driven programming. Use technology and information resources to research issues in computer programming design. **********************************************************