Implement a class named age

Assignment Help Basic Computer Science
Reference no: EM131705006

Create PYTHON program with the following features:

1) Implement a class named Age; Class Age has the method named ReadFile to read the file input.txt; the values in the file contains in each line: first name, last name, age.

2) In Class Age, create the method ReckonAge, used to get the sum and the average of all the ages found in the input file;

3) In Class Age, create the method Output used to print on the screen and also into the file output.txt each of the ages found in the input.txtand also the total sum of all ages and average age; then make the greetings: (average <= 50) "YOUNG GROUP", (average >50 and <100) "GOOD AGE GROUP", (average >=100) "TELL THE SECRET";

Reference no: EM131705006

Questions Cloud

Order winners and qualifiers are characteristics of customer : Order winners and qualifiers are characteristics of the customer or the firm.
Memory or many bits of data transmission speed : In computing literature, the value represented by the prefixes kilo, mega, giga and so on can vary depending on whether they are describing
Determine the reporting capital assets and long-term debt : Describe the difference in reporting capital assets and long-term debt in the governmental funds financial statements and reporting those elements.
Tax return preparation during the busy season : Juan's Pro-Tax Service is deciding whether to buy software to expedite some of its tax return preparation during the busy season.
Implement a class named age : Implement a class named Age; Class Age has the method named ReadFile to read the file input.txt; the values in the file contains in each line
What is the difference between project and operations : What is the difference between a Project and Operations? Briefly explain the types of constraints that are common to most Projects.
Summarize bronfenbrenners ecological model : Summarize Bronfenbrenner's ecological model and describe why it is important for them to be aware of this theory.
Making the budgetary comparison statement : Which basis of accounting is used in preparing the budgetary comparison statement?
Discuss society is moving toward regarding cigarette smoking : what is deviant varies from time to time and from place to place. Some people feel that our society is moving toward regarding cigarette smoking

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Make databases useful to corporations

Evaluate the tools, technology, and trends that make databases useful to corporations. Provide an example of a corporate database and how your tools and technology would be used in the organization of your choice

  Calculate the peak manning

A software project is planned to cost 95PY in a period of 1 year and 9 months. Calculate the peak manning.

  Distinguish between concurrent study and simultaneous

Q - Distinguish between concurrent study and simultaneous. A single processor can execute two or more programs concurrently but not simultaneously. Why ?

  What percent of her backyard will not be watered directly

Gardening Migina bought a new sprinkler that covers part or all of a circular area. With the center of the sprinkler as the origin, the sprinkler sends out water far enough to reach a point located at (12, 16). (Lesson 10-2)

  Department does upgrade to windows

If the accounting department does upgrade to windows 10, will the department be able to run a legacy 16 bit billing program that was designed for windows XP?

  Write a string to the file pointed to by ofp

The second function should use a file pointer, say ofp, and the macro putc() to write a string to the file pointed to by ofp. Write a program to test your functions.

  Estimate all of the effects that are of interest

Suppose that you must design an experiment to investigate six continuous factors. It is thought that running all factors at two levels is adequate but that only the AB, AC, and AD two-factor interactions are of interest.

  Major international institutions

Identify three major countries with which your chosen company operates. Preferably, the three countries are in different continents. Are these three countries members of the IMF, the World Bank, and WTO? Do you believe that these three countries ac..

  The right-hand side of this equation be written in vba

How would the right-hand side of this equation be written in VBA?

  Retrieval performance of the hopfield network

Consider a Hopfield network made up of five neurons, which is required to store the following three fundamental memories:

  Top current it issues in higher education

Discuss Five of the top current IT issues in Higher Education

  Major steps of the process maria will have to oversee

Which documents should Maria read before her class? Based on what you know about ISO 27000 program certification, what are the major steps of the process Maria will have to oversee?

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