w1 = input("Enter a word: ")
w2 = input("Enter a word: ")
print(w1,w2)
I wrote my code in python 3.8. I hope this helps.
Answer:
// Here is SammysRentalPrice.java file
// import package
import java.util.*;
// class definition
class SammysRentalPrice
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// object to read value from user
Scanner scr=new Scanner(System.in);
// ask to enter rented minutes
System.out.print("enter rented minutes: ");
// read minutes
int min=scr.nextInt();
// find hours
int hour=min/60;
//reamining minutes
min=min%60;
// total cost
int cost=hour*40+min*1;
// print cost
System.out.println("total cost is: "+cost);
}catch(Exception ex){
return;}
}
}
Explanation:
Read rented minutes from user and assign it to variable "min".Find the hours from minutes and then update the remaining minutes.After this multiply hours with 40 and remaining minutes with 1.Sum them and this will be the cost of rented a sports equipment.
Output:
enter rented minutes: 145
total cost is: 105
The given compound conditions would be considered true or false as follows:
- 2 <3 and 5 <1 is false.
- 3 <3 or 1 ≤1 is true.
- not (2 == 3) is true.
<h3>How do you know if a statement is true or false?</h3>
A statement is said to be true if what it shows is the case, and it is false if what it shows is not the case.
Based on what is given above, The given compound conditions would be considered true or false as follows:
- 2 <3 and 5 <1 is false.
- 3 <3 or 1 ≤1 is true.
- not (2 == 3) is true.
Learn more about 'Compound Condition' from:
brainly.com/question/18450679
#SPJ1
Answer: the answer is A.
Explanation: hope this helps!
Answer: Star topology is commonly used these days.
Explanation:
- As, start topology is the reliable network topology because the failure of a central node or a node cable does not affect the remaining other nodes.
- In star topology, if the computer fails you can still access your data by using backup folder in your private file or folder.
- In this network topology it is easy to find faults and correct it timely.
- The start topology is cost effective and easy to maintain.
- We can also connect multiple communication channels.