The dealer’s cost of a car is 85% of the listed price. The dealer would accept any offer that is at least $500 over the dealer’s cost. Design an algorithm that prompts the user to input the list price of the car and print the least amount that the dealer would accept for the car. C++

Answers

Answer 1

Here is an algorithm in C++ that prompts the user to input the list price of the car and prints the least amount that the dealer would accept for the car:

#include <iostream>

using namespace std;

int main() {

   double list_price, dealer_cost, min_accepted_price;

   const double DEALER_COST_PERCENTAGE = 0.85;

   const double MIN_ACCEPTED_PRICE_OVER_COST = 500;

   cout << "Enter the list price of the car: ";

   cin >> list_price;

   dealer_cost = list_price * DEALER_COST_PERCENTAGE;

   min_accepted_price = dealer_cost + MIN_ACCEPTED_PRICE_OVER_COST;

   cout << "The least amount the dealer would accept for the car is: $" << min_accepted_price << endl;

   return 0;

}

The algorithm starts by including the library iostream and declaring the namespaces. Then it declares the variables that will be used in the program (list_price, dealer_cost, min_accepted_price) and the constants that will be used (DEALER_COST_PERCENTAGE and MIN_ACCEPTED_PRICE_OVER_COST). Then it prompts the user to enter the list price of the car. Next, it calculates the dealer's cost by multiplying the list price by the dealer cost percentage and the minimum amount the dealer would accept by adding the dealer's cost to the minimum accepted price over cost. Finally, it prints the least amount the dealer would accept for the car.


Related Questions

You just purchased new switches for you company's network. Your junior technicians are doing most of the work connecting switches to workstations and to each other, and you don't want to confuse them by requiring them to use both patch cables and crossover cables. How can you test the switches to determine whether you need both types of cable, and what's the feature for using only one type of cable for all connections?
Choose matching definition
O Network changes are reflected in the routing table automatically-They add routing table entries dynamically
O Deencapsulates the frame to create a packet. Encapsulates the packet to create a new frame
O Router and Switches with VLANs
O Connect two switches by using a patch cable. If the connection works, the switch supports auto-MDIX.

Answers

Once every router taking part in the routing protocol process has received all the information that is specific to that protocol, the state of convergence is reached.

What is convergence?Having the same topological knowledge about the internetwork they are operating in, a group of routers is said to be convergent. In order for a group of routers to be said to have converged, they had to have obtained from one another via the routing protocol in use all the topology information that was available, ensure that no router in the group's topology information was in conflict with it, and reflect the network's actual state. Alternatively said, in a converged network, the network architecture is "agreed" upon by all routers. For a group of routers involved in dynamic routing, convergence is a crucial concept. Convergence is essential to the operation of all Interior Gateway Protocols.It is typical for an operating autonomous system to have reached convergence. Because of how broad the Internet is and how slow updates can be propagated, the Exterior Gateway Routing Protocol (BGP) often never converges.

To Learn more About  convergence refer TO:

https://brainly.com/question/30114464

#SPJ4

question: 14 the following code is designed to return true if a target value is present in an array of integers. public boolean search(int[] arr, int target){ for (int number : arr) { if (number !

Answers

The code above is a function called "search" that takes in two parameters, an array of integers called "arr" and an integer called "target". The function uses a for-each loop to iterate through the elements of the array "arr".

Within the loop, it uses an if statement to check if the current element (referred to as "number") is equal to the target value passed in as a parameter. If the current element is equal to the target value, the code returns "true" indicating that the target value is present in the array. If the loop completes without finding a match, the code will return "false" indicating that the target value is not present in the array. This code can be useful to check if a particular value is present in a given set of integers.

Find out more about Code

brainly.com/question/14819362

#SPJ4

Select the main reason for the initial development of the World Wide Web from the list below.
Select one:
a. to allow companies to conduct commerce over the Internet
b. to allow communication between researchers and links between research papers Correct
c. None of these
d. to allow companies to advertise over the Internet

Answers

The World Wide Web was initially developed by Tim Berners-Lee in 1989 as a way to allow communication between researchers and to link research papers. It was later developed to facilitate commerce and advertising over the Internet.

What is World Wide Web?

The World Wide Web (WWW) is an online information system that connects millions of computers and devices around the world. It is a global network of websites, webpages, and other documents that can be accessed via the Internet. The World Wide Web was invented in 1989 by Sir Tim Berners-Lee, a British computer scientist. It was initially developed to facilitate the sharing of information between universities and research institutes.

To learn more about World Wide Web
https://brainly.com/question/13211964
#SPJ4

describe a topic or idea you find so fascinating that you lose all track of time while engaging with it. reddit

Answers

Reddit is an online platform that is highly addictive, where users can discuss and share ideas on almost any topic imaginable. It’s a world full of interesting conversations, which is why I find it so fascinating.

What is reddit?
Reddit is an online forum and social media platform where users can share news, images, and links, as well as discuss and upvote content posted by others. It is organized into topic-specific categories called "subreddits," and users can join subreddits of interest and contribute to discussions. Reddit is known as the "front page of the internet," as it is a popular source of news and entertainment. It provides an environment for users to interact, exchange ideas, and discuss topics of all varieties. Reddit also has a reputation for its sense of community and for being a safe space for open and honest discussion.

To learn more about reddit
https://brainly.com/question/14555610

#SPJ4

which of the following can provide a user with instant access to a vast quantity of computer files related to a single topic?

Answers

A search engine can provide a user with instant access to a vast quantity of computer files related to a single topic.

What is computer files?

Computer files are digital objects that store information and can be accessed by a computer. They can be a variety of different types, including text files, images, audio, video, and binary data. Computer files are typically stored on hard drives, USB drives, floppy disks, or other memory storage devices. They can also be stored online, either on cloud storage services or online file hosting services. Computer files can be accessed, edited, or deleted by authorized users. They can also be shared between different users, allowing for collaboration and file sharing. Computer files are an essential part of modern computing, as they enable users to store, access, and exchange data.

To learn more about computer files
https://brainly.com/question/9421222

#SPJ4

Which of these is an example of digital media?

A) tape drive
B) printer
C) CPU
D) DVD disc

Answers

Answer:

c

Explanation:

CPU (computer) is a digital device

Answer:

D) DVD disc

I DID the test

Which of the following commands sorts the contents of wordlist1 and wordlist2 and sends the result to standard output?

Answers

sort -m The wordlist1 and wordlist2 commands sort the contents and output the results to output device.

Describe command.

A order in computing is a request for a computer programme to carry out a certain task. It might be sent via a command-line interface, such a shell, as input to a data network as part of a network protocol, as an event in a graphical interface brought on by the user selecting an item from a menu, or as a command transmitted to a computer over a network. The word "command" is specifically used in imperative programming languages. The term was given to these languages because sentences in them are frequently written in an imperative mood, which really is common in many natural languages.

To know more about command
https://brainly.com/question/3632568
#SPJ4

What is wrong in the SQL query below? SELECT S.OrderId, C.FirstName, C. LastName INNER JOIN Customer ON S. CustomerId C. CustomerId; FROM Sales O The INNER JOIN syntax is incorrect. O The alias for the tables are missing. O Nothing is wrong in the query. O The columns are not in the right order.

Answers

The columns are not in the right order,The INNER JOIN syntax is incorrect.

What is the syntax ?

The syntax of a programming language is the set of rules that define the combinations of symbols that are considered to be a correctly structured program. It can be used to refer to all of the rules, with the specific rules for a programming language often called its grammar. In order to write a program that is correctly structured, a programmer must understand and correctly use the syntax of the language they are using.To ensure that the syntax is being correctly used, code can be checked by a compiler or interpreter which will report any errors that are found.

To learn more about syntax

https://brainly.com/question/28497863

#SPJ4

Which of the following statements are true in relation to the gdpr.1 if an organization doesn't charge for goods or services,they don't need to comply.2 every organization is required to have a data protection officer.3.organization are required to upgrade polices and procedures so that data is protected

Answers

The true statement is: 3) Organizations are required to upgrade policies and procedures so that data is protected.

What do you mean by GDPR?

The application of General Data Protection Regulation begins with the definition for "personal data" (GDPR). The General Data Protection Regulation generally applies when personal data is processed. The expression is defined in Art. The Data Protection Act 2018 implements the Regulations in the United Kingdom. (GDPR). The "information security principles" are a strict set of criteria that everyone who uses personal data must observe. They must ensure that the information is used honestly, lawfully, and openly. The law, fairness, and integrity. restriction of purpose. Data compression. Accuracy.

To know more about GDPR, visit
brainly.com/question/27416494
#SPJ4

Which of the following answers refer to common battery types that can be found in modern portable devices? Nickel-Iron (Ni-Fe) Lithium-ion (Li-ion)

Answers

Lithium-ion (Li-ion) batteries are typical types of batteries found in current portable gadgets.

What do you mean by battery ?

A battery is an electronic device that converts electrical energy into chemical energy. It may contain one or maybe more electrical cells. Every battery is essentially a galvanic cell that creates chemical energy via redox reactions across two electrodes. A battery is a device that converts the chemical energy contained through its active components directly into electric energy via an electrochemical oxidation-reduction (redox) cycle. In this type of reaction, an electric circuit is utilized to transfer electrons of one material to another.

To know more about battery , visit
brainly.com/question/5059264
#SPJ4

Consider an array of already sorted numbers. Which of the following algorithms would run in O(n) time?: *
A) MergeSort
B) InsertionSort
C) SelectionSort

Answers

LinearSearch - Linear search runs in O(n) time as it checks each element in the array sequentially until it finds the desired element.

What is Linear Search?

Linear search, also known as sequential search, is a method for finding an element within a list. It sequentially checks each element of the list until a match is found or the whole list has been searched. Linear search runs in at worst linear time and makes at most n comparisons, where n is the length of the list. The time complexity of linear search algorithms, however, can vary depending on the number of elements being searched through and the size of the data set being searched. Linear search is a simple search algorithm and is often used as the starting point for more complex searching algorithms.

To learn more about Linear Search
https://brainly.com/question/13152761
#SPJ4

Complete Question:
Consider an array of already sorted numbers. Which of the following algorithms would run in O(n) time?: * with expalanation.

A) MergeSort

B) InsertionSort

C) SelectionSort

D) LinearSearch

Which of the following Windows Command Prompt commands can be used to list all directory's files and subdirectories contained in the current directory?
Choose matching definition
O tasklist
O diskpart
O dir
dir.
O ipconfig/all

Answers

The dir command can be used to list all directory's files and subdirectories contained in the current directory.

What is subdirectories?

A subdirectory is a directory within a directory. It is a way of organizing files and folders within a larger directory structure. Subdirectories are useful for organizing related files, such as documents related to a certain project, or images related to a certain topic. Subdirectories can also be used to create multiple levels of directories, so that users can easily find the information they need. For example, a user may have a “Documents” directory, and within that directory, they may have subdirectories for “Projects” and “Images”. Subdirectories can also be used for security purposes, so that certain users can only access certain directories.

It is used to display a list of files and subdirectories in a directory. It allows the user to view the contents of a directory, including file sizes, dates, and permissions.

To learn more about subdirectories

https://brainly.com/question/14013009
#SPJ4

Consider the following code segment, which is intended to print the sum of all elements of an array.
int[] arr = {10, 5, 1, 20, 6, 25};
int sum = 0;
for (int k = 0; k <= arr.length; k++)
{
sum += arr[k];
}
System.out.println("The sum is " + sum);
A runtime error occurs when the code segment is executed. Which of the following changes should be made so that the code segment works as intended?
(A) The for loop header should be replaced with for (int k = 0; k < arr.length; k++).
(B) The for loop header should be replaced with for (int k = 0; k <= arr.length; k--).
(C) The for loop header should be replaced with for (int k = 1; k <= arr.length - 1; k++).
(D) The statement in the body of the for loop should be replaced with sum += arr[0].
(E) The statement in the body of the for loop should be replaced with sum += arr[k - 1].

Answers

The for loop header should be replaced with for (int k = 0; k < arr.length; k++).

What is loop?

Loop is a programming construct that allows a set of instructions to be repeated multiple times. It is one of the fundamental building blocks of programming and can be used to perform a wide variety of tasks. Loops can be used to iterate through collections of data, such as arrays and lists. They can be used to execute a set of instructions a specific number of times, or until a certain condition is met. Loops can also be used to create complex algorithms that would be difficult to achieve with traditional programming. Loops are an essential tool for any programmer and should be understood by all developers.

To learn more about loop
https://brainly.com/question/26568485
#SPJ4

If managed improperly, which of the following would be most detrimental to access management of cloud-based storage resources?
NOT Encryption
NOT Private subnet
Maybe Resource Policies

Answers

If managed improperly, resource policies would be the most detrimental to access management of cloud-based storage resources.

what are resource policies?

These policies are used to control access to specific resources or groups of resources, such as a particular bucket or folder in a storage service. If these policies are not set up correctly, it could lead to unauthorized access to sensitive data or misuse of resources.Encryption and private subnets can also help with access management but they are not the most critical aspect, it is mainly an additional layer of security.In cloud-based storage, resource policies are used to limit access to particular resources or collections of resources. They can be used to give or take away permissions for particular operations, including reading, writing, or deleting data, to users, groups, or programmes. These rules can be used at several levels, such the bucket level for a storage service or the folder level for a file storage service.

Resource policy include, for instance:

granting readers access to a select range of users for a specified storage service bucketdenying a certain user or application in a file storage service access to write to a specific folderRenew your effort

To learn more about resource policy refer to :

https://brainly.com/question/29452098

how are blogs, wikis, and other web 2.0 technologies changing the practice of business communication? please give examples.

Answers

Interactive web applications. A crucial quality is cooperation. For their customers, businesses may now design an interactive, collaborative web experience.

What is Web 2.0 technology with example?

Nowadays, any business is accessible thanks to websites and social media. When a consumer or a member of the media has a question, they get in touch immediately. Prior to the advent of Web 2.0, which refers to websites and applications that leverage user-generated content for end-users, even important executives are easily reachable through their own social media profiles.

Web 2.0 is distinguished by more extensive network connectivity, improved communication channels, and increased user interaction and cooperation. A group of technologies collectively referred to as "Web 2.0" have significantly reduced the costs of two-way communication via the World Wide Web, democratizing the creation of online content and services.

To learn more about web 2.0 refer to :

https://brainly.com/question/12105870

#SPJ4

true/false. a system-wide example of this is total quality management. this type of change affects performance appraisal and rewards, decision-making, and communication and information-processing systems. changing how inputs are transformed into outputs

Answers

True. Total Quality Management (TQM) is a system-wide approach to improvement that affects multiple areas of an organization. It involves changing performance appraisal and rewards, decision-making, and communication and information-processing systems in order to improve the overall quality of the organization's products or services. TQM also focuses on how inputs are transformed into outputs, and how to improve that process in order to increase efficiency and effectiveness.

When using VLOOKUP, there are some common limitations that data analysts should be aware of. Identify these limitations. Select all that apply.O VLOOKUP only returns matches it finds while searching through a row.
O VLOOKUP only returns the first match it finds, even if there are many possible matches.
O VLOOKUP can only return a value from the data to the left of the column it’s typed into.
O VLOOKUP can only return a value from the data to the right of the column of the matched value.

Answers

VLOOKUP will only returns the first match it finds, even if there are many possible matches.

What is VLOOKUP?

VLOOKUP (Vertical Look Up) is a powerful Excel function that allows users to search for and retrieve specific data from a list or table. It searches for a specified value in the leftmost column of a table array and returns a value from the same row from another column in the table array VLOOKUP is particularly useful when dealing with large spreadsheets with multiple columns, as it allows for quick and accurate retrieval of data. VLOOKUP is also a great tool for verifying data accuracy as it can help identify errors in data entry.

To know more about VLOOKUP

https://brainly.com/question/18137077

#SPJ4

Consider the following code segments. Code segment 2 is a revision of code segment 1 in which the loop increment has been changed.
Code Segment 1
int sum = 0;
for (int k = 1; k <= 30; k++)
{
sum += k;
}
System.out.println("The sum is: " + sum);
Code Segment 2
int sum = 0;
for (int k = 1; k <= 30; k = k + 2)
{
sum += k;
}
System.out.println("The sum is: " + sum);
Code segment 1 prints the sum of the integers from 1 through 30, inclusive. Which of the following best explains how the output changes from code segment 1 to code segment 2 ?
Code segment 1 and code segment 2 will produce the same output.
A. Code segment 2 will print the sum of only the even integers from 1 through 30, inclusive because it starts sum at zero, increments k by twos, and terminates when k exceeds 30.
B. Code segment 2 will print the sum of only the odd integers from 1 through 30, inclusive because it starts k at one, increments k by twos, and terminates when k exceeds 30.
C. Code segment 2 will print the sum of only the even integers from 1 through 60, inclusive because it starts sum at zero, increments k by twos, and iterates 30 times.
D. Code segment 2 will print the sum of only the odd integers from 1 through 60, inclusive because it starts k at one, increments k by twos, and iterates 30 times.

Answers

Code segment 2 will print the sum of only the odd integers from 1 through 30, inclusive because it starts k at one, increments k by twos, and terminates when k exceeds 30.

What is code segment?

Code segment is a segment in computer memory where the executable code is stored. This segment is also known as the text segment. It stores the instructions of a program that must be executed. Code segment is a read-only segment and contains the code of subroutines, functions, and other methods. It is not allowed to write or modify the code segment. Code segment is a part of the process image and is loaded into the memory when a process is created. It is one of the segments of a program that is loaded into the main memory when the program is executed. The code segment is used to store the instructions that are to be executed by the CPU. It also contains the data that is needed by the program for execution. The code segment is a very important component of a computer system and helps the CPU to execute the instructions.

To learn more about code segment

https://brainly.com/question/25781514

#SPJ4

patent fingerprints, or visible fingerprints, are left on a smooth surface when blood, ink, or some other liquid comes in contact with the hands and is then transferred to that surface

Answers

When blood, ink, or another liquid comes into touch with the hand and is then transferred to the surface, it leaves a smooth surface with patent fingerprints, or visible fingerprints. It's accurate .

What is a patent fingerprint ?

Visual and direct patent fingerprints A visible fingerprint is one that appears on a surface after being transferred there by fingertips that have touched it while wearing blood, ink, or another colored substance. When blood, ink, or another liquid contacts the hands and is then transferred to the surface, it leaves patent fingerprints, also known as visible prints, on the smooth surface.

Actual indentations left in soft materials like clay, putty, or wax are known as plastic fingerprints. When ink or blood, for example, is on your fingertips and you contact a smooth surface, a patent print is what is left behind. To the unaided eye, it is obvious. When you touch something soft and flexible, like hot wax or fresh paint, you effectively leave behind plastic prints.

To learn more about finger print refer to :

https://brainly.com/question/1083538

#SPJ4

you have cut the range a1:a5, and want to paste it to c1:c5. which of the following statements is true?

Answers

To paste it, you must first pick C1:C5. The information is removed from the original location when you paste it.

The query provided an explanation of Just copy the formatting from cells A1 to A5 and put it in cells C1 to C5.

What in Excel is a Range?

"A1:A5" is a range that can select many cells at once. The phrase "select" will select the cells A1 through A5. Things to Consider Every technique connected to the RANGE property is likewise accessible in VBA.

A range is nothing more than a cell or collection of cells. The term "range" is commonly used in VBA to select a particular cell or set of cells. Like when using Excel, everything in VBA makes use of cells and ranges. Understanding the basics of range in VBA is essential for using the programme.

Learn more about C1 here:

https://brainly.com/question/29997450

#SPJ4

identify the correct nominative pronoun for the antecedent microsoft corporation.identify the correct nominative pronoun for the antecedent microsoft corporation.

Answers

"antecedent" is the correct nominative pronoun for the antecedent Microsoft corporation.

Microsoft Corporation is the world's leading developer of computer software systems and applications. In addition, the company publishes books and multimedia titles, manufactures its own hybrid tablet computers, provides e-mail services, and sells electronic game systems and computer peripherals (input/output devices). It has sales offices located all over the world. Microsoft has research labs in Cambridge, England (1997), Beijing, China (1998), Bengaluru, India (2005), Cambridge, Massachusetts (2008), New York, New York (2012), and Montreal, Canada (2015).

Bill Gates and Paul G. Allen, two Seattle high school friends, converted BASIC, a popular mainframe computer programming language, for use on the Altair, an early personal computer (PC).

Learn more about Microsoft Corporation here:

https://brainly.com/question/11020681

#SPJ4

dentify the structure in which any function, including named functions, is nested within another function. insidefn() function outsidefn() { function insidefn() { commands } commands } function outsidefn() { commands function insidefn() { commands } commands } function outsidefn() { commands insidefn function () { commands } commands } outsidefn()function { commands function insidefn() { commands } commands }

Answers

Nested functions are defined inside of other functions. A nested function can see (access) all local objects (data, functions, types, etc.)  

A nested function, also known as a nested procedure or subroutine, is a function that is declared inside of another function known as the enclosing function in computer programming. A nested function can see (access) all local objects (data, functions, types, etc.) of both its immediately enclosing function and any function(s) that, in turn, enclose that function, but is itself invisible outside of its immediately enclosing function due to basic recursive scope rules. Although only a few levels are often utilized in actual systems, layering is theoretically conceivable to an infinite depth. Many early approaches to structured programming, including ALGOL, Simulate 67, and Pascal, as well as many contemporary dynamic languages and functional languages, use nested functions.

Learn more about Nested procedure here:

https://brainly.com/question/30029505

#SPJ4

which one of the following is not one of the operations master models that a windows network domain controller can assume?

Answers

The Backup Operator is not one of the operations master models that a Windows network domain controller can assume.

What is Operator?

An operator is a special symbol or keyword used to perform operations on variables, constants, and expressions. Examples of operators include arithmetic operators (+, -, *, /, %), comparison operators (==, !=, >, <, >=, <=), logical operators (&&, ||, !), assignment operators (=, +=, -=, *=, /=), and bitwise operators (~, &, |, ^, <<, >>). Operators are used to manipulate data and calculate results.

Instead, the Backup Operator is a role that is used to manage backups of a Windows network. This role is assigned to user accounts with the permission to back up and restore files on the domain.

To learn more about Operator
https://brainly.com/question/30299547
#SPJ4

a list of numbers has n elements, indexed from 1 to n. the following algorithm is intended to display true if the value target appears in the list more than once and to display false otherwise. the algorithm uses the variables position and count. steps 4 and 5 are missing. step 1: set count to 0 and position to 1. step 2: if the value of the element at index position is equal to target, increase the value of count by 1. step 3: increase the value of position by 1. step 4: (missing step) step 5: (missing step) which of the following could be used to replace steps 4 and 5 so that the algorithm works as intended? responses step 4 repeat steps 2 and 3 until the value of position is greater than n. step 5 if count is greater than or equal to 2, display true. otherwise, display false.

Answers

Step 4: Repeat steps 2 & 3 until the value of position is greater than 'n'.

Step 5: If count is greater than/equal to 2, display 'true'. Otherwise, display 'false'.

What is an algorithm?

An algorithm is a step-by-step process that specifies a set of instructions that must be followed in a certain order to produce the desired result. An algorithm can be implemented in more than one programming language because algorithms are frequently developed independently of the underlying languages.

A few attributes of an algorithm include clarity, excellence, effectiveness, and language independence. An algorithm's importance is primarily influenced by its performance and ability to scale.

An algorithm is a set of instructions that a computer must follow in order to perform calculations or other problem-solving tasks. A formal definition of an algorithm states that it is a finite set of instructions that are followed in a particular order to complete a specific task.

Learn more about algorithm

https://brainly.com/question/22984934

#SPJ4

1. A way to discover which of two classes is the base class and which is the subclass is to . a. look at the class size b. try saying the two class names together c. use polymorphism d. Both a and b are correct. 2. Employing inheritance reduces errors because . a. the new classes have access to fewer data fields b. the new classes have access to fewer methods c. you can copy methods that you already created d. many of the methods you need have already been used and tested 3. A base class can also be called a . a. child class b. subclass c. derived class d. superclass 4. Which of the following choices is the best example of a parent class/child class relationship? a. Rose/Flower b. Present/Gift c. Dog/Poodle d. Sparrow/Bird 5. The Java keyword that creates inheritance is . a. static b. enlarge c. extends d. inherits 6. A class named Building has a public, nonstatic method named getFloors(). If School is a child class of Building, and modelHigh is an object of type School, which of the following statements is valid? a. Building.getFloors(); b. School.getFloors(); c. modelHigh.getFloors(); d. All of the previous statements are valid. 7. Which of the following statements is true? a. A child class inherits from a parent class. b. A parent class inherits from a child class. c. Both of the preceding statements are true. d. Neither a nor b is true. 8. When a subclass method has the same name and argument types as a superclass method, the subclass method the superclass method. a. overrides b. overuses c. overloads d. overcompensates 9. When you instantiate an object that is a member of a subclass, the constructor executes first. a. subclass b. child class c. extended class d. parent class 10. The keyword super always refers to the of the class in which you use it. a. child class b. derived class c. subclass d. parent class 11. If the only constructor in a superclass requires arguments, its subclass . a. must contain a constructor b. must not contain a constructor c. must contain a constructor that requires arguments d. must not contain a constructor that requires arguments 12. If a superclass constructor requires arguments, any constructor of its subclasses must call the superclass constructor . a. as the first statement b. as the last statement c. at some time d. multiple times if multiple arguments are involved 13. A child class Motorcycle extends a parent class Vehicle. Each class constructor requires one String argument. The Motorcycle class constructor can call the Vehicle class constructor with the statement . a. Vehicle("Honda"); b. Motorcycle("Harley"); c. super("Suzuki"); d. none of the above 14. In Java, the concept of keeping data private is known as . a. polymorphism b. information hiding c. data deception d. concealing fields 15. If you create a data field or method that is , it can be used within its own class or in any classes extended from that class. a. public b. protected c. private d. both a and b 16. Within a subclass, you cannot override methods. a. public b. private c. static d. constructor 17. You call a static method using . a. the name of its class, a dot, and the method name b. the name of the class’s superclass, a dot, and the method name c. the name of an object in the same class, a dot, and the method name d. either a or b 18. You use a method access specifier when you create methods for which you want to prevent overriding in extended classes. a. public b. protected c. final d. subclass 19. A compiler can decide to a final method—that is, determine the code of the method call when the program is compiled. a. duplicate b. inline c. redline d. beeline 20. When a parent class contains a static method, child classes override it. a. frequently b. seldom c. must d. cannot

Answers

Try reciting the names of the two classes together to determine polymorphism which is the base class and which is the subclass.

When the name and type of arguments for a superclass method and a subclass method are the same?

In addition, a subclass can define a method with the exact same method signature—that is, with the same name and set of parameter types—as a method in its superclass. The method in the subclass then effectively substitutes the implementation of the method in the superclass by overriding it.

When an object that belongs to a subclass is created?

The base class and the derived class's constructors are invoked when an object that belongs to a subclass is created.

To know more about polymorphism visit;-

https://brainly.com/question/29850207

#SPJ4

If we write a program in a programming language and switch to SQL when we require to use the database, then the SQL environment in use is known as _______ SQL.
Select one:
a. Real-time
b. Dynamic
c. PL
d. Embedded

Answers

Sql, PowerBuilder, and OLAP (online analytical processing) tools are examples of databases that may be accessed using fourth generation language (or 4GL) programming languages.

Any computer programming language that is thought to represent an improvement over third-generation programming languages is referred to as a fourth-generation programming language. The fourth-generation language is sometimes known as a 4GL or non-procedural language. Users can access the database thanks to it. Examples include SQL, FoxPro, and Focus. These languages are also straightforward to learn. A series of computer languages known as the fourth generation (or 4GL) seek to resemble human language, cognition, and conceptualization more than third-generation languages (3GLs). In terms of overall software development time, effort, and money, 4GLs will be saved. A fourth-generation language is sometimes known as a non-procedural language or 4GL. Users can access the database thanks to it.

Learn more about The Fourth generation (or 4GL) here:

https://brainly.com/question/28332874

#SPJ4

in the following procedure, the parameters x and y are integers. which of the following is the most appropriate documentation to appear with the calculate procedure?

Answers

The value of (x + y) / x is shown. The most relevant documentation to display with the calculate operation is that the value of the parameter x must not be 0.

What kind of data type are integers?

In computer science, an integer is a datum of integral data type, a data type that represents a variety of mathematical integers. For integral data types, it is also conceivable for different widths and the presence of negative values. Integers are commonly shown by computers as a group of binary digits (bits).

What type of data is an integer?

Numerical values with no fractional portion are known as integer data types. Ages, for instance, can be classified as an integer data type. Depending on the range, integers are categorized as 1 byte, 2 byte, and 4 byte.

To know more about computer science visit:-

https://brainly.com/question/20837448

#SPJ4

for ambulatory surgery, if the preoperative and postoperative diagnoses are different, select the postoperative diagnosis for coding.

Answers

True, if at the time the diagnosis is established it is recognized that the postoperative diagnostic differs from the preoperative diagnosis.

What is the primary diagnosis listed for coding in an outpatient setting?

The diagnosis that the doctor lists first is known as the first-listed diagnostic. A condition that is listed as "rule out" in the outpatient environment should be coding as if it actually exists.

Ambulatory surgery coding: What is it?

Ambulatory surgery center coding is a distinct field of expertise. Although Medicare requires ASCs to send their bills to professional fee (Part B) payers using the facility fee (Part A) claim form, the service is a facility service. For ASCs, a completely separate set of rules and bundling changes must be used.

To know more about coding visit:-

https://brainly.com/question/17204194

#SPJ4

. you find a list of numbers on the kitchen counter, but you aren't sure what the numbers represent. this is an example of: data. information. the cloud. binary.

Answers

Digital devices use the binary number system, also known as base 2, to represent numerical data. There are only two digits in the binary number system: 0 and 1. Since there is no number in the system that is similar to 2, the binary representation of the number "two" is 10 (pronounced "one zero").

How are binary data files stored in computers?

The hard disc drive is where binary data is primarily kept (HDD). A spinning disc (or discs) with magnetic coatings and heads that can read and write data in the form of magnetic patterns make up the device.

What is an example of binary image?

A binary image is one with only two possible colors for each of its pixels, typically black and white.

To know more about Digital devices visit:-

brainly.com/question/14837314

#SPJ4

You need a topology that is scalable to use in your network. Which of the following will you install? A. Bus B. Ring C. Star D. Mesh.

Answers

The best topology to use in a network that needs to be scalable is a Star topology.

What is topology?

Topology is a branch of mathematics that studies the properties of geometric objects that are preserved under continuous deformations. It deals with the study of shapes and spaces and how they can be related to each other. It is related to the study of networks and how they interact with each other.

This topology allows for the addition of new nodes without changing the overall design of the network. The star topology is also the easiest to troubleshoot and maintain, and can support a large number of nodes. Each node in the star topology is connected to a central switch or hub, which simplifies the management of the network and can help reduce costs.

To learn more about topology
https://brainly.com/question/14560531
#SPJ4

Other Questions
GOVERNMENT The Texa State Legilature i compried of tate enator and tate repreentative. There i a greater number of repreentative than enator. The um of the number of repreentative and the number of enator i 181. The difference of the number of repreentative and number of enator i 119. A. Write a ytem of equation to find the number of tate repreentative, r, and enator,. B. How many enator and how many repreentative make up the Texa State Legilature? express the column matrix b as a linear combination of the columns of a. (use a1, a2, and a3 respectively for the columns of a.) a Michelle's Diner offers its clients a choice of regular and diet soda. Last night, the diner served 48 sodas in all, 25% of which were regular. How many regular sodas did the diner serve? How does Orwell's use of satire affect the meaning of the passage?. which transducer would be most suitable for imaging a 3 cm mass in the posterior segment of the liver in an obese patient? Timothy found a new coat on sale. The original price was $80. It is onsale for 25% off. What is the sale price of the coat? Help asap If the Left Anterior Descending Artery is blocked, ALL of the following tissues will be affected EXCEPT:a. Anterior Left Ventricleb. Cardiac Apexc. Interventricular Septumd. SA/AV nodes what is the total combined mass of carbon dioxide and water that is produced? please review the video and describe what you learned about freedom of speech during times of war and in general? schenck versus the united states The essential element of geography called environment and society can best be described as the study of __________.A.why people create cultures in different areasB.how people affect the natural world and how it affects themC.where things are located in relation to each other spatiallyD.how people group places together into regions researchers investigating the unconscious mind investigate a phenomenon of divided conscious ness in which a person can focus on one voice and tune out other stimuli, yet still be able to notice important infor known as the A 3-D movie is shot with two camera to stimulate each eye seeing something slightly different. This is done to enhance our sense depth perception by using Create a function that accepts 3 integer values and returns their sum. However, if an integer value is evenly divisible by 3, then it does not count towards the sum. Return zero if all numbers are evenly divisible by 3. Hint: You may want to use the append() function.```{r}summer Which of the following historical events most greatly affected both the U.S. and Canada? A. the civil rights movementB. the Great Depression C. the British North America ActD. the Civil War Do you think the author wa right to accept the necklace from the Jewih radio operator? Why or why not? Identify and correct the sentences which contain errors. 1. The trader has deceived his customers for years before he was found out. QUICKKKK I NEED HELP Quadrilateral ABCD is given, the interior angle at vertex B is 97 degrees and the exterior angle at vertex A is 88 degrees. Lines AB and CD are parallel. What is the most precise name for this given special quadrilateral? What is the measure of angle 1? What is the measure of angle 2? research suggests that the influence of social and cultural environments has increased in the united states since the 1990s due to . multiple choice question. a client with complex health needs takes a large number of medications. in order to reduce the likelihood of drug-food interactions, the nurse should encourage the client to: Pam worked as sale clerk is paid a basic rate of $3.75 during the rush Christmas Season.she works 6 hours overtime on Friday at time and quarter 8 hours overtime on Saturday at time and a half and 5 hours overtime on Sunday at double time..a)calculate Pam overtime wage for that week .b)Pam works a basic week of 40 hours calculate her basic wage.c)hence determine Pam gross wage for that week during Christmas