Answer:
Well, First of all, use Linear
Explanation:
My sis always tries to explain it to me even though I know already, I can get her to give you so much explanations XD
I have the Longest explanation possible but it won't let me say it after 20 min of writing
Answer:
<em>The programming language is not stated; however, I'll answer using Python programming language (</em><em>Se</em><em>e attachment</em><em> </em><em>for</em><em> </em><em>proper </em><em>for</em><em>mat</em><em>)</em>
tuition = 10000
rate = 0.04
for i in range(1,15):
tuition = tuition + tuition * rate
if i <= 10:
print("Year "+str(i)+" tuition:",end=" ")
print(round(tuition,2))
if i == 14:
print("Tuition 4th year after:",end=" ")
print(round(tuition,2))
Explanation:
<em>The first 2 lines initializes tuition and rate to 10000 and 0.04 respectively</em>
tuition = 10000
rate = 0.04
<em>The next line iterates from year 1 to year 14</em>
for i in range(1,15):
<em>This line calculates the tuition for each year</em>
tuition = tuition + tuition * rate
<em>The next 3 lines prints the tuition for year 1 to year 10</em>
if i <= 10:
print("Year "+str(i)+" tuition:",end=" ")
print(round(tuition,2))
<em>The next 3 lines prints the tuition at the 4th year after year 10 (i.e. year 14)</em>
if i == 14:
print("Tuition 4th year after:",end=" ")
print(round(tuition,2))
Answer:
how many of these information have you shared
Answer:
import os
import shutil
# directory holding the file to be used
curr_path = "C:\\Users\\user\\Desktop\\test"
# change to the target directory absolute path
os.chdir(curr_path)
# create new folder in current directory
os.mkdir('C:\\Users\\user\\Desktop\\newFolder')
for root, dirs, files in os.walk("."):
for name in files:
# check if it is pdf
if name.endswith(".pdf"):
# find path
path = os.path.join(root, name)
# find size
size = os.stat(path).st_size
# print absolute path and size
print(os.path.abspath(path), "\t", size)
# copy the file to the new folder
shutil.copy(path, 'C:\\Users\\user\\Desktop\\newFolder\\'+name)
Explanation:
The python program uses the os and shutil python module, which is used to interact with the computer system operating system to get the absolute path of all the pdf text files using the os.walk() method to create an iterator to loop over, printing the path string and the file size. The shutil.copy() is used to make a copy of each pdf file in the new folder.