Answer:
Even though both are interfaces and serve its purpose of attempting to run the strategies, their components as well as the manipulate they will get from the patient differ.
Explanation:
CUI (Character User Interface) :-
- It's a sort of user interface that only uses binary data and pseudographics for interface-output and data sessions.
- That's characterized by low availability for operating systems I / O resources (act with integrity) and high speed with a display of data.
GUI (Graphical User Interface (GUI):-
- Using graphical elements such as windows, icons, menus helps the user to communicate with the program.
- It is a kind of user interface along which people interact with electronic equipment through characterizations of visual indicators.
Answer:
- import java.util.Arrays;
- import java.util.Scanner;
-
- public class Main {
- public static void main(String[] args) {
- Scanner input = new Scanner(System.in);
- double distances [] = new double[7];
-
- for(int i=0; i < distances.length; i++){
- System.out.print("Input running distance for day " + (i+1) + ": ");
- distances[i] = input.nextDouble();
- }
-
- System.out.println(Arrays.toString(distances));
- }
- }
Explanation:
The solution code is written in Java.
Firstly, create a Scanner object to get user input for running distance (Line 6). Next, declare a distances array and set the array size to 7 because we intend to use this array to hold running distance for 7 days per week.
Next, use the for loop that run for 7 times to repeatedly prompt user to input running distance for each day and store each value to the array distances (Line 9 -12).
At last, display the array to console terminal (Line 14).
Answer:
Stateful frame filtering
Explanation:
<h2><u>Fill in the blanks</u></h2>
A <u>Stateful frame filtering </u> keeps a record of the state of a connection between an internal computer and an external device and then makes decisions based on the connection as well as the conditions.
Answer:
First one is INHERITANCE. Second one is AGGREGATION.