Answer:
Explanation:
The following code is written in Java and creates all of the necessary classes as requested so that the main class runs perfectly without having to change anything...
package sample;
class InstrumentTester {
public static void main(String[] args) {
/*** Don't Change This Tester Class!** When you are finished, this should run without error.*/
Wind tuba = new Wind("Tuba", "Brass", false);
Wind clarinet = new Wind("Clarinet", "Woodwind", true);
Strings violin = new Strings("Violin", true);
Strings harp = new Strings("Harp", false);
System.out.println(tuba);
System.out.println(clarinet);
System.out.println(violin);
System.out.println(harp);
}
}
class Wind extends Instrument {
boolean usesReef;
public Wind(String name, String family, boolean usesReef) {
this.setName(name);
this.setFamily(family);
this.usesReef = usesReef;
}
public boolean isUsesReef() {
return usesReef;
}
public void setUsesReef(boolean usesReef) {
this.usesReef = usesReef;
}
}
class Strings extends Instrument{
boolean usesBow;
public Strings (String name, String family, boolean usesBow) {
this.setName(name);
this.setFamily(family);
this.usesBow = usesBow;
}
public Strings (String name, boolean usesBow) {
this.setName(name);
this.setFamily("String");
this.usesBow = usesBow;
}
public boolean isUsesBow() {
return usesBow;
}
public void setUsesBow(boolean usesBow) {
this.usesBow = usesBow;
}
}
class Instrument{
private String family;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getFamily() {
return family;
}
public void setFamily(String family) {
this.family = family;
}
public String toString () {
System.out.println(this.getName() + " is a member of the " + this.getFamily() + " family.");
return null;
}
}
What feature allows a person to key on the new lines without tapping the return or enter key
The feature that allows a person to key on new lines without tapping the return or enter key is called word wrap
How to determine the featureWhen the current line is full with text, word wrap automatically shifts the pointer to a new line, removing the need to manually press the return or enter key.
In apps like word processors, text editors, and messaging services, it makes sure that text flows naturally within the available space.
This function allows for continued typing without the interruption of line breaks, which is very helpful when writing large paragraphs or dealing with a little amount of screen space.
Learn more about word wrap at: https://brainly.com/question/26721412
#SPJ1
Add code to ImageArt to start with your own image and "do things to it" with the goal of making art. You could, for example, change the brightness and blur it. Or you could flip colors around, and create a wavy pattern. In any case, you need to perform at least two transforms in sequence.
Attached an example of how you can modify the code to apply brightness adjustment and blur effects to the image.
What is the explanation for the code?Instruction related to the above code
Make sure to replace "your_image.jpg" with the path to your own image file.
You can experiment with different image processing techniques, such as color manipulation, filtering,edge detection, or any other transformations to create unique artistic effects.
Learn more about code at:
https://brainly.com/question/26134656
#SPJ1
which of the following is expressed as the percentage of time a system responds properly to requests?
The concept of availability describes the percentage of time that a system responds well to requests, expressed as a percentage over time.
What is the importance of concept of availability?It is a system concept that can be scaled up and down to meet your needs. Percentage of time that the system successfully responded to requests. Expressed as a percentage over time. A system must have 100% uptime to be considered available.
What is a measure of a system's ability to provide functionality when the user requests it?Usability is a measure of whether a given user can use a product/design in a given context to effectively, efficiently and satisfactorily achieve a defined goal.
What term refers to a device or system that can take over in case of failure?Resilience refers to the ability of a system's "computers, networks, cloud clusters, etc." Operations can continue without interruption in the event of failure of one or more components.
To learn more about computer system visit:
https://brainly.com/question/2612067
#SPJ4
The ____ tool can generate a report that can show an attacker how a Web site is structured and lists Web pages that can be investigated for further information.
Paros
Whois
Netcat
Dig
What are some of the ways that people communicate or share with others over digital
media?
Answer:
Social networks, apps, websites.
Explanation:
Social media allows others to talk during the pandemic! Weather or not its "Tik-tak" or "Facebok", "Twiter", etc. Social media has made a huge impact on our society as we know it. Social media has broadened our social life now that we can call each other and see each other digitally while a county away. Or even share something on the internet to a million different eyes! Social media also has negative impacts such as cyberbullying and other things.
~ LadyBrain
HELPPPP THESE STATEMENTS DESCRIBE DTP
The correct statements that describe DTP (Desktop Publishing) are:
DTP treats graphics and text boxes differently.
DTP lets you resize and rotate graphics.
DTP helps workers produce documents that improve communication.
What is the statements that describe DTP.DTP refers to the process of utilizing specialized operating system and finishes to create and design miscellaneous types of documents, in the way that brochures, flyers, newsletters, papers, books, and added printed fabrics.
DTP spreadsheet allows consumers to integrate text, representations, drawings, and other components to form visually attractive and professionally formatted documents.
Learn more about Desktop Publishing from
https://brainly.com/question/7221406
#SPJ1
Question #2
Multiple Select
These statements describe DTP.
DTP treats graphics and text boxes differently.
DTP lets you resize and rotate graphics.
DTP helps workers produce documents that improve communication.
Many DTP features are included in WP programs.
WP and DTP are the same.
which country did poker originate from?
Poque, a game that dates back to 1441 and that was supposedly invented in Strasbourg, seems to be the first early evidence of the French origin of the game. Poque in particular used a 52-card deck
France/French
xamine the following output:
Reply from 64.78.193.84: bytes=32 time=86ms TTL=115
Reply from 64.78.193.84: bytes=32 time=43ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=47ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=73ms TTL=115
Reply from 64.78.193.84: bytes=32 time=46ms TTL=115
Which of the following utilities produced this output?
The output provided appears to be from the "ping" utility.
How is this so?Ping is a network diagnostic tool used to test the connectivity between two network devices,typically using the Internet Control Message Protocol (ICMP).
In this case, the output shows the successful replies received from the IP address 64.78.193.84,along with the response time and time-to-live (TTL) value.
Ping is commonly used to troubleshoot network connectivity issues and measureround-trip times to a specific destination.
Learn more about utilities at:
https://brainly.com/question/30049978
#SPJ1
What are some best practices for file management
Answer:
1. Devise a Good File Naming Strategy
2. Build a Forder Structure
3. Optimize with MetaData
4. Plan for Retention
5. Dump the Dead Weight
6. Bring your File Infrastructure Online
7. Think about Cloud Storage
which system is made up of two difference components
Answer:
First, it is important to realize that the nervous system is divided into two parts: the central nervous system and the peripheral nervous system.
Haley is responsible for checking the web server utilization. Which things should she review while checking the server utilization?
While checking the server utilizations, she should review____ and ____.
First box?
CPU
cables
backup media
Second box?
RAM
web application
antivirus
Answer:
While checking the server utilizations, she should review CPU and RAM.
Explanation:
Answer:
CPU and RAM
Explanation:
being the server administrator how often will you conduct a server maintenance?
When you have backed into a parking space, you know your back end is close to but not over the paint line when you see the back paint line... a)-in the rearview mirror b)-in the middle of the front side c)-passenger mirror d)-disappear under the car e)-in the middle of the back side passenger windows
When you have backed into a parking space, you know your back end is close to but not over the paint line when you see the back paint line is in the middle of the back side passenger windows. The correct option is e.
What is a parking space?Due to their frequent use as the first and last mile of a journey, parking lots can play a significant role as a point of transition for drivers from their vehicles to other modes of transportation. In the design process, this gateway role is frequently disregarded.
They go by a variety of names, depending on the maker and location, including parking blocks, parking stops, and curb stops. No matter what name it goes by, the concrete or rubber stop erected at the front of parking spaces across the nation is known as a parking block.
Therefore, the correct option is e)-in the middle of the back side passenger windows.
To learn more about parking spaces, refer to the link:
https://brainly.com/question/13571646
#SPJ1
quick topic
if i make severs out of Ps4's, and Xbox'es which server would be more likly to crash ?
explain give an example
Answer: Xbox because ps4 has more people on it.
Explanation: for example if I had 2 computer and 1 computer it will be easier to make servers on the one computer
What is the correct command to shuffle the following list? import random people= ["Peter", "Paul", "Mary', 'Jane'] O shuffle (people) Opeople.shuffle() random.shuffle (people) random.shufflelist(people)
Answer:
import random
people = ["Peter", "Paul", "Mary", "Jane"]
random.shuffle(people)
Explanation:
List the five component of information system
Answer:
hardware, software, database, network and people
The input nums is supposed to be an array of unique integers ranging from 1 to nums.length (inclusive). However, there is a mistake: one of the numbers in the array is duplicated, which means another number is missing. Find and return the sum of the duplicated number and the missing number. Example: in the array [4, 3, 3, 1], 3 is present twice and 2 is missing, so 3 2
The program is an illustration of loops.
Loops are used to perform repetitive and iterative operations.
The program in Python where comments are used to explain each line is as follows:
#This intializes the list
nums = [5,4,4,2,1]
#This gets the length of the list
size = len(nums)
#This iterates through the list
for i in range(size):
#The following if condition determines the repeating number
if nums[abs(nums[i])-1] > 0:
nums[abs(nums[i])-1] = -nums[abs(nums[i])-1]
else:
repeating = abs(nums[i])
#The following if condition determines the missing number
if nums[i]>0:
missing = i + 1
#This calculates and prints the sum of the missing and the repeating numbers
print(repeating+missing)
Read more about similar programs at:
https://brainly.com/question/13549861
working with the tkinter(python) library
make the window you create always appear on top of other windows. You can do this with lift() or root.attributes('-topmost', ...), but this does not apply to full-screen windows. What can i do?
To make a tkinter window always appear on top of other windows, including full-screen windows, you must use the wm_attributes method with the topmost attribute set to True.
How can I make a tkinter window always appear on top of other windows?By using the wm_attributes method in tkinter and setting the topmost attribute to True, you can ensure that your tkinter window stays on top of other windows, even when they are in full-screen mode.
This attribute allows you to maintain the window's visibility and prominence regardless of the current state of other windows on your screen.
Read more about python
brainly.com/question/26497128
#SPJ1
PLEASE HURRY I WILL GIVE BRAILIEST TO WHO EVER ANSWERS AND IS CORRECT
Select all benefits of using a wiki for business.
inexpensive
accessible twenty-four hours per day and seven days per week
online conversation
quick and easy editing
document sharing
Answer:
B, D, E is the answers I think
Answer:
Accessible twenty-four hours per day and seven days per week
Quick and easy sharing
Document sharing
Identify the correct syntax to create a linked list of Integer values.
Group of answer choices
LinkedList<> linkedList = new Integer LinkedList;
LinkedList linkedList = new LinkedList (Integer);
LinkedList linkedList = new LinkedList();
Integer LinkedList linkedList = new LinkedList();
This statement creates a new LinkedList object that stores Integer values. LinkedList linkedList = new LinkedList().
How should a linked list be created using the correct code?Structure and pointers can be used to implement a linked list in C. struct LinkedList *next, struct LinkedList int data, and; Each node in the list is made using the aforementioned definition. The element is stored in the data field, and the following is a pointer to the address of the following node.
How is a linked list with values declared?Initially, a LinkedList of type String is declared. Next, to add values to the LinkedList, we utilise different iterations of the add method, such as add, andFirst, addLast, addAll, etc. Thus, we may add the component right.
To know more about LinkedList visit:-
https://brainly.com/question/22786070
#SPJ1
Is the use of technology to control human behavior a necessary evil or an
unethical breach of privacy and freedom?
Answer:
The use of technology to control human behavior is a very contentious topic and the answer to this question depends on the individual's opinion and values. Some may argue that technology can be used to limit freedom, however, it can also be used to protect people from harm, such as in the case of automated speed cameras limiting the speed of drivers to prevent accidents. Others may argue that the use of technology to control behavior is an unethical breach of privacy and freedom as it can be used to monitor and restrict people's actions. Ultimately, it is up to the individual to decide whether the use of technology to control human behavior is a necessary evil or an unethical breach of privacy and freedom.
Code practice
Write a program that will ask a user how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is divisible by 3 or not. Continue doing this as many times as the user indicated. Once the loop ends, output how many numbers entered were divisible by 3 and how many were not divisible by 3.
Sample Run :
How many numbers do you need to check? 5
Enter number: 20
20 is not divisible by 3.
Enter number: 33
33 is divisible by 3.
Enter number: 4
4 is not divisible by 3.
Enter number: 60
60 is divisible by 3.
Enter number: 8
8 is not divisible by 3.
You entered 2 number(s) that are divisible by 3.
You entered 3 number(s) that are not divisible by 3.
Answer:
n = int(input("How many numbers would you like to check? "))
divisible_count = 0
not_divisible_count = 0
for i in range(n):
num = int(input("Enter a number: "))
if num % 3 == 0:
print(str(num) + " is divisible by 3")
divisible_count += 1
else:
print(str(num) + " is not divisible by 3")
not_divisible_count += 1
print("You checked " + str(n) + " numbers.")
print("Of those, " + str(divisible_count) + " were divisible by 3.")
print("And " + str(not_divisible_count) + " were not divisible by 3.")
Explanation:
You would run the program, it will ask the user to enter a number of integers, to check after that it will ask to enter numbers one by one, for each input, it will check if it's divisible by 3 or not, and keep counting how many were divisible or not divisible. After the loop ends, the program will output a summary of the total numbers checked, how many of them were divisible by 3 and how many were not.
You may further adjust it to match the requirement you need
Write a procedure with a irative loop inside that adds the users numbers
Answer:
The first answers is with a loop the second one is straight forward
Answer:
The basic layout would be
Function name and in brackets its perimeter values
The while inside declared a variable
Then and the perimeter values and divide by local variable
And end function
Which type of evidence should victims collect to help officials catch cyber bullies ?
-home addresses
-birthdays
-social media
-usernames user
-passwords
Answer:
Social media
Explanation:
What is the decimal equivalent of the binary number 110100? O A 55 OB. 52 OC. OD 58
Answer:
110100₂ = 52₁₀
Microsoft
Excel Module 6
Answer:
what Is your question?
types of keyboards
QUESTION 1 Choose a term from COLUMN B that matches a description in COLUMN A. Write only the letter (A-L) next to the question number (1.1-1.10) in the ANSWER BOOK. COLUMN A 1.1. Substances that provide nourishment to the body 1.2. How you think and feel about something 1.3. Helps to cope with the challenges of being a student Exercise relating to increasing your heart rate 1.5. Having traits or qualities traditionally associated with 1.4. men 1.6. Seeing, hearing, or sensing something that is not really there 1.7. 1.8. Leaving everything till the last minute Is Chapter 2 in the Constitution of SA 1.9. Group of people who share notes and information 1.10. Ability to exercise for extended period of time COLUMN B A hallucination B nutrients C study group D procrastinate E endurance F Bill of Rights G Cardio-vascular H masculine I attitude J resilience K strength L flexibility
Answer:
1.1 B nutrients 1.2 I attitude 1.3 J resilience 1.4 H masculine 1.5 L flexibility 1.6 A hallucination 1.7 D procrastinate 1.8 F Bill of Rights 1.9 C study group 1.10 E endurance
Explanation:
How many subnets and host per subnet are available from network 192.168.43.0 255.255.255.224?
It should be noted that the number of subnets and hosts available from network 192.168.43.0 255.255.255.224 is 8 and 32, respectively. Only 30 of the 32 hosts are generally functional.
What is a host in computer networking?A network host is a computer or other device that is connected to a computer network. A host can serve as a server, supplying network users and other hosts with information resources, services, and applications. Each host is given at least one network address.
A computer network is a group of computers that share resources on or provided by network nodes. To communicate with one another, computers use common communication protocols over digital links.
So, in respect to the above response, bear in mind that we may compute the total number of: by putting the information into an online IPv4 subnet calculator.
8 subnets; and30 hosts available for 192.168.43.0 (IP Address) and 255.255.255.224 (Subnet)
Learn more about hosts:
https://brainly.com/question/14258036
#SPJ1
A Quicksort (or Partition Exchange Sort) divides the data into 2 partitions separated by a pivot. The first partition contains all the items which are smaller than the pivot. The remaining items are in the other partition. You will write four versions of Quicksort:
• Select the first item of the partition as the pivot. Treat partitions of size one and two as stopping cases.
• Same pivot selection. For a partition of size 100 or less, use an insertion sort to finish.
• Same pivot selection. For a partition of size 50 or less, use an insertion sort to finish.
• Select the median-of-three as the pivot. Treat partitions of size one and two as stopping cases.
As time permits consider examining additional, alternate methods of selecting the pivot for Quicksort.
Merge Sort is a useful sort to know if you are doing External Sorting. The need for this will increase as data sizes increase. The traditional Merge Sort requires double space. To eliminate this issue, you are to implement Natural Merge using a linked implementation. In your analysis be sure to compare to the effect of using a straight Merge Sort instead.
Create input files of four sizes: 50, 1000, 2000, 5000 and 10000 integers. For each size file make 3 versions. On the first use a randomly ordered data set. On the second use the integers in reverse order. On the third use the
integers in normal ascending order. (You may use a random number generator to create the randomly ordered file, but it is important to limit the duplicates to <1%. Alternatively, you may write a shuffle function to randomize one of your ordered files.) This means you have an input set of 15 files plus whatever you deem necessary and reasonable. Files are available in the Blackboard shell, if you want to copy them. Your data should be formatted so that each number is on a separate line with no leading blanks. There should be no blank lines in the file. Even though you are limiting the occurrence of duplicates, your sorts must be able to handle duplicate data.
Each sort must be run against all the input files. With five sorts and 15 input sets, you will have 75 required runs.
The size 50 files are for the purpose of showing the sorting is correct. Your code needs to print out the comparisons and exchanges (see below) and the sorted values. You must submit the input and output files for all orders of size 50, for all sorts. There should be 15 output files here.
The larger sizes of input are used to demonstrate the asymptotic cost. To demonstrate the asymptotic cost you will need to count comparisons and exchanges for each sort. For these files at the end of each run you need to print the number of comparisons and the number of exchanges but not the sorted data. It is to your advantage to add larger files or additional random files to the input - perhaps with 15-20% duplicates. You may find it interesting to time the runs, but this should be in addition to counting comparisons and exchanges.
Turn in an analysis comparing the two sorts and their performance. Be sure to comment on the relative numbers of exchanges and comparison in the various runs, the effect of the order of the data, the effect of different size files, the effect of different partition sizes and pivot selection methods for Quicksort, and the effect of using a Natural Merge Sort. Which factor has the most effect on the efficiency? Be sure to consider both time and space efficiency. Be sure to justify your data structures. Your analysis must include a table of the comparisons and exchanges observed and a graph of the asymptotic costs that you observed compared to the theoretical cost. Be sure to justify your choice of iteration versus recursion. Consider how your code would have differed if you had made the other choice.
The necessary conditions and procedures needed to accomplish this assignment is given below. Quicksort is an algorithm used to sort data in a fast and efficient manner.
What is the Quicksort?Some rules to follow in the above work are:
A)Choose the initial element of the partition as the pivot.
b) Utilize the same method to select the pivot, but switch to insertion sort as the concluding step for partitions that contain 100 or fewer elements.
Lastly, Utilize the same method of pivot selection, but choose insertion sort for partitions that are of a size equal to or lesser than 50 in order to accomplish the task.
Learn more about Quicksort from
https://brainly.com/question/29981648
#SPJ1