Concept explainers
Procedural
- 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 takes 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:
Modular programming is a designing of software that decomposes an entire program into separate sub programs.
Hence, option “A” is wrong.
Functional:
Functional programming is designed to evaluate mathematical function which uses expressions instead of statements.
Hence, option “C” is wrong.
Object-Oriented:
Object oriented programming relies on creating objects which contains 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?
Chapter 14 Solutions
Starting Out with Programming Logic and Design (5th Edition) (What's New in Computer Science)
- THIS NEEDS TO BE DONE IN C#! Instructions For your first task as a newly formed team of developers, you will design, develop, test, and deliver a small software application to a client. You will first take the requirements for the project and implement a UML and function design for each of the classes you need to create. This MUST be achieved first. You will need to read and understand the requirements and choose good classes that need to be created in the development phase of this project. After you are finished with the design, you will use Visual Studio, C#, and GitHub to develop and test the project. Teams will need to determine who will write what parts of the system before development proceeds. Members will need to create branches to work in, which should be used to work in. Commits should be made often and contain details on changes made in the code. Once intended work for a branch is made, a pull request should be made to its parent branch to merge work. The team leader or…arrow_forwardConvert to C# Language def Deposit(balance, pin): # Deposit function p = int(input("Enter the PIN: ")) # taking PIN from user if p == pin: # if PIN matches with actual PIN amount = float(input("Enter deposit amount: ")) # taking deposit amount from user balance += amount # adding deposit amount to balance else: # else (if PIN not matches) print("Incorrect PIN!!") # display message return balance # return balance def Withdraw(balance, pin): # Withdraw function p = int(input("Enter the PIN: ")) # taking PIN from user if p == pin: # if PIN matches with actual PIN amount = float(input("Enter withdraw amount: ")) # taking withdrawal amount from user if amount > balance:…arrow_forwardPlease use C++ PROGRAMMING LANGUAGE to answer the following question Payment Management System (personal bookkeeping system) where individuals (more than one) can make multiple payments. The ability to pay for the transactions is related to banking module of the project. Three modules: Person, Payment and Account. Account module should be integrated in the Person’s module. Account class’ object need to be data member of Person class. Payment Define a class named Payment that contains member variables of type float that stores the amount of the payment, string that store the type of payment (bills, shopping, grocery, fuel, medicine, others) and appropriate accessor and mutator methods. Also create a member function named paymentDetails that outputs an English sentence that describes the amount and type of the payment. Next define a class named CashPayment that is derived from Payment. This class should redefine the paymentDetails function to indicate that the payment is in cash.…arrow_forward
- Programming - C Language Find the code of the following: 1. FORGIVEN!! Yeeey!! Thanks to your help, my friend Lionel Richie forgave me! In return to his kindness and compassion, I want to give him a gift. I'm thinking of giving him straight up cash! I've already prepared something in advance, I just need your help to complete it. Instructions: In the code editor, you are provided with a main() function that asks for an integer input from the user which represents the cash to be given to Lionel and passes it to the getGift() function call. The getGift() function is already declared and partially defined. Your task is to complete the function definition. The getGift() function multiplies the passed integer value by 3 and then checks if the result is even. If it is, the getGift() function adds 100 to the result. Otherwise, it adds 200 to the result. The getGift() function would then return the result as the return type of this function is int. Input 1. Cash amount…arrow_forwardAll of the following are among the advantages of object-oriented programming except: a. Modularity b. Reuse of codes for other purposes c. Effective problem solving d. All of these choicesarrow_forwardI need the answer as soon as possiblearrow_forward
- structions: Write the following programs in C# using concepts learnt in this chapter and abmit the .cs file with the screenshot of your output for each question in the Lab Assignment 2 Submission page. 1. FRENCH TRANSLATOR Look at the following list of French words and their meanings: In French: gauche milieu droite middle In English: right left Create an application that translates the French words to English. The form should have three buttons, one for each French word. When the user clicks a button, the application should display the English translation in a Label control.arrow_forwardA(n) on its own but can be used with other software products. _is a small application that cannot runarrow_forwardComputer Science XYZ Corporation wants to develop an application for managing its employees. Employees have their name, salary, department, and date of hire. The department has a name and manager whereas date of date of hiring has day, month, and year attributes. Using C#, write an application for XYZ Corporation so that they can manage their employees.arrow_forward
- Alert dont submit AI generated answer.arrow_forward1) Object oriented programming employs_ programming approach. a. top-down b. procedural c. bottom-up d. all of these.arrow_forwardCode to _develop software using a regular expression module to process the following phone numbers.you are to extract the area code,trunk, number, and optionally an extension for each number. You may use the regular expression module in the language of your choice, please note that we covered the syntax for Perl 5 which is imitated by python 3, javascript, C++, and C#. Java, too. 800-555-1212 800 555 1212 800.555.1212 (800) 555-1212 1-800-555-1212 800-555-1212-1234 800-555-1212x1234 800-555-1212ext. 1234 1-(800) 555.1212 #1234 Reporting: Demonstrate your results by outputting the extracted information for each input number. Your report should be one page and it should be include a discussion of your use of the regular expression module..arrow_forward
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage LearningPrinciples of Information Systems (MindTap Course...Computer ScienceISBN:9781285867168Author:Ralph Stair, George ReynoldsPublisher:Cengage Learning
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr