The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Jul 2017 |
| Last Sign in: | 304 Weeks Ago, 1 Day Ago |
| Questions Answered: | 15833 |
| Tutorials Posted: | 15827 |
MBA,PHD, Juris Doctor
Strayer,Devery,Harvard University
Mar-1995 - Mar-2002
Manager Planning
WalMart
Mar-2001 - Feb-2009
I am in need of immediate help please! I need pseudocode written for the attached assignment.
Â
Teacher's "starter" program is below and mine is attached. Please compare and let me know if I can submit my inventoryNeeded.java file.
//*****************************************************************************
// TITLE: Inventory read and write
// FILENAME: Mod4 Assignment2
// PREPARED FOR : 119 Java
// PROGRAMMER (S): Tracy Rose
// DEVELOPMENT DATE: 24/07/17
// COMPILER USED: Netbeans
// Requires a text file to read from HD inventoryDATA.txt
// It outputs a text file inventoryNEEDED.txt
//***************************************************************************
package inventory;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.util.Scanner;
public class Inventory
{
public static void main(String[] args)
{
try (Scanner scanner = new Scanner(new File("inventoryDATA.txt")))
{
File file = new File("inventoryNeeded.txt");
// if file doesnt exists, then create it
if (!file.exists())
{
file.createNewFile();
} // end IF statement
FileWriter fw = new FileWriter(file.getAbsoluteFile());
try (BufferedWriter bw = new BufferedWriter(fw))
{
// WHILE LOOP GOES HERE....
System.out.println("**** finished job *****");
} // end TRY
} // end TRY
catch (Exception e)
{
} // end CATCH
} // end MAIN
} // end CLASS
Attachments:
----------- Â ----------- H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly