Complete the class DiscountedItem below that inherits from Item and adds an discount instance variable with a constructor, get/set, and a toString method. Uncomment the testing code in main to add discounted items to the cart.

Answers

Answer 1

The information provided is incomplete hence the general answer. The programming instructions require the use of a Constructor, a get/set, and a toString.

What is a Constructor?

In the parlance of Java, a Constructor refers to a block of codes that look very much like the method. It is often used to internalize an object. It is normally used to create the object of a class.

What is Get/Set in Java?

The term "Get Method" is used to return the value of the variable name. It works by assigning a new name to the selected name variable.

What is ToString in Java?

The ToString () in Java returns any value given to it in a string format. If it is applied to an object, the result will return as a string object.

Learn more about Constructor (Java) at:

https://brainly.com/question/9949117


Related Questions

explain computer system architecture ​

Answers

Answer:

specification detailing how a set of software and hardware technology standards interact to form a computer system or platform.

Explanation:

Computer architecture is a specification detailing how a set of software and hardware technology standards interact to form a computer system or platform. In short, computer architecture refers to how a computer system is designed and what technologies it is compatible with.

What are web servers used for?
O A. To store webpages
O B. To power computers
O C. To browse the internet

Answers

Answer:

a

Explanation:

A web server is software and hardware that uses HTTP (Hypertext Transfer Protocol) and other protocols to respond to client requests made over the World Wide Web. The main job of a web server is to display website content through storing, processing and delivering webpages to users.

who is founder of wwe​

Answers

Answer:

Vince McMahon Linda McMahon

Answer: I hope this helps

Explanation:

Vince McMahon Linda McMahon

When preparing to capture video for a client, which three questions are important to ask the client? (Choose 3.)
A) Marketing strategy
B) Target audience
O C Client goals
D) Video purpose
E) Target video codec

Answers

Three important questions to ask the client when preparing to capture video are: target audience, client goals, and video purpose.

What is Video Capture?

Video capture is the process of making digital video stream for specific purposes.

When preparing to capture video for a client, some essential questions to ask the client is:

Target audience: Understand the characteristics of the people you want to reach through the video.Client Goals: An effective video capture is one that meets the client's goals.Video purpose: You should understand why the client needs the video, and what the purpose is for, whether it is promotional, educative etc.

In summary, three important questions to ask the client when preparing to capture video are: target audience, client goals, and video purpose.

Learn more about video capture on:

https://brainly.com/question/26281658

Help my math is hard my dad is crying my mom is yelling at my teacher please help

Answers

Answer:

C

Explanation:

please mark brainliest

It’s c because the mean is starting at that place

What is the purpose of a computer virus? O to spread a disease to humans O to substitute for a human disease a O to disrupt a computer O to aid encryption​

Answers

Answer:

to disrupt a computer

Explanation:

Why is it important to update website-based information?


It is important to maintain appearances.
It helps to draw users to the website.
It does not matter.
It can reduce calls made to the organization.

Answers

Answer:

it helps to draw users to the website

Message queues allow for programs to synchronize their operations as well as transfer data. How much data can be sent in a single message using this mechanism

Answers

The maximum size of a message queue is 16384 bytes for Linux. For IBM WebSphere MQ. this value is 4 MB.

What is the message queue?

The size of the message queue refers to the size (in bytes) that a message may have for a given operative system.

For example, the maximum value for IBM WebSphere MQ has been configured in four megabytes (4 MB).

In this case, when the message is higher than the set size (here 4 MB), then this message is returned.

Learn more about IBM here:

https://brainly.com/question/896257

You are querying a database of manufacturing company suppliers. The column name for supplier identification numbers is supplier_id. What is the correct clause to retrieve only data about the supplier with identification number 85317?

Answers

Queries are used to retrieve data from the database

The correct clause to retrieve only data about the supplier with identification number 85317 is WHERE supplier_id = 85317

How to determine the query

The clause is given as:

identification number = 85317

To retrieve data from the database, we make use of the WHERE clause followed by the column name, and the column value

In this case,

supplier_id represents the column name, while 85317 represents the value

Hence, the required clause is

WHERE supplier_id = 85317

Read more about database at:

https://brainly.com/question/1538272

I GIVE 50 POINTS PLEASE HELP ASAP Which of the following licenses let you use intellectual property for free on a project you plan to make money from? (Choose all that apply)

•Public Domain

•Attribution, Non-Commercial

•Attribution, Commercial

•Copyright

Answers

Answer:

Attribution, Non-Commercial

and

Copyright

Explanation:

Every website or account you create comes with free copyright, when you go to make a free website (it won't let me specify names) you can scroll all the way down and you'll see a little copyright symbol.

Answer:

the second one

This is because when you have commercials, you make more and more money.

why are accountability and trust so important in using emerging technologies​

Answers

Answer:

Another way in which accountability can be important is in ensuring that businesses are able to successfully integrate new technologies, such as hyperautomation, which helps reduce costs and increase efficiencies in areas like case management

A program has a infinite while loop. How can you interrupt it?

Answers

Answer:

The break keyword is how you interrupt a while loop.

the syntax looks like this ↓

Python

while true:

break

Java script

while (true);

break

Write a Java Program
Specific Instructions

Create a class for the following object.

Deck - contains 52 cards initially. Each card is represented by an unchangeable suit and value.
Suits - ♣ (Club), ♠ (Spade), ♥ (Heart), ♦ (Diamond)
Values - 1(A),2,3,4,5,6,7,8,9,10,11(J),12(Q),13(K)

Actions

draw - retrieves the top most card on the deck. When called with number of desired cards, it will try to draw the N cards, if not enough, draw all cards.
shuffle - randomizes the location of all cards, excluding the drawn cards
restore - returns the last N cards drawn on the bottom of the deck, if no number is provided, return all drawn cards.
Make sure that the class is encapsulated.

Answers

In the Deck Builder, initialize the 52 cards (along with the 4 jokers, which should be called “wild” and the suit is “wild”).

Public class Deck

   private final List<Carta> Deck;

   public Baralho() {

       listaCartas = new ArrayList<>();

       String[] naipes = {"club", "spade", "heart", "diamond"};

       int pos = 0;

       Carta c;

with this code we will be able to create the Deck, initialize the 52 cards together with the 4 jokers.

Learn more about Deck in https://brainly.com/question/1660537

     


Georgia is using a specific type of encryption method that only codes a certain section of the files on her hard drive. What type of
encryption is Georgia using?
A device encryption
B. private key encryption
C. volume encryption
D.
half encryption

Answers

I think it’s d but I’m not sure

Question 6 (5 points)
Raquel is searching for jeans online. She wants to make sure that she protects her
private information when she purchases items online. How can Raquel find out if her
private information will be safe on a particular website?
Asking her friends if they've used this website
Buying the jeans and checking her bank account occasionally
Requesting an email from the company for more information
Reading the website's privacy policy

Answers

While buying jeans online, Raquel find out if her private information will be safe on a particular website by reading website's privacy policy.

What is private information?

The information like phone number, passwords, birthdates or IP address about an individual person has entered while logging or signing up on a website.

When Raqual is signing up on the shopping website, she must read the company's website privacy policies appeared before making any orders and start using the interface.

Thus, Raquel must read website's privacy policy.

Learn more about private information.

https://brainly.com/question/12839105

#SPJ2

Describe two ways methods that cab be used to help stop hacking

Answers

Answer:

Use a firewall

Install antivirus software.

Explanation:

In this Bash looping construct, you want to print integers from 0 to 5, one integer per line. What keyword should replace the blank (__________) in the code

Answers

The  "For" keyword that should replace the blank  in the code

What are Python keyword?

In Python, there are found to be thirty-five keywords. Some of them are:

And Continue For Lambda Try, etc.

The for Keyword that is known to be one of the most common loop in Python is said to be for loop. It is designed by putting the Python keywords for and in.

Learn more about Python keyword from

https://brainly.com/question/13259727

Other Questions
The record high temperature on January 15 is 41F. The record low temperature on that day is -16F. What is the difference in the record temperatures? Write the difference in the box. Communication that influences the attitudes or behaviors of others is called ____ or the art of persuasion. please help me and thank youWhy do you people want to learn about the environment and the issues of it in, civic responsibility? (Few sentence please) Which statement best describes the association between variable X and variable Y?perfect negative associationno associationmoderate positive associationstrong negative association Which of the following is a factor for teachers being invested as stakeholders in education?O Building future opportunitiesO Gaining recognitionO Making a difference for studentsO Seeking media coverage How can you use a sequence of transformations to map a preimage to its image? 25 POINTS. If 16 ounces of chlorine are needed in a 12,500-gallon pool, how many ounces of chlorine are needed in a 5,000-gallon pool? 7.6 ounces 3.2 ounces 6.4 ounces 5.9 ounces Why road transportation is safer than air transportation Have a nice day! Keep up the good work and eat some cookies!! True or False Plato would say that the form of water participates in the mediterranean sea, the nile and a puddle. The 50-30-20 rule recommends spending how much of a budget on needs, wants, and savings/debt?. What effect did the breakup of the Soviet Union have on the Cold War? The Cold War became a more critical issue. The Cold War continued with Russia only. The Cold War continued, unaffected. The Cold War came to an end. can you guys please help me on my homework? It would mean a lot to me :) Hi, this is a reminder that your required customer obsession training is due by the end of the day today. You must complete this training for your team to meet the 100% completion goal. If there are any questions, please let me know. Thank you, mark tan. A town with a population of 5,000 grows 3% per year. Find the population at the end of two years using the Growth and Decay method. if u dont know the answer then dont say nothing if u do pls help How does the evolutionary process contradict the second law of thermodynamics? She could use bags, but this is not the greatest number she could use. PLEASE HELP!!! ILL GIVE BRAINIEST!!!!!! SHOW UR WORK!!Mr. Chen must wear a dress shirt and a tie to work. Each day he picksone of his 6 ties at random, Design a simulation that could be used tomodel this situation Question 8 (1 point)Por qu menciona el presentador lo ertico?abCree que es una parte importante del fundacin de los mitos.Seala que es un tema importante en toda la obra de Garca Mrquez.Hace que las mujeres sean ms importantes que los hombres en este relato.Es la razn por la cual los hombres del pueblo no crean que Esteban tenga podeOd