Solution :
a.
public Book(
, String author,
, int
) {
this.
=
;
this.
=
;
this.
=
;
this.
=
;
b).
getTitle() {
return
;
}
setTitle(
) {
this.
=
;
}
getAuthor() {
return author;
}
setAuthor(String author) {
this.
=
;
}
getPublisher() {
return
;
}
setPublisher(String
) {
this.
=
;
}
public int get
() {
return
;
}
set
(int
) {
this.
=
;
}
Answer:
1) Execute Shell Script Using File Name. Use the shell script file name to execute it either by using it's relative path or absolute path as shown below
2) Execute Shell Script Using Source Command.
Answer:
Explanation:
Transitive dependency
In this case, we have three fields, where field 2 depends on field 1, and field three depends on field 2.
For example:
Date of birth --> age --> vote
Partial dependency
It is a partial functional dependency if the removal of any attribute Y from X, and the dependency always is valid
For example:
Course and student these tables have a partial dependency, but if we have the field registration date, this date will depend on the course and student completely, we must create another table with the field registration date to remove this complete dependency.
If we remove or update the table registration date, neither course nor student must not change.
Answer:
Here is the Python program:
small_container = int(input("Enter the number of small containers you recycled?"))
large_container = int(input("Enter the number of large containers you recycled?"))
refund = (small_container * 0.10) + (large_container * 0.25)
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund)))
Explanation:
The program first prompts the user to enter the number of small containers. The input value is stored in an integer type variable small_container. The input is basically an integer value.
The program then prompts the user to enter the number of large containers. The input value is stored in an integer type variable large_container. The input is basically an integer value.
refund = (small_container * 0.10) + (large_container * 0.25) This statement computers the refund that will be recieved for returning the small and larger containers. The small containers holding one litre or less have a $0.10 deposit so the number of small containers is multiplied by 0.10. The large containers holding more than one litre have a $0.25 deposit so the number of large containers is multiplied by 0.25. Now both of these calculated deposits of containers of each side are added to return the refund that will be received for returning these containers. This whole computation is stored in refund variable.
print("The total refund for returning the containers is $" + "{0:.2f}".format(float(refund))) This print statement displays the refund in the format given in the question. The output includes a $ sign and displays exactly two decimal places by using {0:.2f} where .2f means 2 decimal places after the decimal point. Then the output is represented in floating point number using. format(float) is used to specify the output type as float to display a floating point refund value up to 2 decimal places.
Answer:
Calcium is the most abundant element in wood ash and gives ash properties similar to agricultural lime. Ash is also a good source of potassium, phosphorus, and magnesium.