Answer:
int calculate_cost(int quantity) {
double cost = 0;
if (quantity <= 20)
cost = quantity * 23.45;
else if (quantity >= 21 && quantity <= 100)
cost = quantity * 21.11;
else if (quantity > 100)
cost = quantity * 18.75;
return cost;
}
Explanation:
Create a function called calculate_cost that takes one parameter, quantity
Initialize the cost as 0
Check the quantity using if else structure. Depending on the quantity passed, calculate the cost. For example, if the quantity is 10, the cost will be $234.5
Return the cost
The two major types of DNS request are as follows;
- Recursive Query
- Iterative Query
<h3>What is a domain name system?</h3>
Domain name system is abbreviated as DNS.
A Domain Name System (DNS) converts domain names into IP addresses, which allow browsers to get to websites and other internet resources.
Basically, DNS is a directory of names that match with numbers.
Computer uses IP addresses to communicate, therefore, the DNS convert domain names to IP address for communication.
The two major types of DNS request are as follows;
- Recursive Query - Query that demands a resolution
- Iterative Query - Query that does not demand a resolution.
learn more on DNS here: brainly.com/question/14397200
#SPJ11
Id say Router is the answer based on your Question.
Router - is a device used to host a network signal which people will require the SSID(network-name) to connect to.
It is a bit confusing because the correct answer is SSID which leads me to belive Public Wi-Fi is also correct..
Answer:
input-year taken 2020
2020 is divisible by 2
output- 2020 is a leap year