Answer:
temperatures = []
i = 0
while i < 5:
try:
t = int(input('Enter a temperature: '))
temperatures.append(t)
i += 1
except ValueError:
print('Enter a number')
print(temperatures)
Explanation:
Hope this helps!
Answer:
1.) 25 ; 15 ; 15
2.) 50 ; 15 ; 50
Explanation:
In the first function written :
The variable val was initially decaled or assigned a value of 25 and that was what was printed first.
However, after the example function was written, the val variable was finally assiagned a value of 15 within the function. However, it was also declared that the global variable takes uonthe val value. Hence, the val variable initially assigned a value, of 25 changes to 15 globally.
For the second code :
From the top:
Val was assigned a value of 50 ;
Hence,
print(val) gives an output of 50
Within the function definition which prints the value of val that is assigned a value of 25 within the function.
Since tbe global variable isnt reset.
Printing Val again outputs 50;since ito is outside the function.
Answer:
c) 4.4
Explanation:
You can evaluate step by step the code. You know tha your input is 4.0
Step 1 Variables definitions:
double tax;
double total;
Step 2 Ask the user for the input:
System.out.print("Enter the cost of the item");
Step 3 read de input:
total = scan.nextDouble();
Step 4 evaluate the condition ( is the input greater or equal than 3.0 ? [True])
if ( total >= 3.0)
Step 5 get done the operations inside the condition and print it:
tax = 0.10;
System.out.println(total + (total * tax));
When one is typing on MS word and one save the file, this data would be stored as combination of 1s and 0s in the computer.
- Computer data storage can be regarded complex system, immediately a data is saved then;
- The first be converted to simple numbers of 1s and 0s , this number are very easy for a computer to store and these number are regarded as Binary Numbers and all letters as well as photographs are converted to numbers,
- The hardware will record this saved numbers inside the computer.
- These numbers are then organized and transferred to temporary storage which be manipulated by programs, or software.
Therefore, data are been stored as 1s and 0s in the computer.
Learn more at:brainly.com/question/21571591?referrer=searchResults
Answer: share information and collaborate with a select group of outside organizations or individuals.
Explanation:
When a company uses an intranet, it is for the purpose of sharing information within the company so in the same vein, an extranet is done to share information with entities outside the company be it people or organizations.
For information to be shared, the other companies and organizations need to have the means and authorization to join the extranet. Extranets are very useful as they enable collaboration across vast distances thereby increasing productivity.