Create a Produceclass that hasan instance variable of type Stringfor the name, appropriate constructors, appropriate accessor and mutator methods, and a public toString() method. Then create a Fruitand a Vegetableclass that are derived from Produce. These classes should have constructors that take the nameas a Stringand invoke the appropriate constructor from the base class to set the name.Also, they should override toStringmethod to display the nameof the produce and its type. For instance, Mangois a Fruitand Caulifloweris a Vegetable. Finally, create a class called TruckOfProducethat will keep track of the boxes of Vegetablesand Fruitsadded in to the truck. This class should use an array of Produceto store both Vegetableand Fruitobjects.

Answers

Answer 1
Answer:

Answer:

you suck

Explanation:


Related Questions

In an e-credit card transaction the clearinghouse plays the following role:A. validates and verifies the sellers payment informationB. initiates the transfer of moneyC. transfers funds between the sellers bank and the buyers bankD. all of the above
Subtract (100000)2 from (111)2 using 1s and 2s complement method of subtraction​
What is the second stage of information processing cycle​
Write a program that meets the following requirements.Create two stages in a programCreate a pane using FlowPane in each stageAdd three buttons to each paneDirections Create a class named FlowPaneDemo extends ApplicationCreate user interface using FlowPaneAdd the instances of 3 Buttons to pane1 created by FlowPane and other 3 instances of Buttons using FlowPane to pane2Create scene1 for pane1 with a specific size and scene2 for pane2 with a different sizeSet different titles to two stages and display two stagesThe output should look like the screen belowProvide appropriate Java comments
Jeff types a sentence She wore a new dress yesterday. He erroneously typed w instead of e in the word dress. What is the accuracy of the typed sentence?

What is the purpose of creating a PST file?Question 18 options:
a)To document an antivirus pattern that continues to be sent to your mailbox
b)To insert as a Signature for all outgoing emails
c) To save your emails so that you can restore your mailbox if necessary
d)To create a file that deleted emails will be sent to for deletion

Answers

The purpose of creating a PST file is to

c) To save your emails so that you can restore your mailbox if necessary

Explanation:

  • A PST file is a personal folder file in Microsoft Outlook. In Outlook, the storage limit for a single user's . PST file is 2 GB. PST stands for personal storage.
  • A PST file, or personal storage table (. pst) file, is a Microsoft Outlook Data File that stores a user's Outlook data for POP3, IMAP and web-based mail accounts, including all mail folders and the items within the folders, such as emails, email attachments, to do items and appointments, contacts and more.
  • In computing, a Personal Storage Table (. pst) is an open proprietary file format used to store copies of messages, calendar events, and other items within Microsoft software such as Microsoft Exchange Client, Windows Messaging, and Microsoft Outlook.
  • The purpose of the PST file was, like it is today, to provide end users with a way to create local archives of their server-based email.
  • As a result, PST files provided end users with a means of expanding their email storage by creating and maintaining one or more local archives.

What makes a computer a computer?​

Answers

Answer:

A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and process data. You may already know that you can use a computer to type documents, send email, play games, and browse the Web

Explanation:

Follow me..............

central processor unit (CPU)

memory (ram)

input (mouse keyboard)

output (monitor or printer)

browse the web

ability to store retrieve and process data

I don't rlly know much about technology but I hope this helps

In this chapter, you learned that although a double and a decimal both hold floating-point numbers, a double can hold a larger value. Write a C# program named DoubleDecimalTest that declares and displays two variables—a double and a decimal. Experiment by assigning the same constant value to each variable so that the assignment to the double is legal but the assignment to the decimal is not.

Answers

Answer:

The DoubleDecimalTest class is as follows:

using System;

class DoubleDecimalTest {

 static void Main() {

     double doubleNum = 173737388856632566321737373676D;  

    decimal decimalNum = 173737388856632566321737373676M;

   Console.WriteLine(doubleNum);

   Console.WriteLine(decimalNum);  }}

Explanation:

Required

Program to test double and decimal variables in C#

This declares and initializes double variable doubleNum

     double doubleNum = 173737388856632566321737373676D;

This declares and initializes double variable decimalNum (using the same value as doubleNum)

     decimal decimalNum = 173737388856632566321737373676M;

This prints doubleNum

   Console.WriteLine(doubleNum);

This prints decimalNum

   Console.WriteLine(decimalNum);

Unless the decimal variable is commented out or the value is reduced to a reasonable range, the program will not compile without error.

CHALLENGE 7.1.1: Initialize a list. ACTIVITY Initialize the list short.names with strings 'Gus', Bob, and 'Ann'. Sample output for the given program Gus Bob Ann 1 short_names- Your solution goes here 2 # print names 4 print(short_names[0]) 5 print(short names [11) 6 print(short_names[2])

Answers

Answer:

short_names = ["Gus", "Bob", "Ann"]

print(short_names[0])

print(short_names[1])

print(short_names[2])

Explanation:

There are some typos in your code. In addition to the missing part of the code, I corrected the typos.

First of all, initialize the list called short_names. The list starts with "[" and ends with "]". Between those, there are must be the names (Since each name is a string, they must be written between "" and there must be a semicolon between each name)

Then, you can print each name by writing the name of the list and the index of the names between brackets (Index implies the position of the element and it starts with 0)

What additional hindrances do criminal investigators face when dealing with computer crimes aside from the obvious struggle with the ever-changing technological world?​

Answers

Answer:hackers

Explanation:

Write a C++ program to find the number of pairs of integers in a given array of integers whose sum is equal to a specified number.

Answers

Answer:

int main()

{

   int A1= {5,3,4,8,9,0,7};

   int SArri1 = sizeof(A1);

  printf("Original array: ");

   

   for (int i=0; i < SArri1;i++)  

   printf("", A1[i] );

   

   int i, sum = 20, n= 0;

   printf("\nArray pairs whose sum equal to 20: ");

   

   for (int i=0; i<SArri1; i++)

       for (int j=i+1; j<SArri1; j++)

           if (A1[i]+A1[j] == sum)

             {

              Printf(“\n”, array1[i])

Printf(“,”,array1[j]);

               n++;

             }

 

  printf("\nNumber of pairs whose sum equal to 20: ",n)

   return 0;

}

Explanation:

First of all, you should create the array of integers, and put random numbers. Then you have to save in a constant the size of the array (in this  code is called SArr1) With a for you can print all the numbers that are on the array because then you will print all array pairs whose sum is equal to  a specified numer. in this code we are going to use 20.

then with a condition (if) you are going to compare one of number of the array with all the others and check if its equal to 20. If yes, it going to print the numbers that answer to that condition and it's going to add +1 to the variable n (for this you will need to use two bucles for)

Then you can print the number of pairs whose sum is equal to 20 by printing n