Answer:
import pandas as pd
# loads the text file as a pandas dataframe
student_file = pd.read_fwf("std_info.txt")
# opens a new text file if the student_avg does not exist
# the file closes automatically at the end of the with statement
with open('student_avg.txt', 'w+') as file:
for row in student_file.iterrows():
file.write(row)
ee = student_file[student_file['major'=='EE']]
cpe = student_file[student_file['major'=='CPE']]
file.write(f'EE average = {ee['EE'].mean()}')
file.write(f'CPE average = {ee['CPE'].mean()}')
file.write(f'Total average = {student_file['EE'].mean()}')
Explanation:
The python program gets the text file as a fixed-width file and loads the file as a pandas dataframe. The dataframe is used to get the total average GPA the student GPA and the average GPA of students in various departments. The results are saved in a new file called 'student_avg.txt'.
E
According to the question,
The amount of investment money is $10,785 and the rate of interest is 1.0275%. The amount of money will be multiplied with the rate of interest and the year.
To get future value of the investment it will be like
FV = PV(1+i)x
Therefore , Future value = 10,785(1.0275)x
Answer:
numAccounts = SavingsAccount.numberOfAccounts
Explanation:
In object oriented programming, when you have created an object of class, you can create several instances (objects) from that class by referencing the className.classFeild. In this instance SavingsAccount is the class name and
numberOfAccounts is a feild (or data member). to create a new numAccount, we use the syntax as above in the answer
Explanation:
Formal; A formal information system is based on
the organization represented by the organization chart.
Informal; The informal information system is
employee based system designed
to meet personal and vocational needs
and to help in solution of work-related problems.