Answer:
Explanation:
Gas Filling Station has pumps. Pumps have credit card readers. Driver can able to swipe their cards, pumps have Fuel. Pumps card readers communicate with Credit Company. Driver interacts with pump for fuel and credit card.
In this situation the following we need to treat as objects.
They are Pump, Card reader, Fuel tank, communication system, system controller and price table.
Design pattern for the following system is attached below
community provider
Provide online meeting place where people with similar interest can communicate and find useful information
People can transact, share interests, photos and videos
Answer:
Explanation:
The following is written in Java. It creates the trafficLight class which holds the currentLight string variable and a int count variable for the number of times the light has been red. It also contains two constructors one that takes the currentLight as a parameter and one that does not. Finally, it has the next() method which analyzes the currentLight status and changes it to the next light. Output can be seen in the attached picture below.
class Brainly
{
public static void main(String[] args)
{
trafficLight traffic_light = new trafficLight();
System.out.println("Current Light: " + traffic_light.currentLight);
traffic_light.next();
System.out.println("Current Light after change: " + traffic_light.currentLight);
}
}
class trafficLight {
String currentLight;
int count = 0;
public trafficLight(String currentLight) {
this.currentLight = currentLight;
}
public trafficLight() {
this.currentLight = "red";
count++;
}
public void next() {
if (this.currentLight == "green") {
this.currentLight = "yellow";
} else if (this.currentLight == "yellow") {
this.currentLight = "red";
count++;
} else {
this.currentLight = "green";
}
}
}
n = 1
lst = []
while n > 0:
lst.append(n := int(input()))
lst.pop(-1)
print(str(min(lst)) +" and "+str(max(lst)))
I wrote this code in python 3.8. I hope this helps
The answer to this question is: platform
Platform is a low-level software that support the basic functions in all computers. The platform will mediate the input (the data that the user put to the computer), process the input through the processor, and then display the desired result to the screen in front of the user.