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
Lera25 [3.4K]
3 years ago
7

Write a program that reads a file called 'test.txt' and prints out the contents on the screen after removing all spaces and newl

ines. Punctuations will be preserved. For example, if 'test.txt' contains: This is a test file, for chapter 06. This a new line in the file! Then, your program's output will show: Thisisatestfile,forchapter06.Thisanewlineinthefile! Hint: Consider using the 'strip()' and 'replace()' functions.
Computers and Technology
1 answer:
svp [43]3 years ago
8 0

Answer:

I don't know  you should figure that out good luck

Explanation:

good luck

You might be interested in
On a piano, a key has a frequency, say f0. Each higher key (black or white) has a frequency of f0 * r^n, where n is the distance
Solnce55 [7]

Answer:

#include<iostream>

#include<cmath>

using namespace std;

int main()

{

float f0;

//Prompt user for input

cout<<"Enter Initial Key Frequency: ";

cin>>f0;

//Initialize number of keys

int numkey = 1;

//Print first key frequency

printf("%0.2f", f0);

cout<<" ";

while(numkey<=4)

{

 f0*= pow(2,(1.0/12.0));

 printf("%0.2f", f0);

 cout<<" ";

 numkey++;

}

return 0;  

}

Explanation:

Line 4 declares fo (the key frequency) as float

Line 6 prompts user for input

Line 7 accepts input

Line 9 initializes number of keys  to 1

Line 11 prints first key frequency  (the input from the user)

Line 12 - 18 is an iteration that calculates and print key frequencies

Line 14 calculates the next 4 key frequencies

Line 15 prints the corresponding key frequency

6 0
3 years ago
All of the following are ways to save money on transportation except :
Lisa [10]
The options listed are not related to the question. and if they were related in any sense then I would say the cheapest thing on the list is a phone card so I guess you can buy that and save the most for your travel as you can use phone cards anywhere as they have 1800 numbers which are free from any public phone. 
7 0
3 years ago
What is the tallest dam in the united states of america?
hichkok12 [17]
Oroville Dam<span> is an earthfill </span>embankment dam<span> on the </span>Feather River<span> east of the city of </span>Oroville, California<span>, in the </span>Sierra Nevada<span> foothills east of the </span>Sacramento Valley. At 770 feet (235 m) high, it is the tallest dam in the U.S.[8]<span> and serves mainly for water supply, hydroelectricity generation and flood control.
Answer from Wiki</span>
7 0
3 years ago
Read 2 more answers
Ted is asked to create a page of family photos for his family reunion Web site. He will have about 20 pictures to post, with a c
Alja [10]

Answer:

A

Explanation:

© is the symbol for copyright or Copr. for abbreviation.

7 0
4 years ago
Consider the information about the meaning of the word analog from paragraph 2 listed below. Which of the following phrases best
Reika [66]

Answer:

drzvkhy67re4d

Explanation:

Preciate u

3 0
3 years ago
Other questions:
  • What limits the impact of vehicle balance on view ghost ability during emergency vehicle maneuvers?
    15·1 answer
  • Markup is best defined as
    11·1 answer
  • Successful Alignment of IT with Business/Project Prioritization Refer to the readings for this week on aligning IT to the busine
    10·1 answer
  • Want to.learn about computers​
    9·1 answer
  • 1. Why is it important for IT technicians to keep documentation on computers for which they are
    13·1 answer
  • QN, 3. Write the working principle of computer.<br>​
    8·1 answer
  • What are some benefits that each computer system being used?
    12·2 answers
  • Why do you need to learn about engineering and technology.
    13·2 answers
  • A user wants to print a spreadsheet horizontally on a piece of paper instead of vertically to fit more columns on a single page.
    15·1 answer
  • Computer networks that use packet switching are less efficient than telephone networks that use circuit switching.
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!