Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Provided files Assignment1.txt and Assignment2.txt represent the scores of assignments 1 and 2. You need to write an object-oriented program that takes a student name

Provided files Assignment1.txt and Assignment2.txt represent the scores of assignments 1 and 2. You need to write an object-oriented program that takes a student name from keyboard input and prints out the average score for that student. Your code should include the following items.

  • At least 1 class
  • The __init__() method should initialize at least 1 attribute to initialize the name of the student (taken from the keyboard input).
  • Once an object is created it would pass the student name (that is taken from the keyboard input) to the __init__() method.
  • The class should also have a method to read inputs from the Assignment1.txt and Assignment2.txt files.

Assignment 1:

Name ID Score Mary 12387 85 Robert 12388 84 John 12432 81 Michael 12472 83 William 12516 89 David 12534 81 Susan 12550 77 Jessica 12594 73 Sarah 12641 87 Karen 12690 81 Nancy 12740 80 Lisa 12746 71 Matthew 12768 78 Margaret 12782 67 Mark 12832 74

image text in transcribedimage text in transcribed
Assignment1 - Notepad 0 X File Edit Format View Help Name ID Score A Mary 12387 85 Robert 12388 84 John 12432 81 Michael 12472 83 William 12516 89 David 12534 81 Susan 12550 77 Jessica 12594 73 Sarah 12641 87 Karen 12690 81 Nancy 12740 80 Lisa 12746 71 Matthew 12768 78 Margaret 12782 67 Mark 12832 74Assignment2 - Notepad X File Edit Format View Help Name ID Score A Mary 12387 95 Robert 12388 94 John 12432 91 Michael 12472 93 William 12516 79 David 12534 91 Susan 12550 76 Jessica 12594 83 Sarah 12641 86 Karen 12690 89 Nancy 12740 90 Lisa 12746 81 Matthew 12768 88 Margaret 12782 88 Mark 12832 94

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions