Creating a program that will generate a txt output file

Assignment Help Programming Languages
Reference no: EM131119675

ClassAverage

Objective:

• Creating a program that uses a .txt file as input

• Creating a program that will generate a .txt output file

• Exception Handling Requirements:

You'll be given a text file, called mstu4031_input.txt. That file will contain a list of grades.

Your job this week is to write a program that will read the file, and then generate an

output file that contains a class average and feedback. If the program cannot find the

input file in your BlueJ project directory, it will throw an IOException.

• Create a BlueJ project

• Add mstu4031_input.txt to the folder

• Now build your program

• Scanner Class

• DecimalFormat Class

• While loop

• Try/catch

• If/else if/else

• The program should produce a .txt output file (it will also live in the BlueJ folder)

o Call it "mstu4031_output.txt"

o List the values on separate lines

o Generate a class average

o Provide a feedback statement

MSTU4031: Lab - Calculating a Class Average Results should look something like this:

Lab 13

Input file name (from your computer): abc.txt

ERROR

Cannot locate the input file 'abc.txt' on your computer - please try again.

Input file name (from your computer): mstu4031_input.txt

What would you like to call your output file: mstu4031_output.txt

INPUT FILE FOUND, OUTPUT FILE GENERATED

Your input file, mstu4031_input.txt, has been found and accepted.

Your output file, mstu4031_output.txt, has been created.

mstu4031_output.txt is living in your BlueJ project directory.

Please open mstu4031_output.txt for the class's average and feedback. Results Screenshots:

Reference no: EM131119675

Questions Cloud

Define product placement : Define Product Placement. What are two product placement options? Why have marketers increased their use of product placements? How does the development of a creative strategy help the marketer?
Measure of an effective police administrator : The measure of an effective police administrator is often taken by how well the prepare, present, and execute the department budget. Please explain, with examples, what this means.
What is the main benefit of the benzodiazepine class : What is the main benefit of the benzodiazepine class with regard to usage as anesthetic induction agents
The merchandise was originally sold with a gross profit rate : The merchandise was originally sold with a gross profit rate of 30%. Prepare the entries on the books of Seaver Company to record all transactions related to Noble during 2010. (Ignore interest charges.)
Creating a program that will generate a txt output file : Creating a program that uses a .txt file as input. Creating a program that will generate a .txt output file. You'll be given a text file, called mstu4031_input.txt. That file will contain a list of grades.
Doctor freely prescribes these narcotics to people : do you think that doctors should face any legal consequences if they continue to prescribe narcotics to an individual over a long period of time, and it has become obvious that the doctor freely prescribes these narcotics to people?
Should the patient be started on tpn : Mrs. Hanes is a 62-year-old woman with metastatic breast cancer. She was admitted with dehydration and weakness. Should the patient be started on TPN
Installment sales default and repossession crawford : An oven that cost $1,200 was sold to Travis Longman for $1,500 on the installment basis. Longman made a down payment of $240 and paid $80 a month for six months, after which he defaulted. The oven was repossessed and the estimated fair value at time ..
One of the metrics used in non-traditional media : One of the metrics used in non-traditional media (internet, social media, etc.) is engagement. Explain what is meant by engagement and why it is important to the marketer. Studies have shown that email marketing is much more effective than traditiona..

Reviews

Write a Review

Programming Languages Questions & Answers

  Linear programming staffing problem

South Central Utilities has just announced the August 1 opening its second nuclear generator at its Baton Rou, Louisiana, nuclear power plant.

  Determines the aproximate number

Show how this can be done in a loop so the user can see resuts in a table. Let the output display and have headings for Day and Number of Bacteria Present on that day?

  Writing class containing two instance variables

Write class named ParkingMeter containing: two instance variables named timeLeft and maxTime of type int. Value of timeLeft must be initialized to 0.

  Create a glossary generator

Prompt the user to enter a word, return its definition and scrabble score (or output "not valid in scrabble")

  Explain reverse, sort and binary search

Because the C# array is an object member of the Array class it also comes with a number of built-in methods such as Reverse, Sort and Binary Search. You can use the Reverse method

  Write a program configures initializes io peripheral blocks

The main program configures initializes IO peripheral blocks, then  puts itself in an infinite loop. When the push button is pressed, the LCD panel displays "Red Alert!" for 3 second then clears.

  Write a report document for the hvac controller

write a report document for the HVAC Controller and To use integrated modular programming techniques in developing the project

  Create a dtd for a small xml data set

Create a DTD for a small XML data set drawn from the Stanford course catalog. There are multiple departments, each with a department chair.

  Program that creates a series of random 2d objects

Create a program (OpenGL, or DirectX) that creates a series of random 2D objects, (or 3D objects that only move in 2D), about 25 is probably good but you may need more or less and has them move around on the screen, they should wrap around the edg..

  Write program for real estate agent

Write a program for a real estate agent. The program should perform the following tasks: ask users for the average house price for the each of past 5 years for a single family residence of 1500 square feet.

  Write program which instantiates objects of classes

Private data of Quadrilateral must be the x-y coordinate pairs for four end-points of the Quadrilateral. Write a program which instantiates objects of your classes and outputs each objects area (except Quadrilateral.

  Comparing running time of two algorithm

Which algorithm would you prefer on the basis of running time, suppose all other factors equal?

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