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
Please help me asapppp!​
I am Lyosha [343]

Answer:

1.  Formula is A2 : A9 = COUNT( A2: A9 ) = 8

2. Formula is SUM( A2: A9 ) = 36

3. Formula is B2 : B9 = COUNT( B2: B9) = 8

4. Formula is  MAX( C2: C9) = 5

5. Formula is MIN( C4: C8) = 3

6. Formula is SUM( C5 - C6) = 0

7. Formula is AVERAGE( C2: C9) = 4

Explanation: Have a nice day!✌️

6 0
3 years ago
How does the browser display the same webpage whether you enter the URL or the IP address in the address bar? What system transl
ASHA 777 [7]
Your browser references a DNS server that translates a word or phrase of a url into an IP and then tells your browser what the IP address is so the browser can navigate to it. My google is not working atm sorry but you can google "what does DNS stand forin networking" and get an answer.
8 0
4 years ago
You are configuring a wireless network with two wireless access points. Both access points connect to the same wired network. Yo
-BARSIC- [3]

Answer:

b. Same SSID, different channel

Explanation:

The Service Set Identifier (SSID) is a sequence that is included in all of the sets in a wirless network and helps identify them as part of the network. Because both points connec to the same network they need the same SSID.

7 0
3 years ago
Why Use LinkedIn AI Automation Tools to Grow Your Sales Pipeline?
guajiro [1.7K]

Answer:

With more than 722 million prospects on this platform, there’s a huge potential to find your next set of qualified leads.

  • More than 89% of the B2B marketers are already using LinkedIn to scale their lead generation efforts.
  • Almost 62% of them admit that LinkedIn has helped them to generate 2X more leads than any other social channels.
  • Almost 49% of the B2B marketers are using LinkedIn AI automation tools to find their future customers easily.
  • Also, more than half of the B2B buyers are on LinkedIn to make their buying decisions. This means that your ideal future leads are on LinkedIn making it a perfect platform for your business.  

That’s part of the reason why LinkedIn is one of the favorite platforms to generate B2B leads.

7 0
3 years ago
When I try to make an account, it always says that they are not able to complete the registration at this time. And I didn't alr
Anastasy [175]
Maybe just wait a day and try again
7 0
3 years ago
Other questions:
  • A database with a(n) _______________ data structure can easily handle a many-to-many data relationship. hierarchical network rel
    5·1 answer
  • The methods of the Character class that begin with ____ return a character that has been converted to the stated format.
    5·1 answer
  • list the sixth external parts of a computer system and identify which are output and which are input devices
    14·2 answers
  • What movie would be greatly improved if it was made into a musical?
    6·1 answer
  • Edhesive 1.7 code practice question 1
    8·1 answer
  • John have subscribed to a cloud-based service to synchronize data between your mobile device and your PC. Before allowing the da
    14·2 answers
  • Identify the potential impact to IT security of incorrect configuration of firewall policies and third- party VPNs
    5·1 answer
  • A user can view <br> and <br> in the Reading pane.
    9·1 answer
  • A user of Augmented Reality is able to experience<br> of information on their surroundings.
    11·1 answer
  • Which of the following safety and privacy features is not included in a P2P app or service?
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!