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'.
Answer:
Minimum payment.
Explanation:
A loan can be defined as an amount of money that is being borrowed from a lender and it is expected to be paid back at an agreed date with interest.
Generally, the financial institution such as a bank lending out the sum of money usually requires that borrower provides a collateral which would be taken over in the event that the borrower defaults (fails) in the repayment of the loan.
A credit score can be defined as a numerical expression between 300 - 850 that represents an individual's financial history and credit worthiness. Therefore, a credit score determines the ability of a borrower to obtain a loan from a lender.
This ultimately implies that, the higher your credit score, the higher and better it is to obtain a loan from a potential lender. A credit score ranging from 670 to 739 is considered to be a good credit score while a credit score of 740 to 799 is better and a credit score of 800 to 850 is considered to be excellent.
Additionally, credit card can be defined as a small rectangular-shaped plastic card issued by a financial institution to its customers, which typically allows them to purchase goods and services on credit based on the agreement that the amount would be paid later with an agreed upon interest rate.
Minimum payment is a term which describes the amount you must pay in order to be considered “up-to-date” with your credit card payments. A credit card holder that meets the minimum payment and has a good credit score is eligible for more credits and loans.
Answer:
Applications where re-writeable optical laser disk would be preferred over hard disks for storage are:
- While storing the data in large amount, the optical disk are more preferred as, for storing the videos, photographs and various types of the images.
- This optical laser disk are used for transferring the information or data from one computer to another so we can easily modify or re-write the data at any time as, this disk are more convenient than hard disk.
- The optical laser disk are also helpful for distributing the software to the customers or users by using its large storing capacity features, as compared to hard disks.
Answer:
B. searching for a new element.
Explanation:
Searching for an element in a sorted array is denoted as:
O(log n)
It uses a binary search algorithm to seek for the element in the array. So it gives only a logarithmic increase as the search moves up the array.
To Insert a new element to an array, it tries to arrange the new element orderly is the array, checking from one element to another to see the position it fits.
It is denoted as O (n), and is slower than inserting in an unsorted array, which is denoted as O (1), because it does not care of the position of the new element.
The speed for computing the mean in both sorted and unsorted are the same.
Hello there!,
Ok, so in order to maintain your business patriotic clients and potential clients your business has to have a great customer service. Mainly for customer satisfaction but also to make sure that customers don't have any problem with the aid they need. I am positive that the answer is C due to the fact it's talking about something similar to customer satisfaction.