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
Which of the following correctly declares an array:
AleksandrR [38]

Answer:

a.

Explanation:

6 0
3 years ago
1. Problem solving is
Ne4ueva [31]

Answer:

A

Explanation:

1. Problem solving is

(4 Points)

O A. highly interactive

B. collaborative

C. Both And B

D. Designing an App

4 0
3 years ago
A device that is connected to the Internet is known as a what?
MrMuchimi
I would say a host or end system
6 0
3 years ago
Read 2 more answers
Write an assembly program to find the largest item in an array and store it in a variable named MAXIMUM. Hint: Use both Jump and
Gekata [30.6K]

Use the knowledge of computational language in C++ to write the a code assembly program to find the largest item.

<h3>How to write a maximum function in C++?</h3>

To make it simpler the code is described as:

<em>#include<bitd/stdc++.h></em>

<em>Using namespace std;</em>

<em>Int main(){</em>

<em>Int arr[10]={10, 2, 23, 45, 21, 11};</em>

<em>Int min=INT_MAX;</em>

<em>Int max=INT_MIN;</em>

<em>for(int i=0;i<10;i++)</em>

<em>If(min<arr[i])min=arr[i];</em>

<em>for(int j=0;j<10;j++)</em>

<em>if(max>arr[j])max=arr[j];</em>

<em>Cout<<max<<” “<<min<<endl;</em>

<em>return 0;</em>

See more about C++ code at brainly.com/question/19705654

7 0
2 years ago
If you enjoy working with livestock, the best cluster in which to research careers would be: A. Health Science. B. Agriculture,
Pachacha [2.7K]

Answer:

B. Agriculture, Food, and Natural Resources.

Explanation:

The Agriculture, Food and Natural Resources career cluster is for those students who enjoy the outdoors and love working with both animals and plants. The cluster prepares most students for careers in agriculture products and services. This cluster includes a wide range of job occupations such as livestock farmer, florist, and many more. The animal systems career pathway will specifically deal with the business side of livestock. This career pathway will further include students who would want to work as animal breeders, farm workers, animal scientists, or nonfarm animal caretakers.

7 0
3 years ago
Other questions:
  • Theâ ______ is a large worldwide collection of networks that use a common protocol to communicate with one another.
    5·1 answer
  • Which of the following characteristics of an e-mail header should cause suspicion?A. Multiple recipientsB. No subject lineC. Unk
    12·1 answer
  • Is social media and advancement of technology causing our society to become less social?
    13·1 answer
  • Ted is looking for a reliable source for his paper. Which of the following sites would be considered reliable?
    5·1 answer
  • A program execution is called ​
    15·1 answer
  • Select the correct answer.
    12·1 answer
  • In Python, a function is _____.
    9·1 answer
  • Write a calculate_sq_inches_of_good_pizza function that accepts the diameter of a pizza and returns the area of the pizza minus
    7·1 answer
  • Which of these describes, in increasing order, the file sizes of the same image in different formats? Group of answer choices
    6·1 answer
  • Large and powerful computer capable of processing and storing large amounts of business data
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!