1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
evablogger [386]
3 years ago
10

Edhesive assignment 4 student schedule python

Computers and Technology
2 answers:
Mademuasel [1]3 years ago
8 0

Edhesive assignment 4 student schedule python is below:

<h3 /><h3>Explanation: </h3>

f = open("score1.txt","r+")

import datetime

time = datetime.datetime.now()

stars = "************************"

lstars = "****************"

def log():

   x = open("score1_log.txt","w+")

   x.write(stars+"\nProcessing header lines.\n"+stars)

   ln = 0

   for a in f:

       ln += 1

       empty2 = "\n\n"

       dash = "--------------------"

       b = (a.strip()).split(",")

       sb = str((b))

       c = len(b)

       x.write(empty2 + dash + "\n Processing Line {}.\n".format(ln) + dash)

       x.write("\nLog Time : {}\n".format(time))

       x.write("\nInput Line is ...\n" + a)

       x.write("\nGenerated list is...\n" + sb)

       x.write("\n\nThe List contains {} values".format(c))

   x.close()

next(f)

y = open("score1_grade.txt","w+")

print ("\t\t\t" + lstars + "\n\t\t\tStudents Results\n\t\t\t"+ lstars)

print("\n\n Student Id\t Name \t\t\t Total Mark \t Grade")

print("\n ----------\t ---- \t\t\t ---------- \t -----\n")

for a in f:

   b = (a.strip()).split(",")

   sd = str(b[0])

   if ((len(b) == 7) and (len(sd) == 6)):

       m = float(b[3]+b[4]+b[5]+b[6])

       g = "F"

       if m >= 95:

         g = "A+"

       elif m >= 90:

         g = "A"

       elif m >= 85:

         g = "A-"

       elif m >= 80:

         g = "B+"

       elif m>= 75:

         g = "B"

       elif m>= 70:

         g = "B-"

       elif m>=65:

         g = "C+"

       elif m >= 60:

         g = "C"

       elif m >= 55:

         g = "C-"

       elif m>=50:

         g = "D"

       else:

         g = "F"

       print(b[0] +"\n")

score1_log.txt

************************

Processing header lines.

************************

--------------------

Processing Line 1.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

sid,lname,fname,assignments,midterm,final

Generated list is...

['sid', 'lname', 'fname', 'assignments', 'midterm', 'final']

The List contains 6 values

--------------------

Processing Line 2.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

000000,bbb,aaa,30,20,50

Generated list is...

['000000', 'bbb', 'aaa', '30', '20', '50']

The List contains 6 values

--------------------

Processing Line 3.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300145,Reza,Ahmed,30,20,50

Generated list is...

['300145', 'Reza', 'Ahmed', '30', '20', '50']

The List contains 6 values

--------------------

Processing Line 4.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300146,Howe,Ayan,27,10,40

Generated list is...

['300146', 'Howe', 'Ayan', '27', '10', '40']

The List contains 6 values

--------------------

Processing Line 5.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300147,Nitasha, Li ,21,8,25

Generated list is...

['300147', 'Nitasha', ' Li ', '21', '8', '25']

The List contains 6 values

--------------------

Processing Line 6.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300148,Hashir,ali,27,17,38

Generated list is...

['300148', 'Hashir', 'ali', '27', '17', '38']

The List contains 6 values

--------------------

Processing Line 7.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

30019,Chau,Kim,30,15,43

Generated list is...

['30019', 'Chau', 'Kim', '30', '15', '43']

The List contains 6 values

--------------------

Processing Line 8.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300151,long,Mehtab,10,,30

Generated list is...

['300151', 'long', 'Mehtab', '10', '', '30']

The List contains 6 values

--------------------

Processing Line 9.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300152,Hayre,Zaid,10,30

Generated list is...

['300152', 'Hayre', 'Zaid', '10', '30']

The List contains 5 values

--------------------

Processing Line 10.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300153,kim,Baker,,,29

Generated list is...

['300153', 'kim', 'Baker', '', '', '29']

The List contains 6 values

--------------------

Processing Line 11.

--------------------

Log Time : 2018-07-24 20:33:55.491577

Input Line is ...

300154,John,Ally,50

Generated list is...

['300154', 'John', 'Ally', '50']

The List contains 4 values

score1.txt

sid,lname,fname,assignments,midterm,final

000000,bbb,aaa,30,20,50

300145,Reza,Ahmed,30,20,50

300146,Howe,Ayan,27,10,40

300147,Nitasha, Li ,21,8,25

300148,Hashir,ali,27,17,38

30019,Chau,Kim,30,15,43

300151,long,Mehtab,10,,30

300152,Hayre,Zaid,10,30

300153,kim,Baker,,,29

300154,John,Ally,50

Learn more about python brainly.com/question/14130677

#LearnWithBrainly

Phantasy [73]3 years ago
3 0

Answer:

Explanation:

do you know how to do some of it or do you need the whole answer?

You might be interested in
I don't know if this is supposed to go here or art but i need help with photoshop, basically you can create whatever you want bu
Morgarella [4.7K]

Answer:

...................

6 0
3 years ago
What is Blender's default save directory for movie AVI files?
DanielleElmas [232]
Check under the user's files under "My Videos".
4 0
3 years ago
Read 2 more answers
Which statement describes what this command accomplishes when inside and outside interfaces are correctly identified for NAT? ip
Marianna [84]

Answer:

The answer is "Option C".

Explanation:

The NAT accurately identifies the environment and internal interfaces, and main customers can link to a 192.168.1.50 Web server. When designed for, proxies examine input and output packages. IP nat "inside source" implies to encourage an outgoing parcel emanating from an "outside" application and behave accordingly.

7 0
3 years ago
How would you compare and contrast the impact of the printing press with the impact of the internet?
Ilia_Sergeevich [38]
<span>The impact of the printing press with the impact of the internet is that </span>internet is an easy access compared with the printing press. Changes affect society, there are more ways to access info today through the internet.  internet spreads information faster and can be shared quickly.  
4 0
3 years ago
Convert each of the following for loops into an equivalent while loop. (You might need to rename some variables for the code to
MAVERICK [17]

Answer:

~CaptnCoderYankee

Don't forget to award brainlyest if I got it right!

Download txt
5 0
3 years ago
Other questions:
  • You have two LANs connected via a router. Network 1 has a DHCP server with a single Ethernet interface. Network 2 does not have
    9·2 answers
  • Can multiple processors can be installed in a single processor housing?
    14·2 answers
  • Use the _______ command to combine the selected cells and center them. merge across center across selection merge cells merge an
    7·1 answer
  • 1. The best program to present numerical data in would be ____. a. Access c. PowerPoint b. Excel d. Word
    6·1 answer
  • A signal has a spectrum from 0 to 145 Hz, as shown below. It is sampled at a rate of 295 Hz. Find the region of the baseband spe
    5·2 answers
  • How does the Rights Management Services feature help to protect information
    11·1 answer
  • What is the orbit? Define
    12·1 answer
  • hey guys just dropped some hot beats so go and follow me my user is the beats and comment if you would do that that would be gra
    11·1 answer
  • Fill in the blanks in the SQL statement below that will list the invoice number, invoice total and credit which is the total sum
    14·1 answer
  • 5. What skill is unique to reading online?
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!