Answer:
def feet_to_inches( feet ):
inches = feet * 12
print(inches, "inches")
feet_to_inches(10)
Explanation:
The code is written in python. The unit for conversion base on your question is that 1 ft = 12 inches. Therefore,
def feet_to_inches( feet ):
This code we define a function and pass the argument as feet which is the length in ft that is required when we call the function.
inches = feet * 12
Here the length in ft is been converted to inches by multiplying by 12.
print(inches, "inches")
Here we print the value in inches .
feet_to_inches(10)
Here we call the function and pass the argument in feet to be converted
Answer:
The method in python is as follows:
class myClass:
def printRange(min,max):
for i in range(min, max+1):
print("{"+str(i)+"} ", end = '')
Explanation:
This line declares the class
class myClass:
This line defines the method
def printRange(min,max):
This line iterates from min to max
for i in range(min, max+1):
This line prints the output in its required format
print("{"+str(i)+"} ", end = '')
Answer:
The answer is "The program can also be expressed as a binary code, but it is easier for people to understand when it is expressed in a higher programming language".
Explanation:
In the given question some details are missing that is options of the question that can be given as follows:
A. The program can also be expressed as a binary code, but it is easier for people to understand when it is expressed in a higher programming language.
B. The program can also be represented as a binary code that reduces the likelihood of errors.
C. Binary code can not be used for binary code, because binary code can only represent data.
D. Some parts of the program, however, should be printed in a higher-level language for the operation.
The computer knows the only binary language, It is a form of 0 and 1, but this language can't be understood by the user. It will convert into high-level language, that is understood by the user, that's why this option is correct. In which accepts of option A, all options are wrong that can be described as follows:
- In option B, It is wrong, because the user may not understand binary language, and he can also be writing some wrong code that is converted in binary code, that will increase error.
- In option C and option D, is incorrect because all the data that is stored in the computer is in the form of binary code.
Hi there!
GUI Means Graphical user interface
CUI means Controlled Unclassified Information
Theres the difference they are completely different from each other.
PLEASE MARK BRAINLIEST
-WeasuLL
Answer:
The solution code is written in Python:
- COST_PER_500MI = 1.1
-
- weight = float(input("Enter weight of package: "))
- total_cost = weight * COST_PER_500MI
- print("The shipping charges is $" + str(round(total_cost,2)))
Explanation:
Based on the information given in the question, we presume the cost per 500 miles is $1.10 per pound ($2.20 / 2 pound).
Create a variable COST_PER_500MI to hold the value of cost per 500 miles (Line 1). Next, prompt user input the weight and assign it to variable weight (Line 3). Calculate the shipping charge and display it using print function (Line 4-5).