CS101 Introduction to Computing Assignment Problem

Assignment Help Other Subject
Reference no: EM132397213

CS101 Introduction to Computing Assignment

Tasks -

1. Open the file a05b.py and follow the instructions given below:

(a) Write a function with the exact name of writeMissingEntries that takes an argument from a file named 'studentRecord.txt' line by line. Each line represents some important information and scores of a student. The first element is the roll number of the student and the second is the full name. The rest of the elements are the student's scores in quizzes. There are total three quizzes. Some students may have more quizzes than the others. For instance, in the example below, the first student has 3 quizzes while the third has only 2 (of which, the third got a 'A' which shows the student was absent). A in the score is the same as a 0. The problem is that some entries might be missing e.g. there are only two entries against Jamal Khan. So writeMissingEntries should find such missing and should write in 'logfile.log'. Some contents of 'studentRecord.txt' are:

Some contents of 'studentRecord.txt' are:

18P-0001, Ali Ahmed, 7, 4, 6

18P-0130, Hassan Jan, A, 8, 0

18P-0402, Jamal Khan, 10, 6

18P-0145, Hamza Saeed, 6,4.5, 6

Your task is to call writeMissingEntries that write those lines which has missing entries in another file named 'logfile.log'. You can solve this problem using different approaches, but basic requirement is that writeMissingEntries function should handle 'IndexError' exception in appropriate manner.

So, it should store the following information in 'logfile.log' file: [18P-0402, Jamal Khan, 10, 6]

Your function should be able to handle any number of student records passed to it.

Make sure you preserve the order of records in the file. If the order of students is changed, your tests may not pass.

2. Then, run local tests using the python run.py local.

3. If all tests succeed, submit your assignment using python run.py remote.

4. Run local tests and if they pass, submit the assignment using the submission command given on the Autograder assignment page. (Same as the previous assignment.)

5. Once the submission is successful, you may visit the Autograder front-end to view your submission history.

6. If you face any issue, please send me an email informing me of the error. We're still trying to work out the issues in this new system. So, your help will be greatly appreciated.

Attachment:- Introduction to Computing Assignment Files.rar

Reference no: EM132397213

Questions Cloud

ENGIN5304 Advanced Robotic- Assignment Problem : ENGIN5304 -Advanced Robotic Assignment Help and Solutions, Federation University Australia-Find and plot the joint trajectories which would move the origin.
Risk appetite is quantity and nature of risk : Risk appetite is the quantity and nature of risk that organizations are willing to accept as they evaluate trade-offs between "perfect security"
New technologies and for policy making and policy review : Agent Based Modeling can be used for introducing new technologies and for policy making and policy review.
Software development policies in terms of security : Outline some of the software development policies in terms of security and discuss how it could be implemented in an organization.
CS101 Introduction to Computing Assignment Problem : CS101 Introduction to Computing Assignment Help and Solution. Write a function with the exact name of writeMissingEntries
Local company called trigo has caught your attention : You work as a forensic investigator. A recent inquiry from a local company called TriGo has caught your attention.
Why is understanding hacking-exploitation-vulnerabilities : Why is understanding hacking, exploitation, vulnerabilities, and attacks critically important? What motivates hackers to attack computer networks?
What network effects are part of Zipcar strategy : Discuss the synergy between the business strategy of Zipcar and information technology. What network effects are part of Zipcar's strategy? How do they add
Describe technological instrumentalism : List the benefits associated with stakeholder engagement in governance. Describe technological instrumentalism.

Reviews

Write a Review

Other Subject Questions & Answers

  Neurotransmitters progress during synaptic transmission

Which of the following is the correct sequence of steps through which neurotransmitters progress during synaptic transmission?

  Product information sheet-product brochure

Write a product information sheet, product brochure, or product page for a website and explain the technical specification of the product and the marketing communication strategy of your chosen organization.

  Score on the least-preferred-co-worker scale

Consider the factors from the situational leadership theory outlined in Figure 12.4. Apply these factors to Jacobs and Windber. How do you think Jacobs would score on the least-preferred-co-worker (LPC) scale? Why?

  Description of work settings and average incomes one expect

The types of work professionals in specialty areas within the larger field of psychology do and The type and level of education one must achieve to work in those specialty areas.

  List the one or two required instructional materials

List the one or two required instructional materials and at least three supplemental materials. Name this item Instructional and Supplemental Materials.

  Explain what is meant by a risk-free rate

How do statisticians typically measure GDP in service sectors (reading previous chapters may help answer this). Why are fees traditionally important. Why do fees not help in the financial sector. What is meant by FSIM. What does it try to measure. ..

  Evaluating the case of jenny jones

A brief discussion of the facts of the case. Or in other words "what are the 'issues' in this case?A statement of the Plaintiff's position.

  What is the projects cash flow for the first year

Colsen Communications is trying to estimate the first-year cash flow (at year 1) for a proposed projecWhat is the projects cash flow for the first year (t = 1)?

  What information from this film is new or surprising to you

What main ideas and/or themes do you think the director of the film is trying to communicate to the audience? Give evidence to support your claims.

  Discuss what are the ethical considerations

What is your position as the owner of the business and, do you have to do anything legally

  Define separates diagnosing problems from selling services

In 1992 the state of California charged Sears Auto Centers with overcharging customers for unneeded or unperformed repairs

  Describe the relationship between your ancestry and ethnic

Describe the relationship between your ancestry and any racial, ethnic, or cultural groups you identify with--particularly if you identify with more than one.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd