An Information System is when key components such as hardware, software, data, and process are combined for collection, processing, and distribution of data. All of these scenarios mentioned on the choices above are considered transactions in an information system. There is an exchange of information that fully satisfies the request of a user and describes what transactions in information systems are. They are good examples of users entering information whether, physically or electronically, as data into computers. This data is then processed, and the database changes adjusted with some being made permanent.
Answer:
Explanation:
The following program is written in Java. Using the program code from Purchase class in 5.13 I created each one of the fruit objects. Then I set the price for each object using the setPrice method. Then I set the number of each fruit that I intended on buying with the setNumberBought method. Finally, I called each objects getTotalCost method to get the final price of each object which was all added to the totalCost instance variable. This instance variable was printed as the total cost of the bill at the end of the program. My code HIGHLIGHTED BELOW
//Entire code is in text file attached below.
//MY CODE HERE
DecimalFormat df = new DecimalFormat("0.00");
oranges.setPrice(10, 2.99);
oranges.setNumberBought(2*12);
eggs.setPrice(12, 1.69);
eggs.setNumberBought(2*12);
apples.setPrice(3, 1);
apples.setNumberBought(20);
watermelons.setPrice(1, 4.39);
watermelons.setNumberBought(2);
bagels.setPrice(6, 3.50);
bagels.setNumberBought(12);
totalCost = oranges.getTotalCost() + eggs.getTotalCost() + apples.getTotalCost() + watermelons.getTotalCost() + bagels.getTotalCost();
System.out.println("Total Cost: $" + df.format(totalCost));
}
}
Answer:
Please check the attachment.
Explanation:
Please check the attachment for the program in python.
Answer:
Switches break up collision domains and routers break up broadcast domains.
Explanation:
- Collision domain depicts the part within a network where a collision can happen.
- Collision occurs when two hosts transmit data packet at the same time within a network. Theses packets collide and the hosts have to resend the data after some time.
- Too many collisions can result in slow traffic speed and can effect network performance.
- So switches break up collision domains between the devices on a network and each port in a switch depicts a collision domain. This reduces the chance of packet collisions between the devices or hosts.
- When data is to be sent to a host, the switch keeps that data frame and waits for availability of the destination host before sending the data frame.
- Moreover full duplex switch mode there is not chance of collision as the transmitting path on one host is the receiving path on other host.
- Broadcast domain contains all the hosts that can reach each other at the Data Link layer via broadcast.
- Routers break up broadcast domains as routers contain separate broadcast domains for each interface.
- Routers do not forward broadcasts from one broadcast domain to other and drop the packet when they detect a broadcast address.
Answer:
The program in Python is as follows:
numbers = [10,20,30,40,50,60,100]
total = 0
for i in range(len(numbers)):
if i != 3:
total+=numbers[i]
print(total)
Explanation:
This initializes the list
numbers = [10,20,30,40,50,60,100]
Set total to 0
total = 0
This iterates through numbers
for i in range(len(numbers)):
This ensures that the index 3, are not added
<em> if i != 3:</em>
<em> total+=numbers[i]</em>
Print the calculated sum
print(total)