Add the following constants in the class definition, before the main method:
private final static float START_COST = 1.5f;
private final static float HIGH_TARIFF = 0.5f;
private final static float LOW_TARIFF = 0.25f;
private final static int FIXED_MINS = 2;
private final static int HIGH_TARIFF_MINS = 10;
Then add this to the main method you already had:
float price = START_COST;
if (x > FIXED_MINS) {
if (x <= HIGH_TARIFF_MINS) {
price += HIGH_TARIFF*(x-FIXED_MINS);
}
else {
price += HIGH_TARIFF*(HIGH_TARIFF_MINS-FIXED_MINS)
+ LOW_TARIFF*(x-HIGH_TARIFF_MINS);
}
}
System.out.printf("A %d minute call costs %.2f", x, price);
Answer:
For setting up workstations in classrooms, one end of cables connected into the built in NIC and other end will be connected to a drop.
Explanation:
A drop will be used for connectivity in this case, which will work as connection point in a network. Drops are just like outlets in wall having Ethernet Jacks where a network device or system can be plugged into it.
A macro is that pseudo-program that performs a list of actions based on a set of instructions.
<h3>What is macro?</h3>
A macro can be said to be a number of commands that help you to get complex things done via automating simple and via repetitive tasks.
A macro is that pseudo-program that performs a list of actions based on a set of instructions.
Therefore, option A is correct as the macros does a whole lot of work.
Learn more about macro from
brainly.com/question/20050035
#SPJ1
Answer:
Quality Of Service
Explanation:
Technology that manages data traffic to reduce packet loss, latency and jitter on the network. QoS controls and manages network resources by setting priorities for specific types of data on the network.
Answer:
The flashdrive can hold 35389 400-pages-books
Explanation:
If
of a page occupies 1 kB of memory, we can calculate how much memory a book will take

Now that we know that a book average file size is about 266,67 kB, we calculate how many of them can a 9 GB flash drive hold.
To do the calculation, we have to know how many kilobytes are in 9 gigabytes.
There is 1024 kilobytes in a megabyte, and 1024 megabytes in a gigabyte, so:

Finally, knowing the average file size of a book and how much memory in kilobytes the 9 GB flash drive holds, we calculate how many books can it hold.

The flashdrive can hold 35389 400-pages-books, or 14155776 pages of typical text.