1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kari74 [83]
3 years ago
8

What procedures are involved in saving a file for the first time

Computers and Technology
1 answer:
ratelena [41]3 years ago
3 0
You must name the file and you must also choose where the file will be saved.

You might be interested in
A hotel salesperson enters sales in a text file. Each line contains the following, separated by semicolons: The name of the clie
Paul [167]

Answer:

Complete solution is given below:

Explanation:

Java code:

//Header file section

import java.util.Scanner;

import java.io.*;

//main class

public class SalesTestDemo

{

//main method

public static void main(String[] args) throws IOException

{

  String inFile;

  String line;

  double total = 0;

Scanner scn = new Scanner(System.in);

//Read input file name

System.out.print("Enter input file Name: ");

inFile = scn.nextLine();

FileReader fr = new FileReader(new File(inFile));

BufferedReader br = new BufferedReader(fr);

System.out.println("Name \t\tService_Sold \tAmount \tEvent Date");

System.out.println("=====================================================");

line = br.readLine();

//Each line contains the following, separated by semicolons:

//The name of the client, the service sold

//(such as Dinner, Conference, Lodging, and so on)

while(line != null)

{

String temp[] = line.split(";");

for(int i = 0; i < temp.length; i++)

{

System.out.print(temp[i]+"\t");

if(i == 1)

System.out.print("\t");

 

}

//Calculate total amount for each service category

total += Double.parseDouble(temp[2]);

System.out.println();

line = br.readLine();

}

//Display total amount

System.out.println("\nTotal amount for each service category: "+total);

}

}

inputSale.txt:

Peter;Dinner;1500;30/03/2016

Bill;Conference;100.00;29/03/2016

Scott;Lodging;1200;29/03/2016

Output:

Enter input file Name: inputSale.txt

Name        Service_Sold    Amount    Event Date

=====================================================

Peter   Dinner       1500   30/03/2016  

Bill   Conference       100.00   29/03/2016  

Scott   Lodging       1200   29/03/2016  

Total amount for each service category: 2800.0

7 0
3 years ago
When did the silver market drop sharply, hurting Bolivia's income?
seropon [69]
The silver market dropped sharply in <span>1898,</span> hurting Bolivia's income.

The entire mining business was in decline as a result of destruction, flooding, and abandonment of mines. Lack of investment and insufficiency of labor contributed to a pointy drop by silver production. Agricultural production was low, and Bolivia had to import food, even the essential staples consumed by the Indian population. the government had serious money difficulties as a result of the massive military expenditures and debt payments to the Republic of Peru as compensation for the military of liberation. of these issues were aggravated by the isolation of the new republic from the skin world and therefore the difficulties of securing its borders.
7 0
3 years ago
Read 2 more answers
Speed and security are advantages generally associated with this type of network. wired wireless
Gennadij [26K]

Answer:

The answer to the given question is "Wired".

Explanation:

In this question, the answer is wired because A wired means cables that are used to connect system like a laptop or a desktop to the Internet or another network.

  • wired network uses cables that's why the speed and security of the wired network are high.
  • In wireless It allows devices to stay connected to the network and It is less secure to the wired.

That's why the answer is "Wired".

4 0
3 years ago
Which file types have .exe and .png as their extensions?
uysha [10]
.png are for photos and .exe are for programs.
6 0
3 years ago
Read 2 more answers
To add slides to a presentation, _____.
Effectus [21]
<span>select the New Slide option from the Insert menu</span>
7 0
3 years ago
Other questions:
  • Have main create two objects: setA and setB.Input the values into setA (end with a 0 or negative) and input the values into setB
    12·1 answer
  • design the psuedocode for a program that allows a user to enter 10 numbers, then displays them in the reverse order of their ent
    6·1 answer
  • Which statement opens a file in such a way that information will only be written to its end?
    10·1 answer
  • What does a compiler do, and why is it necessary when using higher-level languages?
    10·1 answer
  • During the initiating phase, a project charter authorizes a project to begin. Which of the following elements are included in a
    15·1 answer
  • Which of the following is a typical concern for developers while using prototypes?
    6·2 answers
  • A user found that their personal data had been exfiltrated from their computer by a malicious program that they clicked on sever
    12·1 answer
  • c++ Project 6: Buoyancy. Buoyancy is the ability of an object to float. Archimedes’ principle states that the buoyant force is e
    13·1 answer
  • How do I delete my brainly account?<br> I don't need anymore.
    13·2 answers
  • The computer virus is simply a.......... a. diseases b.set of computer instrustruction or code c. types of bacteria​
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!