Discuss the given programming project

Assignment Help Basic Computer Science
Reference no: EM131608805

Question: Redo or do for the first time Programming Project but this time use a loop to read the names from the file. Your program should also handle an arbitrary number of entries in the file instead of handling only three entries. To do this, your program must check to see if there is still data left to read (i.e., it has reached the end of the file).

Programming Project: (This is an extension of an exercise from Chapter 1.) A simple rule to estimate your ideal body weight is to allow 110 pounds for the first 5 feet of height and 5 pounds for each additional inch. Create the following text in a text file. It contains the names and heights in feet and inches of Tom Atto (6'3"), Eaton Wright (5'5"), and Cary Oki (5'11"):

Tom Atto

6

3

Eaton Wright

5

5

Cary Oki

5

11

Write a program that reads the data in the file and outputs the full name and ideal body weight for each person. In the next chapter, you will learn about loops, which allow for a more efficient way to solve this problem.

Reference no: EM131608805

Questions Cloud

What is the present value of this liability : Imprudential, Inc., has an unfunded pension liability of $759 million that must be paid in 10 years. what is the present value of this liability?
What types of content should be censored : Explain what types of content should be censored - Explain why these criteria are ethically appropriate
Wap to randomly select numbers of three finalists for prize : You have three identical prizes to give away and a pool of 30 finalists. The finalists are assigned numbers from 1 to 30.
Write a literary review of one of the short stories : Write a literary review of one of the short stories in our literature unit that analyzes the narrative based on its historical context.
Discuss the given programming project : Redo or do for the first time Programming Project but this time use a loop to read the names from the file. Your program should also handle an arbitrary number.
Describe the us model of corporate governance : Describe the US model of corporate governance. Discuss the US model of corporate governance is different from that of the continental European.
Discuss jurisdiction pose in the fight against cyber crime : Identify the specific challenges that overlapping jurisdiction pose in the fight against cyber crime
What is your annual salary : What is your annual salary? Do you have a savings account? Do you have debt? How much are you worth, given an asset to debt ratio
Positive profit and yet have negative cash flow : Is it possible for a firm to have a positive profit and yet have a negative cash flow?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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