The answer is the Base Row. The home row is the middle row on the keyboard and where the fingers remain while at rest. The upper row and bottom row are the two rows above and below the home rows.
Answer:
import java.util.Scanner;
public class CalculatingSales {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int product, quantity;
double total = 0;
while(true) {
System.out.println("Enter product_id and quantity(0 0 to stop): ");
product = sc.nextInt();
quantity = sc.nextInt();
if(product==0 && quantity == 0)
break;
switch (product) {
case 1:
total = total + 2.98*quantity;
break;
case 2:
total = total + 4.50*quantity;
break;
case 3:
total = total + 9.98*quantity;
break;
case 4:
total = total + 4.49*quantity;
break;
case 5:
total = total + 6.87*quantity;
break;
default:
System.out.println("Invalid option");
}
}
System.out.println("total value: "+total);
sc.close();
}
}
Explanation:
- Take the product and quantity as input from user.
- Use a switch statement to multiply the total with their relevant value.
- Display the total value.
Answer: (A) Higher availability of resources, (B) Better services and (C)Reduce risks.
Explanation:
The DBaas is basically defined as database as a service which basically provide the different types of software and the company infrastructure that is needed for the organization to running the database. It is basically used to provide the database services in the organization.
The database as a service basically provide many advantages such as it provide better services so that it can increase the data efficiency.
It reduce risks so that is why, it has high availability of the resources in the organization for maintaining the database services.