-31 or 21- 50 it may also carry -31
Answer:
- import java.util.Scanner;
- public class Main {
-
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- System.out.print("Enter meal total: $");
- double meal = input.nextDouble();
- double finalAmount = meal + meal *0.09;
-
- if(finalAmount * 0.15 > 8){
- finalAmount = finalAmount + 8;
- }else{
- finalAmount = finalAmount + finalAmount * 0.15;
- }
- System.out.println("Final amount: $" + finalAmount);
- }
- }
Explanation:
Firstly, create a Scanner object and print user to input total meal (Line 5-7). Next, add the 9% tax to the meal total (Line 8). Use an if statement to check if the finalAmount multiplied by the 15% of tips is bigger than 8 (Line 10), if so, only add 8 to the final amount (Line 11). If not, add 15% tips to final amount (Line 12). At last, print out the final amount (Line 15).
Forms, Icons, Menus, Windows
Answer:
Micro Service is a technique used for software development. In micro services structure, services are excellent and arrange as a collection of loosely coupled. API Gateway helps in developing micro services quickly.
Explanation:
The API gateway is the core of API management. It is a single way that allows multiple APIs to process reliably.
Working:
API gateway takes calls from the client and handles the request by determining the best path.
Benefits:
Insulated the application and partitioned into micro services.
Determine the location of the service instances.
Identify the problems of services.
Provide several requests.
Usage:
API stands for application program interface. It is a protocol and tool used for building software applications. Identify the component interaction and used the Graphical Interface component for communication.