Tina wants to code two games. The first is a simple program that generates a random number and asks the user to guess it (with no graphic interfaces). The second is a virtual chess game. Assuming that Tina does not plan to revisit any of these programs for future improvements or extensions, which of the following statements is TRUE? Both the number guessing game and the virtual chess game lend themselves better to OOP than to procedural programming, as both games would benefit from having

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Answer any one question....with typed answer.... please fast ?

Tina wants to code two games. The first is a simple program that generates a
random number and asks the user to guess it (with no graphic interfaces). The
second is a virtual chess game. Assuming that Tina does not plan to revisit any of
these programs for future improvements or extensions, which of the following
statements is TRUE?
Both the number guessing game and the virtual chess game lend themselves better
to OOP than to procedural programming, as both games would benefit from having
classes, objects, attributes, and methods.
Both the number guessing game and the virtual chess game lend themselves better
O to OOP than to procedural programming, as both games would benefit from
simulating real-world trivia or chess behavior.
The number guessing game lends itself better to procedural programming than to
OOP, as OOP would unnecessarily increase the program's complexity and length.
The virtual chess game lends itself better to procedural programming than to OOP,
as OOP would unnecessarily increase the program's complexity, length, and
modularity.
Transcribed Image Text:Tina wants to code two games. The first is a simple program that generates a random number and asks the user to guess it (with no graphic interfaces). The second is a virtual chess game. Assuming that Tina does not plan to revisit any of these programs for future improvements or extensions, which of the following statements is TRUE? Both the number guessing game and the virtual chess game lend themselves better to OOP than to procedural programming, as both games would benefit from having classes, objects, attributes, and methods. Both the number guessing game and the virtual chess game lend themselves better O to OOP than to procedural programming, as both games would benefit from simulating real-world trivia or chess behavior. The number guessing game lends itself better to procedural programming than to OOP, as OOP would unnecessarily increase the program's complexity and length. The virtual chess game lends itself better to procedural programming than to OOP, as OOP would unnecessarily increase the program's complexity, length, and modularity.
Given the following two setups, which of the below statements is TRUE?
SETUP 1
Flowers have a color and size.
Flowers can appear or disappear from the
screen.
Daisies, roses, lilies, orchids, and violets
are all flowers.
1. Anne's roses are red and occupy 10% of the
screen.
2. Amina's lilies are white and occupy 15% of
the screen.
3. Anne's roses disappear from the screen when
the user presses the spacebar.
4. Anne's roses appear on the screen when the
user presses the 'a' key.
SETUP 2
- All stars twinkle and have a name.
1. There are only two stars on the screen
('Alpha Centauri' and 'Vega').
2. if the user presses the spacebar:
"Alpha Centauri (starl) twinkles
3. if the user clicks anywhere on the screen:
'Vega' (star2) twinkles
Both Setup 1 and Setup 2 are suitable for object-oriented implementation, as they
can both benefit from bundling related attributes and methods and from reflecting
the real-life objects they are modeling. Both setup would lend themselves to
modularity and code reusability.
Unlike Setup 2, which focuses on the procedures rather than on an object's
characteristics, Setup 1 focuses on the object's properties and on code modularity
and reusability. Thus, Setup 1 should be implemented using an object-oriented
approach, while Setup 2 should be implemented with a procedure-oriented approach.
Both Setup 1 and Setup 2 are suitable for object-oriented implementation, as they
both focus on an object's characteristics rather than its behaviors.
O
Neither setup is suitable for object-oriented implementation, as neither naturally
maps to a class, object, attribute, or method-only procedures.
Transcribed Image Text:Given the following two setups, which of the below statements is TRUE? SETUP 1 Flowers have a color and size. Flowers can appear or disappear from the screen. Daisies, roses, lilies, orchids, and violets are all flowers. 1. Anne's roses are red and occupy 10% of the screen. 2. Amina's lilies are white and occupy 15% of the screen. 3. Anne's roses disappear from the screen when the user presses the spacebar. 4. Anne's roses appear on the screen when the user presses the 'a' key. SETUP 2 - All stars twinkle and have a name. 1. There are only two stars on the screen ('Alpha Centauri' and 'Vega'). 2. if the user presses the spacebar: "Alpha Centauri (starl) twinkles 3. if the user clicks anywhere on the screen: 'Vega' (star2) twinkles Both Setup 1 and Setup 2 are suitable for object-oriented implementation, as they can both benefit from bundling related attributes and methods and from reflecting the real-life objects they are modeling. Both setup would lend themselves to modularity and code reusability. Unlike Setup 2, which focuses on the procedures rather than on an object's characteristics, Setup 1 focuses on the object's properties and on code modularity and reusability. Thus, Setup 1 should be implemented using an object-oriented approach, while Setup 2 should be implemented with a procedure-oriented approach. Both Setup 1 and Setup 2 are suitable for object-oriented implementation, as they both focus on an object's characteristics rather than its behaviors. O Neither setup is suitable for object-oriented implementation, as neither naturally maps to a class, object, attribute, or method-only procedures.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY