The term that describes how relatively small units of data called packets are routed through a network based on the destination address contained within each packet is called "Packet Switching"
What is the importance of packet switching?Packet switching is used to maximize the use of available channel capacity in digital telecommunication networks, such as computer networks, as well as to reduce transmission latency (the time it takes for data to travel across the network) and boost communication resilience.
Packet switching is most frequent on data networks such as LANs, WANs, and the Internet. It is particularly suited to data transmission because it lets networks to swiftly adapt to changing conditions. If one of the network's routers dies, for example, packets can be automatically re-routed to avoid that device.
Learn more about Packet Switching:
https://brainly.com/question/27054556
#SPJ1
Please solve this for me I need it to study and my teacher apparently doesn't like to be a teacher
Computer Programming 1 - You’ll Love Our Mugs
program must be done in python
Scenario: “You’ll Love Our Mugs” sells mugs – there are no size or color choices, however, the customer has
the option of adding a logo and / or a name to the mug. The cost of the mug by itself is $10, the logo cost is
$3 per mug, and the name cost is $2 per mug. In addition, if the user purchases 10 or more mugs (with or
without logo/name) the shipping charge is $0. If they buy less than 10 mugs, the shipping cost is a flat $5 fee.
There is a sales tax of 7%. (The sales tax is calculated before the shipping fee.) SAMPLE PROGRAM RUN IS ON
PAGE 2
Create a program that does the following:
(1) Purpose of program
(2) Constants – basic mug price, logo price, name charge price, sales tax amount, shipping more than 10,
shipping less than ten
(3) Variables – name cost, logo cost, number ordered, mug price, total price, shipping cost, amount owed,
order mugs (string), logo (string), name (string)
(4) Welcomes the customer to the store, let’s them know they can either order a plain mug or have the
option of adding a logo and/or name, the minimum order is 5 mugs, and tells them about the shipping
fees as outlined in the scenario above. (print statements)
(5) Asks the user if they wish to order mugs (input function)- if not (if statement), thank them for visiting
the store and say you hope to see them again. (print statement)
(6) If the user orders mugs (while statement Y) – ask them how many (input function)
(7) Check to see if they ordered the minimum number. (if statement, print statement telling them they did
not make minimum)
(8) If they did not order the minimum number, let them know they did not (print statement) and give them
the option to re-enter the number. (input function)
(9) Calculate the mug price (calculation) and let them know the cost of the mugs without customization
(print statement – formatted for currency to 2 decimals)
(10) See if the customer wants to add a logo, (input function) if so (if statement Y) calculate the cost of the
logo (calculation) and let them know how much it cost for JUST THE LOGO.(print statement formatted to
currency 2 decimal places) If not (else), remind them the cost of just the mugs. (print statement
formatted to currency 2 decimals)
(11) See if the customer wants to add a name (input function), if so calculate the cost of the name
(calculation) and let them know how much it will cost for JUST THE NAME . (print statement formatted to
currency 2 decimals). If not (else), just remind them the cost of the mugs (print statement formatted to
currency 2 decimals)
(12) Calculate the total cost of the mugs (calculations) (including any logo or name if the user chose that
option)
(13) Calculate the sales tax owed. (calculation)
(14) Calculate the shipping charge (if..else statement – did they order enough for no shipping cost)
(15) Calculate the total amount owed. (calculation)
(16) Print the following: (print statements with variable names formatted to currency with 2 decimals)
Number ordered and cost of mugs without logo/name
Cost of Logo
Cost of Name
Cost of Shipping
Total Amount Owed
(17) Ask the user if they would like to order any more mugs (input function)
(18) End the program (press any key)
Using the knowledge in computational language in python it is possible to write a code that there are no size or color choices, however, the customer has the option of adding a logo and / or a name to the mug.
Writting the code:import random
def do_something(first, second):
result = first + second + random.randint(-5, 5)
return result
import random
def do_something(first, second):
result = first + second + random.randint(-5, 5)
return result
do_something(3, 5)
print(result)
make_coffee(
tap_water,
electricity_from_wall_socket,
blue_espresso_pod,
)
coffee_cup = make_coffee(
tap_water,
electricity_from_wall_socket,
blue_espresso_pod,
)
See more about python at brainly.com/question/12975450
#SPJ1
Ensure the file named Furniture.java is open.
The file includes variable declarations and output statements. Read them carefully before you proceed to the next step.
Design the logic and write the Java code that will use assignment statements to:
Calculate the profit (profit) as the retail price minus the wholesale price
Calculate the sale price (salePrice) as 25 percent deducted from the retail price
Calculate the sale profit (saleProfit) as the sale price minus the wholesale price.
Execute the program by clicking Run. Your output should be as follows:
Item Name: TV Stand
Retail Price: $325
Wholesale Price: $200
Profit: $125
Sale Price: $243.75
Sale Profit: $43.75
91011121314151617181920212223242526272829303132678345
double profit;
double saleProfit;
// Write your assignment statements here.
Logic:
profit=retailPrice-wholesalePrice
salePrice=retailPrice-(retailPrice*25)/100;
saleProfit=salePrice-wholesalePrice;
can someone write this how the code would be written i think i have it correct but i am getting and error when i run the code
Using the knowledge in computational language in JAVA it is possible to write a code that calculate the sale profit (saleProfit) as the sale price minus the wholesale price.
Writting the code:public class Furniture
{
public static void main(String args[])
{
String itemName = "TV Stand";
double retailPrice = 325.00;
double wholesalePrice = 200.00;
double salePrice;
double profit;
double saleProfit;
// Write your assignment statements here.
profit = retailPrice - wholesalePrice;
salePrice = retailPrice * (1 - 0.25);
saleProfit = salePrice - wholesalePrice;
System.out.println("Item Name: " + itemName);
System.out.println("Retail Price: $" + retailPrice);
System.out.println("Wholesale Price: $" + wholesalePrice);
System.out.println("Profit: $" + profit);
System.out.println("Sale Price: $" + salePrice);
System.out.println("Sale Profit: $" + saleProfit);
System.exit(0);
System.exit(0);
}
}
See mroe about JAVA at brainly.com/question/12975450
#SPJ1
you want to identify all devices on a network along with a list of open ports on those devices. you want the results displayed in a graphical diagram. which tool should you use?
Since you want to identify all devices on a network along with a list of open ports on those devices. you want the results displayed in a graphical diagram. the tool that you use is Port scanner.
Why would someone use a port scanner?Finding open ports on a network that might be receiving or transferring data is a process called port scanning. In order to find vulnerabilities, it also entails sending packets to particular ports on a host and examining the answers.
Note that Only when used with a residential home network or when specifically approved by the destination host and/or network are network probing or port scanning tools allowed. Any kind of unauthorized port scanning is absolutely forbidden.
Learn more about Port scanner from
https://brainly.com/question/28147402
#SPJ1
What happens if I replace my router?
If you replace your router you can get faster speeds, improved range, and new features.
Could the routers just be replaced?There are a number of convincing reasons to substitute your own router in its place, including the following: A new router might offer a better and more stable connection.Just unplug, take out, and set up the new router. To do this, connect an Ethernet cable from the router to the modem and modify the network name and password as usual.You may often choose between purchasing a box that includes both a modem and a router separately from your Internet service provider. You may use any option to access the Internet. Know that if you purchase a combo device and one part malfunctions (such as the modem or router).To learn more about router refer to:
https://brainly.com/question/24812743
#SPJ4
how to type an absolute reference formula in exel
The way to type an absolute reference formula in excel is by: Before the column name and row number, for example that is $E$4, add the dollar sign ($). The equation will now be = B2*$E$4.
How can an absolute reference formula be added to Excel?For adding absolute cell references to your calculations, there is a shortcut available. Press the F4 key to continue typing your formula after entering a cell reference. The cell reference is automatically made absolute by Excel! Excel will cycle through each possible absolute reference by pressing F4 repeatedly.
Therefore, Simply pick the cell reference(s) you want to change and click the F4 key to use the shortcut. Holding down the Shift key while pressing the F4 key will select all of the cell references you want to change at once.
Learn more about excel from
https://brainly.com/question/25863198
#SPJ1
Why is MRI considered safer than CT?
Answer: MRIs don't use any radiation
Explanation:
When a person’s personal information is collected by other parties, it refers to the issue of_______.
Answer:
The answer should be privacy
Explanation:
Answer: it refers to the issue of version control privacy personality so
The answer should be privacy
Explanation:
At a basic level, whose needs and preferences must first be understood to determine a product’s functionality, or practical use?
It is to be noted that at a basic level, the needs and preferences that must first be understood to determine a product’s functionality or practical use is that of the consumer.
Who is a consumer?A consumer is a person or group who wants to order or utilizes acquired items, products, or services primarily for personal, social, family, or home purposes and is not actively involved in entrepreneurial or company operations.
The term "functionality" relates to whether a design works and assists people in meeting their goals and requirements. Functionality varies but is present in everything from chairs and tables to books and online interfaces. When a design is extremely functional, it accomplishes its job and does it well.
Learn more about consumers:
https://brainly.com/question/380037
#SPJ1
Write a similar description of what happens when you print a document.
Full-color printing is achieved by using just four ink colors – Cyan, Magenta, Yellow, and Black or CMYK (see box story below on what the K stands for).
These are called process colors and full-color printing is also called 4-color process printing.
What does it mean to print a document?Printing is the process of printing text and images in large quantities using a master form or template.
It it to be noted that cylinder seals and items such as the Cyrus Cylinder and the Cylinders of Nabonidus are among the oldest non-paper creations using printing.
Learn more about printing:
https://brainly.com/question/21090861
#SPJ1
Which of the following are used to compare performance & efficiency of algorithms? (PROJECTSTEM 3.6 Lesson Practice Question #1
The option that can be used to compare the performance and efficiency of algorithms:
Speed of the Algorithm (Option B); andMemory Use of the Algorithm (Option F).How do you use the above to check the performance of an Algorithm?Time, complexity and space complexity are the two basic metrics of an algorithm's efficiency, although they cannot be directly compared. As a result, time and space complexity are taken into account for algorithmic efficiency.
It should be emphasized that the faster an Algorithm executes, the more efficient it is. Furthermore, the less RAM space an algorithm uses during execution, the better it is.
Learn more about Algorithms:
https://brainly.com/question/22984934
#SPJ1
Now suppose you were charged with putting together a LAN to support the occasional exchange of data between nodes (in this part of this question, there is no voice traffic). That is, any individual node does not have data to send very often. How well suited are these four protocols (TDMA, CSMA, slotted Aloha, and token passing) for this scenario? Provide a brief (one sentence) explanation of each answer.
TDMA and token passing will work well because it provides a constant bit rate service of 1 slot per frame.
What is LAN?A local area network is the computer network which connects computers within a specific geographic area, like a home, university campus, etc. A wide area network, on the other hand covers a greater geographic distance, and also typically involves leased telecommunication circuits.
Due to collisions and the variable amount of time required to access the channel for example, channel access delays can be unbounded, CSMA will not work well here unless channel utilization is low and the need for voice packets to be played out synchronously and with low delay at the receiver.
Slotted Aloha won't work well too. Token passing works well in this case because each station gets a turn to transmit once per token round, resulting in an essentially constant bit rate service.
Learn more about network on:
https://brainly.com/question/8118353
#SPJ1
HELP! Python!!
Define a function named dice_odds that returns a dictionary with possible sums between two 6-face dice as
keys and a list of all combinations (tuples) as values.
&
Define a 'recursive' function named 'geometric_sequence' that takes three integers as follows
i - first element
r - ratio
n - an integer for target position
and returns the nth element in this sequence. You are required to use memoization to speed up
the computation. Your code should not be limited to the following parameters
>>>> geometric_sequence(3, 2, 5)
48
Using the knowledge in computational language in python it is possible to write a code that the Define a 'recursive' function named geometric_sequence' that takes three integers
Writting the code:def num_list(sides, count):
modified_list = []
for i in range(count):
#appends the same list as many times as is called for
modified_list += list(range(1, sides + 1))
return modified_list
mem = {}
def geometric_sequence(i, r, n):
if n == 1:
mem[n] = i
if n not in mem:
mem[n] = r * geometric_sequence(i, r, n - 1)
return mem[n]
See more about python at brainly.com/question/12975450
#SPJ1
Your Word Document Requirements
Part 1: Name: your name
Part 2: Data Source: the source of your data (do not copy and paste your data into the Word document)
Part 3: Questions to Answer: the questions your analysis will answer
Part 4: The Plan: the pseudocode outline of your program
Part 5: Plan Feedback from Your Partner: suggestions from your partner
Part 5: Results: copy and pasted results from your data file
Part 6: Interpretation: your interpretation of the results
Part 7: Final Feedback from Your Partner: description of what your partner found interesting
You can use this rubric
to evaluate your project before you submit it.
What to Submit
You will submit each of the following.
A Word document: Organize it as shown below.
Your data file: Saved with a .txt extension
Your program: Saved with a .txt extension since you cannot upload a .py file.
Your results file: Saved with a .txt extension.
Using the knowledge in computational language in python it is possible to write a code that the pseudocode outline of your program;
Writting the code:import sys
import os
def main():
# Check and retrieve command-line arguments
if len(sys.argv) != 3:
print(__doc__)
sys.exit(1) # Return a non-zero value to indicate abnormal termination
fileIn = sys.argv[1]
fileOut = sys.argv[2]
# Verify source file
if not os.path.isfile(fileIn):
print("error: {} does not exist".format(fileIn))
sys.exit(1)
# Verify destination file
if os.path.isfile(fileOut):
print("{} exists. Override (y/n)?".format(fileOut))
reply = input().strip().lower()
if reply[0] != 'y':
sys.exit(1)
# Process the file line-by-line
with open(fileIn, 'r') as fpIn, open(fileOut, 'w') as fpOut:
lineNumber = 0
for line in fpIn:
lineNumber += 1
line = line.rstrip() # Strip trailing spaces and newline
fpOut.write("{}: {}\n".format(lineNumber, line))
# Need \n, which will be translated to platform-dependent newline
print("Number of lines: {}\n".format(lineNumber))
if __name__ == '__main__':
main()
See more about python at brainly.com/question/12975450
#SPJ1
Which of the following roles is responsible for
overseeing the data and operation of databases?
computer support specialist
data miner
database programmer
database administrator
Create and maintain databases that are appropriate for the needs of their organizations, as database managers or administrators. These IT specialists are in charge of maintaining, storing, protecting, and troubleshooting databases.
What is database management?
Data is stored, retrieved, and analyzed using software called database management systems (DBMS). Users can create, read, update, and delete data in databases using a DBMS, which acts as an interface between them and the databases.
A software program is used to administer databases, or database management systems. As an illustration, popular commercial databases like MySQL, Oracle, etc. are utilised in a variety of applications.
A DBMS provides an interface for carrying out a variety of tasks, including building databases, putting data in them, updating data, creating tables in the databases, and many other things.
It offers database security and safety. Additionally, it preserves data consistency when there are many users.
Hence to conclude dbms has the responsibilty of overseeing the data and operation of databases
To know more on dbms follow this link
https://brainly.com/question/24027204
#SPJ1
Answer:
D!
Explanation:
different between in class and structure
Answer:
Structures are value types; classes are reference types
as far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader.
As far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader is a false statement.
Products for herbicide spraying are they more expensive than granular ones?
Simply because the liquid formulation is sprayed across the surface of the weed's leaf and does not rely on additional moisture to stick to the leaf, liquid sprays are generally more effective than their granular counterparts, according to Purdue University Turfgrass Science.
Therefore, Given that both products' active ingredients are the same, granular fertilizer plus postemergence herbicide products are more expensive per unit area treated than sprayable postemergence herbicide products.
Learn more about sprayable herbicide products from
https://brainly.com/question/29557923
#SPJ1
See full question below
as far as cost of product per unit area, sprayable herbicide products are more expensive than granular products you can apply with a spreader. True or false.