Answer:
Here is an example of a class called Car that includes three instance variables: model (type String), year (type String), and price (double). The class includes a constructor that initializes the three instance variables, as well as set and get methods for each instance variable:
Car.java:
public class Car {
private String model;
private String year;
private double price;
// Constructor
public Car(String model, String year, double price) {
this.model = model;
this.year = year;
if (price > 0) {
this.price = price;
}
}
// Set methods
public void setModel(String model) {
this.model = model;
}
public void setYear(String year) {
this.year = year;
}
public void setPrice(double price) {
if (price > 0) {
this.price = price;
}
}
// Get methods
public String getModel() {
return model;
}
public String getYear() {
return year;
}
public double getPrice() {
return price;
}
}
Here is an example of a test application named CarApplication that demonstrates the capabilities of the Car class:
CarApplication.Java:
public class CarApplication {
public static void main(String[] args) {
Car car1 = new Car("Ford", "2020", 30000.0);
Car car2 = new Car("Toyota", "2019", 35000.0);
// Display the price of each car
System.out.println("Car 1: " + car1.getPrice());
System.out.println("Car 2: " + car2.getPrice());
// Apply a 5% discount on the price of car 1
car1.setPrice(car1.getPrice() * 0.95);
// Apply a 7% discount on the price of car 2
car2.setPrice(car2.getPrice() * 0.93);
// Display the price of each car again
System.out.println("Car 1: " + car1.getPrice());
System.out.println("Car 2: " + car2.getPrice());
}
}
Explanation:
When this code is run, it will output the following:
Car 1: 30000.0
Car 2: 35000.0
Car 1: 28500.0
Car 2: 32850.0
1. What is artificial intelligence and why is it useful in information systems?
2. Summarize the history of artificial intelligence detailing its origin and future state in technology today.
3. Is artificial intelligence the same thing as machine learning? Explain.
WRONG ANSWERS WILL GET REPORTED THANK YOU
Explanation:
1.Artificial intelligence is the simulation of human intelligence processes by machines, especially computer systems.Artificial neural networks and deep learning artificial intelligence technologies are quickly evolving, primarily because AI processes large amounts of data much faster and makes predictions more accurately than humanly possible.
2.A Brief History of Artificial Intelligence
1956 - John McCarthy coined the term 'artificial intelligence' and had the first AI conference. 1969 - Shakey was the first general-purpose mobile robot built. It is now able to do things with a purpose vs. just a list of instructions.
Artificial Intelligence Future
Artificial intelligence is shaping the future of humanity across nearly every industry. It is already the main driver of emerging technologies like big data, robotics and IoT, and it will continue to act as a technological innovator for the foreseeable future.
3.While AI and machine learning are very closely connected, they're not the same. Machine learning is considered a subset of AI.
1. If a stepper motor has a step size of 90 degree/step, how many steps it will take to complete 5 rotations?
a. 10
b. 15
c. 20
d. 25
2. ADMUX register is associated with
A. Analog to digital conversion
B. PWM operation
C. Digital to analog conversion
D. USART operation
3. Which of the following is an input device?
A. Servo Motor
B. Stepper Motor
C. DC Motor
D. Ultrasonic sensor
4. ATMega324 has 8 bit timers and 16 bit timers
A. 2 & 1
B. 182
C. 2 & 2
D. 0 and 1
6. ISR stands for
A. Internal Status Register
B. Interrupt Status Register
C. Interrupt Service Routine
D. Internal Service Register
To learn more about Analog to digital refer :
https://brainly.com/question/24750760
#SPJ4
Complete the following tasks in order on the Bench:
1. Add a cable modem with a firewall to
the workspace.
o Connect the power to the surge protector or wall outlet.
Connect the cable modem to the wall outlet.
2. Add an Ethernet router with 4 LAN ports and no firewall to the workspace.
•
Connect the power to the surge protector or wall outlet.
Connect the router to the cable modem using the WAN ports.
3. Connect Home-PC and Home-PC2 to the Ethernet router.
4. Open Internet and Network Settings on both computers and verify they are
connected to the internet. Do not just view the network icon status.
The different steps to Complete the tasks in order on the Bench is given below
1. The workspace should have a cable modem with a firewall.
2. Connect the power to the wall outlet or surge protector.
3. The cable modem should be connected to a wall outlet.
4. The workspace should include an Ethernet router with 4 LAN ports and no firewall.
5. Connect the power to the wall outlet or surge protector.
6. Utilizing the WAN ports, join the router to the cable modem.
7. Connect Home-PC and Home-PC2 to the Ethernet router
8. Open the Internet and Network settings on both computers and verify they are connected to the internet (do not just view the network icon status).
What are firewalls on cable modems?The thing between your home network and the Internet, a firewall adds an additional degree of security. Since a router serves as a home network's primary conduit to the Internet, it also serves as a firewall. For privacy protection, a firewall should be installed on every home network.
Therefore, your local network is safeguarded by the firewall on your modem/router. Even though both are necessary and crucial, they are not nearly enough to safeguard you; you also require a number of additional protective variables.
Learn more about Lab task from
https://brainly.com/question/21938411
#SPJ1
how does radio broadcasting system work
Answer:
Explanation:
Radio works by transmitting and receiving electromagnetic waves. The radio signal is an electronic current moving back and forth very quickly. A transmitter radiates this field outward via an antenna; a receiver then picks up the field and translates it to the sounds heard through the radio.
What does the Deliverables section of the test plan indicate?
O A. risks to testing
O B. features that you will not test
O C. output of the testing phase
O D. features that you will test
D. features that you will test
Explanation:The Deliverables section of the test plan indicates the features that are intended to be tested during the testing phase. It lists the items subject to testing so that the development team can be sure to include all desired functionality.
If you have any additional questions or need further assistance, please let me know.
Identify at least two ways computers are used in daily life and share one pro and one con for each
Answer:
There are many ways in which computers are used in daily life. Here are two examples, along with a pro and a con for each:
Personal computers:
Pro: Personal computers allow individuals to perform a wide range of tasks, including word processing, internet browsing, and online communication. They are also an essential tool for education and work.
Con: Personal computers can be expensive to purchase and maintain. They may also be vulnerable to viruses and other types of malware if not properly protected.
Mobile devices:
Pro: Mobile devices, such as smartphones and tablets, allow people to stay connected and access information and services on the go. They can also be used to make phone calls, send text messages, and take photos.
Con: Mobile devices can be addictive and may distract people from their surroundings, leading to problems such as decreased productivity and increased risk of accidents. They may also pose a security risk if lost or stolen, as they often contain sensitive personal information.
Two ways computers are used in daily life are: Online shopping and social media.
What is social media?Social media refers to online platforms and websites that allow users to create, share, and exchange content and information with others.
Two ways computers are used in daily life are:
Online shopping:Pro: Online shopping offers convenience, as you can shop from the comfort of your own home and have items delivered directly to you. It also provides access to a wider variety of products than physical stores might offer.Con: Online shopping can be addictive and lead to overspending. It also has the potential to expose personal and financial information to security risks.Social media:Pro: Social media platforms provide a way to connect with friends and family, meet new people, and share information and experiences. They can also be useful for promoting businesses or social causes.Con: Social media can contribute to anxiety, depression, and other mental health issues. It can also be a source of misinformation and cyberbullying, and it can be a time-waster if not used mindfully.Thus, these are the uses of computer in everyday life.
For more details regarding social media, visit:
https://brainly.com/question/30326484
#SPJ2
4. Return the card number, first name, last name, and average late fee of each customer. Name this column as "Fee".
5. Return the authors whose first names are shorter than all last names.
6. Return the first 10 borrowing which late fee is unknown.
How do I write these using Oracle SQL sub selects?
Answer:
To write these queries using Oracle SQL sub selects, the following syntax can be used:
1. Return the card number, first name, last name, and average late fee of each customer. Name this column as "Fee".
SELECT card_number, first_name, last_name, AVG(late_fee) AS "Fee"
FROM customers
GROUP BY card_number, first_name, last_name;
2. Return the authors whose first names are shorter than all last names.
SELECT *
FROM authors
WHERE LENGTH(first_name) < ALL (SELECT LENGTH(last_name) FROM authors);
3. Return the first 10 borrowing which late fee is unknown.
SELECT *
FROM borrowings
WHERE late_fee IS NULL
AND ROWNUM <= 10;
Explanation:
In these queries, sub selects are used to select specific data from a table and use it in the main query. For example, in the second query, a sub select is used to select the length of all last names from the authors table, and this data is then used in the main query to filter the authors whose first names are shorter than all last names. In the third query, a sub select is used to filter the borrowings with unknown late fees, and the main query is used to limit the result to the first 10 rows.
An object in Access responds to an event, such as clicking on a command button, based on specified event properties.
a. TRUE
b. FALSE
Answer:
True
Explanation:
Which of the following authentication methods allows you to securely connect a printer to the wireless network with the least amount of effort?
Wi-Fi Protected Setup (WPS) is an authentication method that allows you to securely connect a printer to a wireless network with the least amount of effort.
How WPS works?WPS uses a simple push-button or pin-based authentication process to quickly and easily establish a secure connection between the printer and the wireless network.
This eliminates the need to manually enter complex security settings or passphrases, making it easier and more convenient to connect the printer to the network.
WPS is supported by many modern wireless routers and printers, and it is often the recommended method for setting up a secure wireless connection.
To Know More About wireless connection, Check Out
https://brainly.com/question/8788461
#SPJ1
Which business subscription does not include the Microsoft 365 Apps for Business desktop applications to install locally on the machine
Answer:
Business Premium
Explanation:
in a snort rule, the keyword 'alert' is an example of action to be taken by snort. the source application. the destination application. the protocol.
Snort has the following five default actions: alert, log, pass, activate, and dynamic. Alert: Use the chosen alarm mechanism to create an alert, after which you should log the packet. Record – record the packet. Disregard the packet and pass. A dynamic rule is activated, followed by an alert.
What in a snort rule keyword 'alert'?The information about the rule's action, protocol, source, and destination IP addresses and net masks, as well as the source and destination ports, is all contained in the rule header.
Therefore, An alert/notification system's main goal is to promptly notify responders of potential dangers or emergency situations and to give instructions on how to handle any alerts.
Learn more about snort rule here:
https://brainly.com/question/28558439
#SPJ1
The National Science Foundation funded the creation of a new high-speed, cross-country network backbone called the ____.a.) MILNET b.) NSFnet c.) CampusNET d.) DoDNET
The correct answer is b.) NSFnet.
What was NSFnet?The NSFnet was a high-speed, cross-country network backbone funded by the National Science Foundation (NSF) in the 1980s. It was created to connect research institutions and universities across the United States and was a key part of the early development of the internet.
The NSFnet played a crucial role in the development of the internet as we know it today.
It helped to popularize the use of the TCP/IP protocol, which is the foundation of modern internet communication, and it provided a platform for the growth and expansion of the internet beyond its initial research and academic roots.
The NSFnet was eventually succeeded by the more commercialized and advanced internet of today.
To Know More About Internet, Check Out
https://brainly.com/question/14823958
#SPJ1
match the following descriptions of deadlock prevention approaches to their respective terms group of answer choices make resources sharable, read-only approach hold and wait queue resource requests, limit number of requests a process isallowed to make circular wait once resource is allocated do not allow interruption mutual exclusion prioritize resources and indirectly processes [ choose ] A. Hold & Wait B. mutual exclusion c. no preemption D. Circular Wait
Hold & Wait prioritizes resources and indirectly affects processes while excluding deadlock interruptions.
What may be done to avoid deadlock the best?Hold on a moment. not a preemption. Wait in circles. Avoiding deadlock. By removing any of the four aforementioned conditions, we can avoid deadlock. Take away Mutual Exclusion. Because some resources, like the tape drive and printer, are by nature not shareable, it is impossible to satisfy the mutual exclusion.
Deadlock prevention algorithm: what is it?Deadlock describes this circumstance. A deadlock avoidance method arranges how each process uses resources so that at least one process is always able to receive all the resources it requires.
To know more about deadlock visit :-
https://brainly.com/question/29839797
#SPJ4
any object can be pickled before it is saved to a file, and then unpickled as it is loaded from a file into a program.
a. true
b. false
Unpickling an object after it has been pickled before saving it to a file or loading it into a program from a file is possible.
How is an object transformed into a stream of bytes that may be stored in a file?An object is transformed into a stream of bytes through the serialization process in order to be stored in memory, transmitted to a database, or written to a file. Its major objective is to record an object's state so that it can be recreated later on. The technique employed to do the reverse is deserialization.
Which operator should you use to check the object identities of two objects?The equality operators == and!= can be used to determine whether two objects have the same data. You must use the identity operators is or is not to determine whether two things are identical.
To know more about program visit:-
https://brainly.com/question/11023419
#SPJ1
the fit to slide button on the taskbar changes the size of the slide in normal view so that the slide fits in the window.
When clicked, the Fit to Slide button automatically adjusts the zoom level of the slide so that it fits in the window. This allows the user to quickly adjust the size of the slide on the fly, without having to manually adjust the zoom level.
Adjusting Slide Size with the Fit to Slide ButtonThe Fit to Slide button on the taskbar is a useful tool for quickly adjusting the size of a slide in normal view. With a single click, the zoom level of the slide is automatically adjusted so that it fits within the window. This allows the user to quickly adjust the size of the slide without having to manually adjust the zoom level. This is especially useful for presentations with multiple slides of varying sizes, as it allows the user to quickly adjust the size of each slide to ensure they all fit within the window.
Learn more about programming: https://brainly.com/question/16397886
#SPJ4
Describe three ways in which your activities affect the environment. Are these effects positive or negative?
Answer:
1. Transport: Driving a car or using public transport has a direct effect on the environment due to emissions of carbon dioxide, nitrogen oxides, and other pollutants. These emissions are generally considered to be negative since they contribute to air pollution and climate change.
2. Consumption: Buying and using consumer goods can have a negative effect on the environment due to the energy used in production, transportation, and disposal. Additionally, the materials used to make the goods can be harmful to the environment if not disposed of properly.
3. Waste: Producing, storing, and disposing of waste can have a significant effect on the environment. Improper disposal can lead to leaching of toxic chemicals into the soil and water, as well as release of methane gas into the atmosphere. The effects of improper waste management are generally considered to be negative.
Explanation:
Question 2 of 10 When a business is using methods that help it use its time and resources the best they can, what are they exercising? O A. Data analysis OB. Efficiency O C. Cost-benefit analysis OD. Sales tracking SUBMIT
Answer:
B. Efficiency
Explanation:
which of the flowing is not a correct statement regarding firewalls
Answer:
it is unable to permit legitimate communication to pass
on the ticketorder worksheet, use trace precedents to illustrate the formula error in cell b21. correct the formula in cell b21 by entering the correct cells (the formula should multiply the number of tickets by the cost of ticket). using the formula created in cell b21, add an iferror formula to display a blank cell if there are no results.
IFERROR(B20*B18," ") is the proper formula when trace precedents are utilized.
What use do worksheets serve?In its most basic sense, a worksheet is just a paper item that is used for working. They are frequently used in school, finance, and tax and may be to complete a job, log, or accompany work.
Briefing :Let's say that B21 is now multiplying B18*B19 (Number of Admissions by Ticket Location).
elect B21 cell and goto Formulas toolbar and under Formula Auditing section click on Trace Precedents
The calculation in B21 should read B18 * B20.
When an error is found, the IFERROR function "catch" it and generates a new formula or result.
Use the IFERROR function to trap and handle errors produced by other formulas or functions. IFERROR checks for the following errors: #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!.
Use below formula in B21 to catch errors
=IFERROR(B20*B18," ")
To know more about Worksheet visit :
https://brainly.com/question/13129393
#SPJ4
Write a program that will calculate the areas of a circle, a square, and a rectangle depending on the user's input.
(use functions and switch statement).
Answer:
Explanation:
this is the image I did it somewhere else so i took a photo then put it here.
explain software redundancy techniques
Answer:
Software redundancy techniques are methods used to ensure the reliability and availability of software systems. These techniques involve adding extra layers of functionality or data to a software system, so that if one component fails, the system can still function using the redundant component. This can improve the reliability and availability of the system, and reduce the likelihood of failures or disruptions.
Some examples of software redundancy techniques include:
Mirroring: This involves creating an exact copy of a system or data, and storing it on a separate server or location. If one system or data set fails, the other can be used as a backup.Redundant arrays of independent disks (RAID): This involves using multiple disk drives to store data, so that if one drive fails, the data can be reconstructed using the other drives.Load balancing: This involves distributing workloads across multiple servers or systems, so that if one system fails, the workload can be handled by the others.Overall, software redundancy techniques are an important way to improve the reliability and availability of software systems, and to reduce the impact of failures or disruptions on the operation of the system.
which of the following is used to create a subset of data that matches certain criteria and that can be saved for future reference or use?
Query is used to create a subset of data that matches certain criteria and that can be saved for future reference or use.
What is wizard query?You can build four different sorts of queries using the query wizard to access and change the data in your database. You can generate the following types of queries using the query wizard: First Question. Give the Base's Name and Address. Query Wizard should be used. Click Query Wizard under the Queries group on the Create tab. Click Simple Query Wizard, then OK, in the New Query dialog box. You can use the Query Wizard to automatically create Query Pairs from a pair of Connections. This is helpful for business analysts, SMEs, and other team members who aren't familiar with SQL but are knowledgeable about data and business rules.
To know more about wizard query visit:
https://brainly.com/question/21917334
#SPJ1
After modifying the /etc/aliases file, what command must be run in order to rebuild the aliases database?
Group of answer choices
mail
alias
newaliases
sendmail
The newaliases command must be used to rebuild the aliases database after making changes to the /etc/aliases file.
What do you mean by newaliases ?In Linux, an utility called netstat is available for tracking and reporting data on network services. Actually, the Netstat command set is a collection of tools for reporting statistics on many parts of your network, such as which programs are using which ports.
The primary command used by this check to determine the CVM or host's NTP synchronization status is "ntpq -pn." To what remote peer or server is remote being synchronized? 127.127.
The alias database is rebuilt using the /etc/aliases file by the newaliases command. It must be launched each time this file is modified for the modifications to take effect. Running this command has the same effect as running sendmail with the -bi parameter.
Therefore the correct answer is newaliases.
To learn more about newaliases refer to :
https://brainly.com/question/29851346
#SPJ4
write four things you shouldn't be doing in the lab
Answer:
1.Dont touch anything unless told to do so
2.Avoid sending food at the lab
3.Always listen to instructions before taking an action
4.Dont misbehave at the lab during lesson
Jamie is creating a graph. She highlighted the appropriate data and labels. Next she should _____.
use the command for creating a graph or chart
open a second spreadsheet
click on each cell
deselect the highlighted area
open a second spreadsheet
click on each cell
Which type of social media platform connects people based on their location?
A.
discussion forums
B.
video sharing
C.
social networking
D.
microblogging
Answer:
I would say A.
Explanation:
An airplane can travel 395 mph in still air. If it travels 2160 miles with the wind in the same length of
time it travels 1790 miles against the wind, what is the speed of the wind?
Answer:
The speed of the wind is 355 mph.
Explanation:
Write a program that prints out the numbers in the Fibonacci sequence up until the max number. You can figure out the next number in the Fibonacci sequence by adding the two previous numbers.
The first number is 1 and the second number is 1 . To get the third number we take 1+1=2. To get the fourth number we take the second number plus the third number (1+2=3).
Here is a sample run of the program.
Answer:
max = int(input("Enter a max number: "))
a = 1
b = 1
print(a)
print(b)
while a + b <= max:
c = a + b
print(c)
a = b
b = c
You are asked to construct a server cluster to provide resilience to the webserver hosted by your enterprise. Which of the following clustering systems should you implement to ensure the standby server only works when the other server fails?a. Independentb. Uniquec. Symmetricd. Asymmetric
The clustering systems should you implement to ensure the standby server only works when the other server fails is asymmetric. The correct option is d.
What is a clustering system?Clusters are collections of managed servers that take part in workload distribution. Nodes or individual application servers can be found in a cluster.
A node is often a real computer system running one or more application servers and having a unique host IP address. Modern computer clusters must make use of clustered file systems.
Therefore, the correct option is d. Asymmetric.
To learn more about the clustering system, refer to the link:
https://brainly.com/question/27940320
#SPJ1
27.9% complete
Question
If a user's computer becomes infected with malware and used as part of a botnet, which of the following actions can be initiated by the attacker? (Select all that apply.)
Answer:
Establish a connection with a Command and Control server
Launch a mass-mail spam attack
Launch a Distributed Denial of Service (DDoS) attack
Explanation:
The computer that has been infected and become part of a botnet will need to establish network connection to the "Command and Control" server of the bot-net. Then it might participate in whatever attack the control instructs.
The actions that can be initiated by the attacker are
Establish a connection with a Command and Control serverLaunch a mass-mail spam attackLaunch a Distributed Denial of Service (DDoS) attack.What is malware?Malware is a catch-all term for viruses, trojans, and other damaging computer programs that threat actors use to infect systems and networks and access sensitive data. Malware is software designed to obstruct a computer's regular operation.
The computer that has been infected and joined a botnet must create a network connection to the bot-"Command net's and Control" server. After that, it might take part in whichever attack the control orders.
Therefore, the correct options are:
Establish a connection with a Command and Control serverLaunch a mass-mail spam attackLaunch a Distributed Denial of Service (DDoS) attack.To learn more about malware, refer to the link:
https://brainly.com/question/22185332
#SPJ2
The question is incomplete. Your most probably complete question is given below:
1. Launch a Distributed Denial of Service (DDoS) attacks
2. Establish a connection with a Command and Control server
3. Launch a mass-mail spam attack
4. Launch a tailgating attack