Answer:
import java.util.Scanner;
public class num5 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter your full name");
String name = in.nextLine();
String [ ] n = name.split(" ");
System.out.println(n[0]+", "+n[1]);
}
}
Explanation:
Scanner class is used to receive the full names. e.g "Maya Jones"
This is saved in a variable called name using the nextLine() method to grab the entire line of string
The string split() method is used to split the string on the whitespace
The output statement is used to print the value at index 0 and index 1 concatenated with a comma.
Answer:
The output of the following question:
The new price is 22.5
Explanation:
When you execute that java program, Firstly, the program will ask for "Enter the price " after input the price 25 as per the question, than it ask "Enter the discount rate " after input the discount rate, after that the program shows an output after calculating the formula which is "(price - price * (discount / 100.0))",
A type of situation in which it would make sense to use edge computing is: b. where critical decisions must be made on a split-second basis.
<h3>What is edge computing?</h3>
Edge computing can be defined as a distributed computing system that involves the deployment of computing and storage resources closer to the sources of data, so as to save time and enhance the decision-making process.
This ultimately implies that, a type of situation in which it would make sense to use edge computing is a scenario where critical decisions must be made on a split-second basis.
Read more on edge computing here: brainly.com/question/23858023
#SPJ1
<u>Complete Question:</u>
In which type of situation would it make sense to use edge computing?
a. where data is uploaded to a server at a scheduled time each week
b. where critical decisions must be made on a split-second basis
c. where users are in close proximity to the central data server
d. where there are few or no digital devices to capture
e. i don't know this yet
You can only put global variables anywhere in the program while with local variables it can only be used within the function. You're only allowed to use local variables in different functions and not the same variable in the same function.
D.................................