Answer:
Explanation:
Shipping fee is based on the weight of the item purchased
Name of the store- MIMI Electronics
Items sold- Consumer electronics, mobiles phones, laptops, wearable devices, accessories, digital watches etc
Shipping charges-
Weight Shipping fee
0-1 kg $ 5.00
1-2 kg $ 10.00
2-4 kg $ 15.00
4-7 kg $ 20.00
7-10 kg $ 30.00
10 kg + $ 50.00
Shipping fee function
F(x)= 5 for all x [0,1]
F(x)= 10 for all x (1,2]
F(x)= 15 for all x (2,4]
F(x)= 20 for all x (4,7]
F(x)= 30 for all x (7,10]
F(x)= 50 for all x (10,infinity)
shipping charge function is a step function where the steps are mentioned in terms of weight.
Shipping charge could also be determined using a piece wise function where the shipping fee is fixed for each piece and is charged based on number of pieces ordered instead of weight of the order
Answer:
True
Explanation:
A single file can be used to record/ store all the information regarding a transaction because in a transaction there are less complexities. a simple transaction involves an exchange/communication between a buyer and a seller which involves exchange in finances between the buyer and the seller.
An employee can be involved in several activities like work activities and multiple transactions while a single inventory part record is different from an employee's record and any other form of transaction. hence separate files have to be created for each of these activities.
To have an easy access to this information when needed a master file is created to store all the individual files.
Answer: A
Explanation: For any formal document you need your major points.
Answer:
<u>Window.java</u>
- public class Window {
- int width;
- int height;
-
- public Window(int width, int height){
- this.width = width;
- this.height = height;
- }
- public int getWidth(){
- return width;
- }
- public int getHeight(){
- return height;
- }
-
- public int getClientAreaHeight(){
- return getHeight();
- }
- }
<u>Main.java</u>
- public class Main {
- public static void main (String [] args) {
- Window win1 = new Window(12, 15);
- System.out.println(win1.getClientAreaHeight());
- }
- }
Explanation:
<u>Window.java</u>
There is a Window class with two int type attributes, width and height (Line 1 - 3).
The constructor of this class will take two inputs, width and height and set these input to its attributes (Line 5 - 8). There are two methods getWidth and getHeight which will return the value of attributes width and height, respectively (Line 10 - 16).
The required new method getClientAreaHeight is defined in line 18 -20. This method will call the getHeight method to return the height value of the window (Line 19).
<u>Main.java</u>
We test the Window class by creating one Window instance and call the getClientAreaHeight method and print the return output (Line 1 -6).
We shall see 15 is printed.
The minimum requirements for a 64-bit Windows 10 installation are 2 GB of RAM and a minimum of 16 GB of space on the hard drive.
<em>Hope this helps :)</em>