no longer returns an error but your math seems to have something wrong with it, always returns 0
Console.WriteLine("Enter a percentage here");
int Percent = int.Parse(Console.ReadLine());
Console.WriteLine("Enter your number here");
int Number = int.Parse(Console.ReadLine());
int result = Percent / 100 * Number;
Answer:
In Python:
import os.path
from os import path
fname = input("Filename: ")
if path.exists(fname):
with open(fname) as file_in:
lines = []
for line in file_in:
lines.append(line.rstrip('\n'))
f = open("stat.txt","r+")
f.truncate(0)
f = open("stat.txt", "a")
f.write("Names\tTotal\tSubjects\tAverage\n")
for i in range(len(lines)):
rowsum = 0; count = 0
nm = lines[i].split()
for j in nm:
if (j.isdecimal()):
count+=1
rowsum+=int(j)
average = rowsum/count
f.write(nm[0]+"\t %3d\t %2d\t\t %.2f\n" % (rowsum, count, average))
f.close()
else:
print("File does not exist")
Explanation:
See attachment for explanation where comments were used to explain each line
A lot of people do love going on different kinds of adventures. People do like adventures because;
- It helps to improve their physical health and it also hinders/ treat different scope or range of health issues.
- It helps to make the human brain bigger that is, adventures such as hiking or walking helps to grow the brains.
- People go on adventures so as to build or raise their tolerance level such as Tolerance for uncertainty.
- Adventures helps to improve one's reflectiveness and mental skill
- It gives you new ideas, feeds your dreams and also helps to builds your confidence.
Adventure is simply defined as the act of been involved in an unusual or exciting experience or any activity. It can be hazardous in nature.
Learn more about adventure from
brainly.com/question/25950911
There might be insufficient storage space so your computer usually takes a longer time to load.The bigger your file, the longer it takes to load. So the solution is to clear up your storage space