Own file to test your program

Assignment Help JAVA Programming
Reference no: EM13164409

Write a program which reads a file and creates a file with the same contents of all lower case letters. Keep in mind that other characters are not affected.
Create your own file to test your program. Your job is to set up the input and output files to have the program read from a file and write to a file. Here is a basic program that will accomplish what is desired:

import java.io.*;
class InputOutput
{
public static void main(String args[])throws Exception
{
FileReader fr = new FileReader("Exercise03.in");
FileWriter fw = new FileWriter("Exercise03.out");

Answer6

int ch;
ch = fr.read();
while(ch != -1)
{
if((char)ch>='A' && (char)ch<='Z')ch = ch +('a'-'A');
fw.write((char)ch);
ch = fr.read();
}
fr.close();
fw.close();
}
}

Reference no: EM13164409

Questions Cloud

What is the partial pressure of oxygen : A gaseous mixture of O2 and N2 contains 30.8 nitrogen by mass. What is the partial pressure of oxygen in the mixture if the total pressure is 805 mmHg ?
State deficiency of phosphoglyceromutase : Deficiency of phosphoglyceromutase d) mutation that interferes with the formation of quarternary structure in hemoglobin
What is the molarity of the saturated solution : the solubility of O2(g) in water is 4.43 mg O2/100 g H20 at 20 degree Celsius when the gas pressure is maintained at 1 atm. What is the molarity of the saturated solution?
Rank following quantities in order of decreasing distance : Rank from longest to shortest distance. To rank the items as equivalent, overlap them.
Own file to test your program : Create your own file to test your program. Your job is to set up the input and output files to have the program read from a file and write to a file. Here is a basic program that will accomplish what is desired
State what concentration of substrate will give a velocity : what concentration of substrate will give a velocity (v) of 62% of maximal velocity (Vmax)?
Why it is desirable for corporations : Using a standard format memo please discuss the why it is desirable for corporations, charities, and NGOs to change their External Audit firms every 7-10 years.
The warehouses the firm supplies retail outlets : DSS Inc. is an electronics company with production facilities located in Atlanta, Boston, and Chicago. Components produced at these facilities may be shipped to the firm's regional warehouses that are located in Edison and Fargo. From the warehouses ..
What was the final volume of water on the buret : A volume of water was delivered using a buret and experimentally determined to have a mass of 2.00-g. What was the final volume of water on the buret if the inital was 0.44-mL? [assume the density of water is 1.00g/mL]

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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