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'.
The variables must begin with a letter of the alphabet, a dollar sign or a underscore. After the first character you may add numbers as well. All special characters besides the dollar sign and underscore and not allowed in variables.
Answer:
Pharming involves:
redirecting users to a fraudulent website even when the user has typed in the correct address in the web browser.
Explanation:
- When a hacker steals your confidential and private information by installing a malicious code on your computer which misdirects you to fake and fraudulent websites, this is called pharming.
- Hacker installs virus on your computer which manipulates the host files on your computer.
- The hacker uses DNS cache poisoning to attack DNS services on your computer which makes many users to enter fraudulent site, unknowingly, as they type the URL of the real website.
- These fraudulent website developed by hacker can install virus on your computer and steal confidential information from your computer.
- Pharming is done by hackers in order to steal sensitive data from a person's computer.
Answer:
Explanation:
Renewable energy is fuel that comes from a source that can be replenished in a short amount of time. This includes solar, wind, water, geothermal power and bioenergy. While renewable energy sources may not always be available – for example, if there is no wind to drive wind turbines, or cloudy days that reduce solar energy – they play an important part in reducing the use of non-renewable resources. Furthermore, many of these resources do not emit greenhouse gases directly into the atmosphere.
Answer:
The correct answer to the following question will be "Abstract Reasoning".
Explanation:
- Abstract reasoning depends on the ability to interpret facts, to identify correlations and interactions and to resolve the problems at a deep, conceptual level.
- To be able to construct hypotheses about both the existence of events and concepts require abstract reasoning capabilities.
This suggests, therefore, that Dallas has this ability.