Answer:
Option A(True) is the correct answer for the above question.
Explanation:
- An array is used for the collection variables which is of the same type and uses memory in continuous Passion for the storage.
- When any user wants to use the array then he needs to declare the size and type of the array because array holds the same type of data.
- For example, int a[5] is an array of integer variable whose name is 'a' and the size is 5 in c language.
- Anyone can use the array with the help of the index value of the array. The starting index value is 0 and the ending index value is (size-1) for any array.
- The user can use it by the help of loop, in which the loop variable refers to the index of the array and it starts from 0 and ends in the (size of the array-1).
- It is because the loop executes the same line multiple times.
- The above statement also wants to state, which is defined as above. Hence the above statement is true which is referred by option A. Hence option A is the correct answer.
If it was done with the compress command, capital Z
Answer:
We use the Python language to implement the code, if you have and IDE, simply copy and paste the code and run it
Note: the cost function is c=(R+ .08*d)+5
Explanation:
#initialize some variables
T = 0.08 # tax for each day
F = 5.00 # one time fee
R = 100 # room rate
d = int(input("Enter the number of days stayed at the hotel "))
c = 0 # initialize cost variable
if (d > 0):
c=(R+ .08*d)+5
print(" the cost for ", d, " days is ", c )
else:
print(" Invalid entry for days ", d )
Answer:
why is it necessary to fight against social evils and problem