Starting Out with Python plus MyProgrammingLab with Pearson eText -- Access Card Package (3rd Edition)
bartleby

Videos

Textbook Question
Chapter 10, Problem 1MC

The _______ programming practice is centered on creating functions that are separate from the data that they work on.

a. modular

b. procedural

c. functional

d. object-oriented

Expert Solution & Answer
Check Mark
Program Description Answer

Procedural Programming:

  • Procedural programming language relies on creating functions or procedures.
  • It is derived from structural programming, which is also known as imperative programming.

Hence, the correct answer is option “B”.

Explanation of Solution

Procedural Programming:

  • The procedural programming usually depends upon procedures or routines or subroutines.
  • This programming is centered on procedures or the actions that take place in the program.
  • Procedures separate from data while operating on data items, which leads to trouble, and the code becomes more complex.

Example:

Examples for procedural language are as follows:

  • C
  • Pascal
  • FORTRAN
  • BASIC

Explanation for incorrect options:

Modular programming is a designing of software that decomposes an entire program into separate sub-programs.

Hence, option “A” is wrong.

Functional programming is designed to evaluate mathematical function that uses expressions instead of statements.

Hence, option “C” is wrong.

Object-oriented programming relies on creating objects that contain data attributes and methods. It combines the data and program into a single object.

Hence, option “D” is wrong.

Want to see more full solutions like this?

Subscribe now to access step-by-step solutions to millions of textbook problems written by subject matter experts!
02:03
Students have asked these similar questions
(C PROGRAMMING ONLY) 4. Man's Best Friendby CodeChum Admin We all know what man's best friend is. A dog! ? Let's create one in our program using the pre-existing struct Dog provided. Instructions: In the code editor, you are provided with the definition of a struct Dog. This struct needs a string value for its breed. Furthermore, you are provided with a displayDog() function which accepts a struct Dog as its parameter.Your task is to create a Dog, take in a string user input, and then set it as the Dog's breed.Finally, call the displayDog() function and pass that Dog you created.Input 1. The breed of the Dog Output Enter·the·breed·of·the·Dog:·Golden·RetrieverArf·arf!·I'm·a·Golden·Retriever
Please Help. Can You Give A Code For My Reference/Idea In Object Oriented Programming? Thank you in advance and God bless you. Create a simple program using C++ for a payroll that computes the weekly gross income of the employee. It should follow the operational conditions below: When the application has been executed, it will ask the user for the employee code. When the employee code has been entered, it will automatically look for the salary level of the employee from its record then display the name of the employee and salary rate level. Then it will ask the user to enter the time - in of the employee. Then it will ask the user to enter the time - out of the employee. Note: Will repeat four more times to complete the input from Monday to Friday. Note: Looping (use FOR LOOP for the girls and DO WHILE LOOP for the boys) After entering the time-in, time-out, the system will compute the total number of hours work through the following information: the total number of hours work and…
Instructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age, character value for its gender, and a struct Phone for its phone. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. Your task is to define a new struct called Phone. This Phone would need 3 properties: char type - which can either be 'I' for iPhone or 'A' for Android int ram - the number of RAM this phone has int storage - the number of storage this phone has Then, using this struct Phone you defined, create a Phone in the main() and ask the user for its type, ram, and storage. Next, create a struct Person and ask the user for its age and gender and then set its phone to the Phone you just created earlier. Finally, call the displayPerson() function and pass the Person. Input 1. The type of the Phone 2. The RAM of the Phone 3. The storage of the Phone 4. The age of the…

Chapter 10 Solutions

Starting Out with Python plus MyProgrammingLab with Pearson eText -- Access Card Package (3rd Edition)

Ch. 10.4 - What is an object?Ch. 10.4 - Prob. 2CPCh. 10.4 - Why is an object's internal data usually hidden...Ch. 10.4 - What are public methods? What are private methods?Ch. 10.4 - Prob. 15CPCh. 10.4 - Prob. 16CPCh. 10.4 - When designing an object-oriented application, who...Ch. 10.4 - How do you identify the potential classes in a...Ch. 10.4 - What are a classs responsibilities?Ch. 10.4 - What two question should you ask to determine a...Ch. 10.4 - Will all of a class's action always be directly...Ch. 10 - The _______ programming practice is centered on...Ch. 10 - The ___________ programming practice is centered...Ch. 10 - A(n) _____ is a component of a class that...Ch. 10 - Prob. 4MCCh. 10 - By doing this, you can hide a classs attribute...Ch. 10 - Prob. 6MCCh. 10 - A(n) ________ method stores a value in a data...Ch. 10 - Prob. 8MCCh. 10 - If a class has a method named _ _str_ _ , which of...Ch. 10 - A set of standard diagrams for graphically...Ch. 10 - In one approach to identifying the classes in a...Ch. 10 - Prob. 12MCCh. 10 - The practice of procedural programming is centered...Ch. 10 - Object reusability has been a factor in the...Ch. 10 - It is a common practice in object-oriented...Ch. 10 - Prob. 4TFCh. 10 - Starting an attribute name with two underscores...Ch. 10 - You cannot directly call the _ _ str _ _ method.Ch. 10 - One way to find the classes needed for an...Ch. 10 - Prob. 1SACh. 10 - Why should an object's data attributes be hidden...Ch. 10 - What is the difference between a class and an...Ch. 10 - The following statement calls an object's method....Ch. 10 - Prob. 5SACh. 10 - In a Python class, how do you hide an attribute...Ch. 10 - Prob. 7SACh. 10 - Suppose my_car is the name of a variable that...Ch. 10 - Prob. 2AWCh. 10 - Look at the following description of a problem...Ch. 10 - Pet Class The Pet class Write a class named Pet,...Ch. 10 - Car Class Write a class named Car that has the...Ch. 10 - Personal Information Class Design a class that...Ch. 10 - Employee Class Write a class named Employee that...Ch. 10 - RetailItem Class Write a class named RetailItem...Ch. 10 - Employee Management System This exercise assumes...Ch. 10 - Cash Register This exercise assumes you have...Ch. 10 - Trivia Game In this programming exercise, you will...

Additional Engineering Textbook Solutions

Find more solutions based on key concepts
Knowledge Booster
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • PLEASE CODE IN PYTHON PLEASE USE THE CLASS FUNCTION In python, create a LunchOrder application that prompts the user for the number of hamburgers, salads, french fries, and sodas and then displays the total for the order. The LunchOrder application should includea Food object with a constructor that accepts the price, fat, carbs, and fiber for an item. Food methods should return the price of the item and return the fat, carbohydrates, and fiber. Use the chart below forfood prices and nutrition information:
    Create a library named programmerwhich describes a software programmer using the following properties. -FName: the programmer's first name(a string of 25 characters max) -LName: the programmer's last name (a string of 25 characters max) -Years: the programmer's number of years of experience. -Age: the programmer's age.-Gender: the programmer's gender ('M' or 'F'). Write a header file ‘programmer.h’ whichcontains user defined structure representing a programmer(programmer_t) and functions to accomplish the following tasks: -Read a programmer's properties. -Compare two programmers years of experience. -Print a programmer's properties as follows (example): Name: Joe Smith Age: 45years Gender: M Years of experience: 20 years
    In C++ design a class named Triangle that extends GeometricObject. The class contains the following: Three double data fields named side1, side2, and side3 to denote three sides of the triangle. A no-arg constructor that creates a default triangle with each side 1.0. A constructor that creates a rectangle with the specified side1, side2, and side3. The constant accessor functions for all three data fields. A constant function named getArea() that returns the area of this triangle. A constant function named getPerimeter() that returns the perimeter of this triangle. Submit the following: Draw the UML diagram that involves the classes Triangle and GeometricObject. Implement the class. Write a test program that prompts the user to enter three sides of the triangle, enter a color, and enter 1 or 0 to indicate whether the triangle is filled. The program should create a Triangle object with these sides and set the color and filled properties using the input. The program should display the…
  • Indicate whether each of the following C# programming language identifiers is legal or illegal. If it is legal, indicate whether it is a conventional identifier for a class. electricBill ElectricBill Electric bill Static void #ssn Ay56we Theater_Tickets 212AreaCode heightInCentimeters Zip23891 Void
    C++ Design a class named Rectangle to represent a rectangle. The class contains: Two double data fields named width and height that specify the width and height of the rectangle. A no-arg constructor that creates a rectangle with width 1 and height 1 . A constructor that creates a rectangle with the specified width and height. The accessor and mutator functions for all the data fields. A function named getArea() that returns the area of this rectangle. A function named getPerimeter() that returns the perimeter. Implement the class. Write a test program that creates two Rectangle objects. Assign width 4 and height 40 to the first object and width 3.5 and height 35.9 to the second. Display the width, height, area, and perimeters of the first object and then the second object.
    can I get help writing this in c++ It is your job to create an object-oriented application that will allow the financial advisor to maintain the portfolios for his/her clients.  You will need to create several classes to maintain this information:  Security, Stock, Bond, Portfolio, and Date.   The characteristics of stocks and bonds in a portfolio are shown below: Stocks:                                                                       Bonds: Purchase date (Date)                                                  Purchase date (Date) Purchase price (double)                                              Purchase price (double) Quantity purchased  (int)                                            Quantity purchased (int) Ticker symbol (string)                                                            Issuer (string) Par value (int)                                                             Face value (int) Stock type (i.e. Common or Preferred) (enum)         Stated interest rate…
  • This is an object oriented programming question. The code should be in C++ language Create a class named Person, which contains Two data fields i.e. personName and age A pure virtual function named print()   A class named Patient inherits Person class, which contains Two data fields i.e. diseaseType and recommendedMedicine A parameterized constructor to initialize its own data members as well as the inherited data members Overridden function print() to display all details relevant to a patient   A class named MedicarePatient inherited from class Patient, which holds A data field representing the name of the hospital A data filed representing the name of the ward A data field representing room number A parameterized constructor to initialize its own data members as well as the inherited data members Overridden function print() to display all details relevant to a patient   In the main() function, create instances of derived classes to call respective print() function using dynamic…
    Access to more information is preferable to less knowledge when it comes to programming; yet, you should not base your decision just on how well something functions.
    A point in the x-y plane is represented by its x-coordinate and y-coordinate. Design a class,pointType, that can store and process a point in the x-y plane. You should then perform operations on the point, such as setting the coordinates of the point, printing the coordinates of the point, returning the xcoordinate, and returning the y-coordinate. Also, write a program to test various operations on the point. Note: Write program in c++ language solve as  soon as possible use oop concepts
  • In c++ please  (The Rectangle class)Design a class named Rectangle to represent a rectangle. The class contains:• Two double data fields named width and height that specify the width and height of the rectangle.• A no-arg constructor that creates a rectangle with width 1 and height 1.• A constructor that creates a rectangle with the specified width and height.• The accessor and mutator functions for all the data fields.• A function named getArea()that returns the area of this rectangle.• A function named getPerimeter() that returns the perimeter.Implement the class. Write a test program that creates two Rectangle objects. Assign width 4 and height 40 to the first object and width 3.5 and height 35.9 to the second. Display the width, height, area, and perimeters of the first object and then the second object.
    When it comes to computer programming, why is the creation of functions even necessary in the first place?
    Instructions: In the code editor, you are provided with the definition of a struct Person. This struct needs an integer value for its age and a character value for its gender. Furthermore, you are provided with a displayPerson() function which accepts a struct Person as its parameter. In the main(), there are two Persons already created: one Male Person and one Female Person. Your task is to first ask the user for the age of the Male Person and the age of the Female Person. Then, define and declare a function called createKidPerson() which has the following definition: Return type - Person Name - createKidPerson Parameters Person father - the father of the kid to be created Person mother - the mother of the kid to be created Description - creates a new Person and returns this. The age of this Person will be set to 1 while its gender will be set based on the rules mentioned above. Finally, create a new Person and call this createKidPerson() in the main and then pass this newly…
    • SEE MORE QUESTIONS
    Recommended textbooks for you
  • Programming Logic & Design Comprehensive
    Computer Science
    ISBN:9781337669405
    Author:FARRELL
    Publisher:Cengage
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
    C++ for Engineers and Scientists
    Computer Science
    ISBN:9781133187844
    Author:Bronson, Gary J.
    Publisher:Course Technology Ptr
  • Programming Logic & Design Comprehensive
    Computer Science
    ISBN:9781337669405
    Author:FARRELL
    Publisher:Cengage
    Microsoft Visual C#
    Computer Science
    ISBN:9781337102100
    Author:Joyce, Farrell.
    Publisher:Cengage Learning,
    C++ for Engineers and Scientists
    Computer Science
    ISBN:9781133187844
    Author:Bronson, Gary J.
    Publisher:Course Technology Ptr
    C++ Data Members; Author: CppNuts;https://www.youtube.com/watch?v=StlsYRNnWaE;License: Standard YouTube License, CC-BY