The following are principles essential to a secure information system except for accountability.
Which is an essential principle of a secure information system?An essential principle of a secure information system is the concept of defense in depth. This is a multi-layered approach to security, which involves the use of multiple layers of security controls. These security controls can include technical measures, such as firewalls, encryption, and authentication protocols; physical measures, such as locked doors and access cards; and administrative measures, such as policies and procedures.
By using multiple layers of security controls, it becomes much more difficult for an attacker to penetrate the system.Furthermore, the presence of multiple layers of security also makes it easier to detect and respond to any attempts at unauthorized access.
The defense-in-depth approach is essential for protecting sensitive data and ensuring the integrity of information systems.
To learn more about information systems refer to:
brainly.com/question/24944623
#SPJ4
A B. 51 Red Yes 52 Red Yes 53 Red Yes 54 Blue No 55 Red Yes a Image not displaying? =IFNA(A51="Red","Yes","No") O=COUNTIF(A51="Red", "Yes","No") =SUMIF(A51="Red", "Yes","No") O=IF(A51="Red", "Yes","No") =SHOWIF(A51="Red", "Yes","No") E F Staff ID 19106 D 42 Conference Room Location 43 D East 44 C North 45 A South 46 E South 47 B South 48 49 =$D$44 19122 19107 19104 19147 Image not displaying? O C, North, 19122 O CA, E Ос, С, С C, South, South O C, South, 19104
The choice is =IF. (A51="Red","Yes","No") Print "Yes" in cell B51 if cell A51's content is Red; otherwise, print "No." The true response is C,C,C. The data of number D49 is taken exactly as the cell's content is linked to.
What do you mean by image?A digital picture is a binary description of visual data, whereas a photo is just a pictorial display of anything. These visuals could be ideas, graphics, or still shots from a video. An image seems to be a photograph that has been produced, copied, and saved electronically.
How come it's called an image?Images are assessed according to how well they depict the individual or thing they depict; the word "image" originates from the Latin phrase imitari, which means "to copy or imitate."
To know more about Image visit :
https://brainly.com/question/28730943
#SPJ4
It is common practice in object-oriented programming to make all of a class's a.fields private b.felde public
c.methods private d. fields and methodo public
In object-oriented programming, it's standard practice to keep all of a class's fields private.
Which oops features in Python limit access to properties and methods outside of a class' encapsulation of polymorphism, inheritance, and class methods?Now, "private members" can be used to really limit access to attributes and methods from within a class. Utilize a double underscore (__) in the prefix to designate the attributes or method as private members.
which one of the following approaches can't be substituted for by an object of the object class?Object declares three iterations of the notify method, notify, notifyAll, and getClass. These are all final techniques that cannot be changed.
To know more about object-oriented visit :-
https://brainly.com/question/26709198
#SPJ4
Using what you know about variables and re-assignment you should be able to trace this code and keep track of the values of a, b, and c as they change. You should also have a sense of any possible errors that could occur. Trace the code, and choose the option that correctly shows what will be displayed
According to the question, option a: 10 b: 17 c: 27 accurately depicts what would be revealed.
Which 4 types of coding are there?It's usual to find languages that are chosen to write in an extremely important, functional, straightforward, or object-oriented manner. These coding dialect theories and models are available for programmers to select from in order for them to meet their demands for a given project.
Is coding difficult?It is common knowledge that programming is one of the most difficult things to master. Given how different coding is from long - established teaching techniques, which would include higher education degrees in computer science.
To know more about Code visit :
https://brainly.com/question/8535682
#SPJ4
The Complete Question :
Using what you know about variables and re-assignment you should be able to trace this code and keep track of the values of a, b, and c as they change. You should also have a sense of any possible errors that could occur.
Trace the code, and choose the option that correctly shows what will be displayed.
1 var a = 3;
2 var b = 7;
3 var c = 10;
4 a = a + b;
5 b = a + b;
6 c = a + b;
7 console.log("a:"+a+" b:"+b+" c:"+c);
Ann, a user, reports that after setting up a new WAP in her kitchen she is experiencing intermittent connectivity issues. Which of the following should a technician check FIRST ?
A. Channels
B. Frequency
C. Antenna power level
D. SSID
Channels After installing a new WAP in her kitchen, Ann, a user, claims that she is having sporadic connectivity problems.
Which of the following provides the highest level of wireless security?There is consensus among experts that WPA3 is the best wireless security protocol when comparing WEP, WPA, WPA2, and WPA3. WPA3, the most recent wireless encryption system, is the safest option.
Is WEP preferable to WPA2?The WPA standard's second iteration is known as WPA2. Wep is the least secure of these standards, therefore if at all possible, avoid using it. However, using any encryption is always preferable to using none. Of the three, WPA2 is the safest.
To know more about WAP visit :-
https://brainly.com/question/13073625
#SPJ4
A(n) _______________ RFID tag uses a battery or external power source to send out and receive signals.
A battery is frequently the power source for an active RFID tag. an electronic identifying tool composed of an antenna and a chip. reads RFID (interrogator).
What is the practice of a hacker searching through trash for information known as?Dumpster diving is the activity of searching through trash for data. The trash may be in a public dumpster or at a location that is off-limits and needs unauthorized entry. Dumpster diving takes use of a human weakness, namely a lack of security awareness.
A dream hacker is what?Through audio and video samples, advertisers are putting advertisements into your mind. Whatever you want to call it—dream hacking, dream modification, dream intrusion—it has evolved into a marketing gimmick.
To know more about antenna visit:-
https://brainly.com/question/13068622
#SPJ4
In object-oriented analysis, objects possess characteristics called 1. properties 2. orientations 3. classes 4. inheritances
In object-oriented design, objects possess characteristics called properties, which the object inherits from its class or possesses on its own.
What is object-oriented analysis?This refers to the term that is used to describe and define the use of object-oriented programming and visual modeling to direct stakeholder communication and product quality during the software development process.
Object-oriented analysis and design is a technological approach for assessing and creating an application, system, or company and hence, they possess properties.
Read more about object-oriented analysis here:
https://brainly.com/question/15016172
#SPJ1
LAB: User-Defined Functions: Step counter A pedometer treats walking 2,000 steps as walking 1 mile. Define a function named Steps To Miles that takes an integer as a parameter, representing the number of steps, and returns a float that represents the number of miles walked. Then, write a main program that reads the number of steps as an input, calls function Steps ToMiles with the input as an argument, and outputs the miles walked, Output the result with four digits after the decimal point, which can be achieved as follows: Put result to output with 4 decimal places If the input of the program is: 5345 the function returns and the output of the program is: 2.6725 Your program should define and call a function: Function Steps ToMiles(integer userSteps) returns float numMiles 361108 2293206.qx3zay LAB ACTIVITY 5.9.1: LAB: User-Defined Functions: Step counter 0/10 1 Variables Not shown when editing Input Output Code Flowchart ENTER EXECUTION STEP RUN Execution speed Medium Submit for grading Signature of your work What is this?
The function StepsToMiles(userSteps) takes an integer as a parameter, representing the number of steps and returns a float that represents the number of miles walked by converting the steps into miles by dividing it by 2000.
What is the significance of the function StepsToMiles?The function StepsToMiles is used to convert the number of steps taken by a person into miles by dividing the number of steps taken by 2000. It is useful for tracking the distance covered by a person during walking or jogging. It takes an integer as a parameter, representing the number of steps and returns a float that represents the number of miles walked.
What is the role of main program in the given scenario?The main program is responsible for reading the number of steps as an input, calling the function StepsToMiles with the input as an argument, and outputting the miles walked. It takes input from the user, passes the input to the function StepsToMiles and receives the output in the form of miles walked. It then displays the output with four decimal places. The main program is responsible for driving the entire process by calling the function StepsToMiles and displaying the result to the user.
To know more about StepsToMiles(userSteps) Visit:
brainly.com/question/19263323
#SPJ4
Read the following selection from the section "The North Atlantic Deep Water." As the warm surface water of the Mediterranean evaporates, the water grows saltier and denser. This water exits the Mediterranean through the Strait of Gibraltar, the narrow channel between Spain and Morocco that connects the sea to the Atlantic Ocean. Which answer choice is the BEST definition of the word "evaporates" as used in the selection?
The answer choice that is the BEST definition of the word "evaporates" as used in the selection is option (B) to lose moisture.
What is evaporation?The word "evaporates" as used in the selection means to lose moisture, which is the process of liquid changing into a gas or vapor form, typically due to an increase in temperature or pressure.
Evaporation is a physical process by which a liquid changes into a gaseous state, typically due to an increase in temperature or pressure. In this context, the warm surface water of the Mediterranean loses its moisture due to heat and it becomes saltier and denser, this process is called evaporation.
Therefore, In the above context, it refers to the warm surface water of the Mediterranean becoming a gas or vapor due to the process of evaporation.
Learn more about evaporation from
https://brainly.com/question/24258
#SPJ1
See full question below
Read the following selection from the section "The North Atlantic Deep Water. As the warm surface water of the Mediterranean evaporates, the water grows saltier and denser This water exits the Mediterranean through the Strait of Gibraltar, the narrow channel between Spain and Morocco that connects the sea to the Atlantic Ocean. Which answer choice is the BEST definition of the word "evaporates" as used in the selection? (A) to become saltier (B) to lose moisture (C) to condense (D) lo dissolve
Digital recorder, internet, discussion boards, journal, cell phone, and video recorder are all tools used by
crowdsourcer
backpack journalist
public relation
ombudsman
Digital recorders, the internet, discussion boards, journals, cell phones, and video recorders are all tools used by crowdsourcers. Thus, the correct option for this question is A.
What do you mean by Crowdsourcing?Crowdsourcing may be characterized as a type of influencing people through involves seeking knowledge, goods, or services from a large body of people.
These people submit their ideas in response to online requests made either through social media, smartphone apps, or dedicated crowdsourcing platforms. The types of crowdsourcing may significantly include Wisdom of the crowd, crowd creation, crowdfunding, and voting.
Therefore, digital recorders, the internet, discussion boards, journals, cell phones, and video recorders are all tools used by crowdsourcers. Thus, the correct option for this question is A.
To learn more about Crowdsources, refer to the link:
https://brainly.com/question/11356413
#SPJ1
When preparing a computer to use a sideloaded app, which of the following commands activates a key?
a. Slmgr /ipk
b. Slmgr /ato ec67814b-30e6-4a50-bf7b-d55daf729d1e /activate
c. Slmgr /ipk
d. Slmgr /
One of the following commands, Slmgr /ipk, activates a key to get a machine ready to use a sideloaded app.
Which of the aforementioned techniques is employed in sideloading?One of the following scenarios frequently occurs: By employing a USB cable, software and files can be transferred between devices. Data can be sent between devices utilizing Bluetooth sideloading. Utilizing a USB drive or microSD card to transfer data between devices is known as external storage sideloading.
How can you stop people from going to the Windows Store?AppLocker can be used to prevent Microsoft Store. By setting up a rule for packaged apps, AppLocker may be used to restrict access to Microsoft Store apps. As the bundled software you wish to prohibit from client PCs, you will specify the name of the Microsoft Store app.
To know more about sideloaded app visit :-
https://brainly.com/question/15712822
#SPJ4
Select the best reason to include height and width attributes on an tag.
A.they are required attributes and must always be included
B.to help the browser render the page faster because it reserves the appropriate space for the image
C.to help the browser display the image in its own window
D.none of the above
The best reason to include height and width attributes on a tag is to aid the browser in rendering the page more quickly since it reserves the proper space for the image.
Which of the following justifications for adding height and width attributes to an IMG tag is the best?Because omitting them will prevent the browser from displaying the image, width and height dimensions for images should always be coded. The page will load quicker and the browser will be more effective.
while entering values for an image's height and width attributes?Height indicates an image's height in pixels. The term width = specifies an image's width in pixels. Use the to set values for an image's height and width attributes.
To know more about attributes visit:-
https://brainly.com/question/28163865
#SPJ4
The commercial activity of transporting goods to customers is called ______________.
Answer:
Logistics
Explanation:
Answer:
logiticals
Explanation:
Because the commercial activities if transportation good s to customers called ___
Can anyone please help answer this question?
What is a multi-dimensional database?
You ask one of your technicians to get the IPv6 address of a new Windows Server 2016 machine, and she hands you a note with FE80::0203:FFFF:FE11:2CD on it. What can you tell from this address?
This is a link-local address In EUI-64 format, you can see the MAC address of the node can tell from the address.
Link-local addresses are intended to be used for addressing a single link in situations without routers or for automatic address setup. It can also be used to interact with other nodes connected to the same link. An automatic link-local address is assigned.
In order to automatically configure IPv6 host addresses, we can use the EUI-64 (Extended Unique Identifier) technique. Using the MAC address of its interface, an IPv6 device will generate a unique 64-bit interface ID. A MAC address is 48 bits, whereas the interface ID is 64 bits.
To learn more about address
https://brainly.com/question/29065228
#SPJ4
Which local folder temporarily stores all sent mails until they are successfully sent to a recipient
Answer:
The outbox stores all outgoing emails until the Email programs sends them to a recipient.A computer or phone's outbox is a folder where emails that are awaiting sending are kept
Explanation:
Ben has to type a long letter to his friend. What is the correct keying technique that Ben should use
Using rapid, snappy strokes is the proper keystroke technique. The body should be sufficiently upright in front of the keyboard for proper keyboarding posture.
Why is accurate keying so crucial?Your general health will benefit from touch typing as well. It stops you from hunching over your keyboard in order to find the proper keys. Instead, you maintain eye contact with the screen in front of you. Correct typing encourages excellent posture and helps to avoid back or neck pain.
What is an example of a keystroke?The pressing of a single key on a keyboard, whether real or virtual, or on any other input device is referred to as a keystroke. In other words, a single key push is regarded as a keystroke.
To know more about proper keystroke technique visit :-
https://brainly.com/question/29808656
#SPJ4
A dial-up access network typically has high ___________ delays compared to most other access networks. Pick the best answer
With a dial-up connection, you can access the Internet at data transfer rates (DTR) of up to 56 Kbps using a regular phone line and an analog modem.
Dial-up access is it?refers to using a modem and the public telephone network to connect a device to a network. Dial-up access is essentially identical to a phone connection, with the exception that computer devices rather than people are the participants at both ends.
Dial networking: What is it?Dial-up networking is the collection of protocols and software used to link a computer to an online service, a distant computer, or an Internet service provider using an analog modem and POTS (plain old telephone system). The most popular kind of computer connection to the Internet is dial-up networking.
To know more about DTR visit:-
https://brainly.com/question/12914105
#SPJ4
Which of the following Intel CPUs is a low power processor that would be found in smartphones and tablets
A: Intel Atom is the Intel CPU having a low-power processor that would be found in tablets and smartphones.
Intel atom is a low-power, lowe cost, and low- performance processor that was originally made for budget devices. It is known primarily for netbooks, which were very popular in the early 2010s. However, it has also been used in low-end laptops, smartphones, and tablets. No matter what the Intel Atom is used for, one thing is obvious that it is not good at gaming.
Thus, the Intel CPU's low-power processor is known to be as Intel Atom.
"
Complete question:
Which of the following Intel CPUs is a low power processor that would be found in smartphones and tablets
A: Intel Atom
B: Intel i-core
"
You can learn more about processor at
https://brainly.com/question/614196
#SPJ4
Which command line tool in Windows and other operating systems works by sending ICMP requests to remote machines and listens for ICMP responses
Ping command line tool in Windows and other operating systems works by sending ICMP requests to remote machines and listens for ICMP responses
What does the ping command do?The most used TCP/IP command for analyzing connectivity, reachability, and name resolution is ping. This command displays Help material when used without any parameters. This command can be used to check the computer's IP address as well as its name.
How do I ping a URL in cmd?When the Run Prompt box appears, hit Enter or click OK while holding down the Windows key and the R key simultaneously. Type "cmd" into the search bar. Enter the destination (either an IP address or a domain name) after typing "ping" in the Command Prompt window.
To know more about Ping command visit
brainly.com/question/29974328
#SPJ4
Assume that you are the data scientist for the online auction site superbids. To increase bidding activity, you want to display items to a user that people with similar characteristics and buying patterns have bid on. Which technique are you most likely to use
You're most likely to employ linear regression as a method.
How does linear regression work?When predicting a variable's value based on the value of another variable, linear regression analysis is utilized. The dependent variable is the one you're trying to forecast. The independent variable is the one that you are utilizing to forecast the value of the other variable.
Where does linear regression work best?In order to more precisely assess the nature and strength of the between a dependent variable and a number of other independent variables, linear regression is used. It aids in the development of predictive models, such as those that forecast stock prices for businesses.
To know more about linear regression visit:-
brainly.com/question/15583518
#SPJ4
Your Core i5 fan has a four-pin connector, but your motherboard only has a single three-pin header with the CPU_FAN label. Which of the following will be the easiest solution to get the necessary cooling for your CPU ?
A. Plug the four-pin connector into the three-pin header.
B. Add an extra chassis fan.
C. Leave the plug disconnected and just use the heat sink.
D. Buy an adapter.
Connect the 3-pin header to the 4-pin connection. enables the fan's speed to be adjusted. However, the CPU FAN labeled three-pin header is the only one present on your motherboard.
What does a computer's CPU do?
A central processing unit, sometimes known as a CPU, is a piece of electrical equipment that executes commands from software, enabling a computer or other device to carry out its functions.
Why is CPU used? What is CPU?
A simple scale called AVPU can be used to quickly assess a patient's general state of awareness, responsiveness, or mental condition. It is utilized in emergency departments, regular hospital wards, pre-hospital care, and critical care units.
To know more about CPU visit:
https://brainly.com/question/16254036
#SPJ4
Which step of the Department of Defense Risk Management Process consists of the activities to develop, implement, implement and document
The program's activities to create, put into practice, and record the procedures it will take to mitigate certain risks make up the risk management process planning process.
What are the steps in the risk management procedure for the Department of Defense?The five key steps of the risk management process are planning, identification, analysis, mitigating risk, and monitoring.
Which of the following phrases describes the procedure of monitoring and evaluating risk as you get more knowledge about risk in projects?The process of locating and evaluating potential problems that can adversely affect important corporate endeavors or projects is known as risk analysis. This process is used to help businesses avoid or reduce particular risks.
To know more about program's visit:-
https://brainly.com/question/11023419
#SPJ4
Match the type of system to the application. Maintaining the temperature in a manufacturing plant Answer 1 Choose... Air conditioning single-family homes Answer 2 Choose... Air conditioning high-rise office buildings Answer 3 Choose...
The type of system and application,
Homes: Residential
Office buildings: Commercial
Manufacturing plant: Industrial
What kind of system is designed to distribute air around a building and resupply oxygen?The process of exchanging or replacing air in any place to provide excellent indoor air quality comprises regulating temperature, replenishing oxygen, and removing moisture, smells, smoke, heat, dust, airborne bacteria, carbon dioxide, and other gases. This is known as ventilation (the "V" in HVAC).
Why are water-cooled condensers used by so many central system chillers?However, not all chillers are effective for use in commercial settings. Because of their superior heat transmission, higher energy efficiency, and longer lifespan, water-cooled chillers are suited. They are frequently employed in big and medium-sized facilities with reliable and effective water supplies.
To know more about manufacturing plant visit:
https://brainly.com/question/14203661
#SPJ4
Match each word to its correct meaning. 1 . images displayed on the screen that enables the user to interact with the computer; abbreviated GUI central processing unit 2 . physical parts of a computer, such as the motherboard or hard disk file 3 . breaks in the action of a program using the operating system graphical user interface 4 . core program of a computer operating system hardware 5 . the chip than runs the basic operations of the computer; abbreviated CPU interrupts 6 . a collection of data, such as a program or document kernel 7 . format for storage of digital data memory
Images displayed on the screen that enables the user to interact with the computer; abbreviated GUI graphical user interface.
What are the names of the actual components of a computer?Hardware refers to a computer system's actual physical parts. It is a group of actual hardware components for a computer system. A computer chassis, monitor, keyboard, and mouse are included.
Physical parts of a computer, such as the hard disk file are Computer hardware .Breaks in the action of a program using the graphical user interface (GUI)Core program of a computer operating system .The chip than runs the basic operations of the computer;CPUA collection of data, such as Database.Format for storage of digital data memory are files, blocks, and objects.To learn more about graphical user interface refer to:
https://brainly.com/question/14758410
#SPJ4
Provide the type and hexadecimal representation of the following instruction: sw $t1, 32 ($t2) (20pt)
sw $t1, 32($t2) \ \$$\textbf{From fig 2.5} \\ sw Opcode = 43 = 101011 \ \ Immediate address (16-bit address) = 32 = 0000000000100000 \\ This is an I-Type instruction. \\$$\textbf{From fig 2.14} \\ the value of destination Register $t1 = 9 = 01001 \\ the value of source Register $t2 = 10 = 01010 \\ So, the binary representation is: \\$(1010 1101 0100 1001 0000 0000 0010 0000)_{2}Afterconvertthehex.representationis:Afterconvertthehex.representationis:$$\textbf{0xAD490020}$
To know more about hexadecimal representation visit:
https://brainly.com/question/13041189
#SPJ4
The instruction "sw $t1, 32($t2)" is a MIPS assembly language instruction used in computer architecture.
What is MIPS?MIPS (Microprocessor without Interlocked Pipeline Stages) is a reduced instruction set computing (RISC) architecture developed by MIPS Technologies.
The MIPS assembly language instruction "sw $t1, 32($t2)" is used in computer architecture. It stores the contents of a register into memory. Here's how to deconstruct the instruction:
The opcode is "sw," which stands for "store word." It instructs the computer to save a 32-bit word to memory.The source register is "$t1". The contents of this register will be stored in memory.The offset is "32". This is the offset in bytes from the $t2 register's base address.The base register is "($t2)". This is the register whose value is added to the offset to determine where the word will be stored in memory.Thus, the hexadecimal representation of this instruction is given here.
For more details regarding MIPS, visit:
https://brainly.com/question/4196231
#SPJ2
What is the term used to describe image file that contains multiple small graphics?
a. thumbnail image
b. sprite
c. image link
d. viewport
The term "sprite" refers to an image file that contains numerous little graphics.
What is the term for the amount of detail that an image can store?An image's resolution determines how much detail it has. Digital images, film images, and other sorts of images all fall under this umbrella phrase. Image detail is increased with "higher resolution." There are numerous ways to gauge image resolution.
Is Graphic an element in HTML5?With HTML5, we no longer need to rely on pictures or external components like Flash to create visuals. There are two different categories of graphic elements: Canvas. Vector images that can be scaled (SVG). The relative-position attribute is used to position things. absolute. The "left", "right", "top", and "bottom" parameters are used to specify the area's position (and conceivably its size).
To know more about sprite visit:-
https://brainly.com/question/29386251
#SPJ4
c = 7
while (c > 0):
print(c)
c = c - 3
The three of the following will be printed c = 7, while (c > 0):, print(c), c = c - 3 are 0, 1, 7. The correct options are a, b, and g.
What is the output?Input and output are terms used to describe the interaction between a computer program and its user. Input refers to the user providing something to the program, whereas output refers to the program providing something to the user.
I/O is the communication between an information processing system, such as a computer, and the outside world, which could be a human or another information processing system.
Given: c = 7 while(c > 0): print(c) c = c-3 In the first iteration: 7 is printed after that c becomes 4 Now 4 is greater than 0.
Therefore, the correct options are a. 0 b. 1 and g. 7.
To learn more about output, visit here:
https://brainly.com/question/14582477
#SPJ1
The question is incomplete. Your most probably complete question is given below:
Which three of the following will be printed?
c = 7
while (c > 0):
print(c)
c = c - 3
Group of answer choices
0
1
3
4
5
6
7
a rts frame is the first step of the two-way handshake before sending a data frame. true or false
It is accurate to say that sending an arts frame precedes sending a data frame in the two-way handshake.
What encryption method does the WPA2 wireless standard employ?The Advanced Encryption Standard (AES) employed by WPA2 is the same one that the US government employs to protect sensitive documents. The highest level of protection you can give your home WiFi network is this one.
What data integrity and encryption technique does WPA2 employ?The Advanced Encryption Standard (AES) encryption, combined with robust message authenticity and integrity checking, are the foundation of the WPA2 protocol, which offers substantially stronger privacy and integrity protection than WPA's RC4-based TKIP. "AES" and "AES-CCMP" are two examples of informal names.
To know more about data frame visit:-
https://brainly.com/question/28448874
#SPJ4
To move a chart to a different worksheet, click on the Chart > Chart Tools > Design tab > Location group > Move Chart > New sheet, and then in the New sheet box, type a name for the worksheet. (T/F)
To move a chart to a new worksheet, use the Chart > Chart Tools > Design tab > Location group > Transfer Chart > New sheet button. Next, confirm that the statement that is provided in the New sheet box is accurate.
Worksheet? Why do you say that?
Data may be entered and calculated in the cells of a worksheet, which is also known as a spreadsheet. The cells have been set up in columns and rows. A worksheet is always preserved in a workbook.
What is the purpose of a worksheet in a classroom?
Worksheets are frequently unbound sheets of paper that include exercises or questions that students are required to complete and record their answers to. They are used to some extent in most classes, but they are most common in math classes, where there
To know more about worksheet visit:
https://brainly.com/question/13129393
#SPJ4
In an earlier assignment you modeled an inheritance hierarchy for dog and cat pets. You can reuse the code for that hierarchy in this assignment. Write a program that prompts the user to enter data (name, weight, age) for several Dog and Cat objects and stores the objects in an array list. The program should display the attributes for each object in the list, and then calculate and display the average age of all pets in the list using a method as indicated below:
public static double calculateAverage( ArrayList list )
{
... provide missing code ...
}
previous code
chihuahua
public class Chihuahua extends Dog
{
public void bark()
{
System.out.println("Bow wow");
}
}
dog
public class Dog
{
private String name;
private double weight;
private int age;
public String getname(String n)
{
name = n;
return n;
}
public double getweight(double w)
{
weight = w;
return w;
}
public int getage(int a)
{
age = a;
return a;
}
public void bark()
{
}
}
import java.util.Scanner;
public class DogCatTest
{
public static void main( String [] args)
{
Scanner scan = new Scanner(System.in);
System.out.println("Enter name");
String name = scan.nextLine();
System.out.println("Enter weight");
double weight = scan.nextDouble();
System.out.println("Enter age");
int age = scan.nextInt();
Dog [] dogCollection = { new Chihuahua(), new GoldenRetriever()};
for( int i = 0; i < dogCollection.length; i++ )
dogCollection[ i ].getname(name);
System.out.println(name);
for( int i = 0; i < dogCollection.length; i++ )
dogCollection[ i ].getweight(weight);
System.out.println(weight);
for( int i = 0; i < dogCollection.length; i++ )
dogCollection[ i ].getage(age);
System.out.println(age);
for( int i = 0; i < dogCollection.length; i++ )
dogCollection[ i ].bark();
System.out.println("Enter name");
String cname = scan.nextLine();
System.out.println("Enter weight");
double cweight = scan.nextDouble();
System.out.println("Enter age");
int cage = scan.nextInt();
Cat1 [] catCollection = { new SiameseCat(), new SiberianCat() };
for( int i = 0; i < catCollection.length; i++ )
catCollection[ i ].getname(cname);
System.out.println(cname);
for( int i = 0; i < catCollection.length; i++ )
catCollection[ i ].getweight(cweight);
System.out.println(cweight);
for( int i = 0; i < catCollection.length; i++ )
catCollection[ i ].getage(cage);
System.out.println(cage);
for( int i = 0; i < catCollection.length; i++ )
catCollection[ i ].meow();
}
}
public class GoldenRetriever extends Dog
{
public void bark()
{
System.out.println("Bow wow");
}
}
public class SiameseCat extends Cat1
{
public void meow()
{
System.out.println("Meow");
}
}
public class SiberianCat extends Cat1
{
public void meow()
{
System.out.println("Meow");
}
}
public class Cat1
{
private String name;
private double weight;
private int age;
public String getname(String n)
{
name = n;
return n;
}
public double getweight(double w)
{
weight = w;
return w;
}
public int getage(int a)
{
age = a;
return a;
}
public void meow()
{
}
}
Java program that shows the use of inheritance hierarchy, the code reuses the attributes of the class objects.
Importance of applying inheritance:In this case of pets (dogs and cats), applying inheritance allows a much shorter and more structured code. Also, reusable since we can add classes of other pets such as birds, rabbits, etc., all of them also belonging to the Pet superclass.
Reserved words in a java code that enforces inheritance:extendsprotectedSuperHere is an example:
Java codeimport java. io.*;
import java.util.ArrayList;
import java.io.BufferedReader;
public class Main
{
// ArrayList of Pet objetspublic static ArrayList < Pets > arraypets = new ArrayList < Pets > ();
public static void main (String args[]) throws IOException
{
BufferedReader data =
new BufferedReader (new InputStreamReader (System. in));
//Define variablesString aws;
String str;
double w;
String n;
int a;
double average;
do
{
//Data entry System.out.println ("Pet species? ");System.out.println ("(1) Cat ");
System.out.println ("(2) Dog ");
aws = data.readLine ();
System.out.print ("Enter name: ");
n = data.readLine ();
System.out.print ("Enter weight: ");
str = data.readLine ();
w = Double.valueOf (str);
System.out.print ("Enter age: ");
str = data.readLine ();
a = Integer.valueOf (str);
if (aws.equals ("1"))
{
Cat cat = new Cat (n, w, a);
arraypets.add (cat);
average = cat.averageAges (a);
}
else
{
Dog dog = new Dog (n, w, a);
arraypets.add (dog);
average = dog.averageAges (a);
}
System.out.print ("Enter more data? (y/n)");
aws = data.readLine ();
aws = aws.toLowerCase ();
}
while (!aws.equals ("n"));
//Calculate average of pets ageaverage = average / arraypets.size ();
average = Math.round (average * 100.0) / 100.0;
// OutputSystem.out.println ("Attributes for each object in the list: ");
for (Pets arraypet:arraypets)
{
System.out.println (arraypet);
}
System.out.println ("Number of pets: " + arraypets.size ());
System.out.println ("Average age of all pets in the list: " + average);
}
}
class Pets
{
protected String Name;
protected double Weight;
protected int Age;
public Pets ()
{
}
public Pets (String name, double weight, int age)
{
this.Name = name;
this.Weight = weight;
this.Age = age;
}
//Returning values formatted by tostring methodpublic String toString ()
{
return "Nombre: " + this.Name + ", Peso: " + this.Weight + ", Edad: " +
this.Age;
}
public void CalculateAverage ()
{
}
}
class Dog extends Pets
{
public Dog ()
{
super ();
}
public Dog (String name, double weight, int age)
{
super (name, weight, age);
}
//Adding the ages of the pets double averageAges (double a){
a += a;
return a;
}
}
class Cat extends Pets
{
public Cat ()
{
super ();
}
public Cat (String name, double weight, int age)
{
super (name, weight, age);
}
//Adding the ages of the petsdouble averageAges (double a)
{
a += a;
return a;
}
}
To learn more about inheritance hierarchy in java see: https://brainly.com/question/15700365
#SPJ4