Write a program that asks the user to enter the name of a file, and then asks
Question:
Write a program that asks the user to enter the name of a file, and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the file. Use Notepad or another text editor to create a simple file that can be used to test the program.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 50% (6 reviews)
inputFileName inputEnter name of input file inputFile openinputFileName r printOpening f...View the full answer
Answered By
Dudhat Vaidehi
I tutored mostly elementary school students privately after school and during the summer. We met in their homes or at the public library. I charged an hourly fee, and I provided any necessary materials.
Having taught in special education in two local schools for many years meant that I had contact with a lot of parents of special needs students. I never had to advertise — word of mouth was how most folks knew of me. At one point I did have a website, but didn't utilize it much. I stayed very busy, especially in the summers, and always had a full schedule. I typically met with each student's teacher in order to get an idea of what the focus of my instruction/remediation should be. Becoming familiar with the student's learning style(s) was also very helpful. Often parents would share records and test results with me. After each tutoring session, I documented the student’s progress and gave parents written updates, as well as phone calls or emails as needed.
While my students and I certainly utilized technology and the internet often during our sessions, I never tutored online or for any tutoring company, so am not familiar with the curriculums or methods used in those settings.
Tutoring one on one was very enjoyable and rewarding. My students and I had fun, and grew quite fond of one another. The extra income was a bonus. I had to retire from tutoring due to a physically handicapping disease, and miss my students very much.
0.00
0 Reviews
10+ Question Solved
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Question Posted:
Students also viewed these Computer science questions
-
Write a program that asks the user to enter the name of his or her favorite city. Use a String variable to store the input. The program should display the following: The number of characters in the...
-
Write a program that asks the user to enter the size of a triangle (an integer from 1 to 50). Display the triangle by writing lines of asterisks. The first line will have one asterisk, the next two,...
-
Write a program that asks the user to enter a favorite color, a favorite food, a favorite animal, and the first name of a friend or relative. The program should then print the following two lines,...
-
Two pulses A and B are moving in opposite directions along a taut string with a speed of 2.00 cm/s. The amplitude of A is twice the amplitude of B. The pulses are shown in Figure P18.2 at t = 0....
-
The Miracle Clean Company has some new products that it expects to lead to high growth in the near future. It has given analysts the following forecasts for the next three years: The firm's debt has...
-
What is data replication, and what are the three replication strategies?
-
Amanda Forbes was hired as a nail technician by Showmann, Inc., in 2011. In 2017, Forbes attended a work-related holiday party where Showmann distributed raffle tickets to employees. One of the...
-
For the Hawkins Company, the monthly percentages of all shipments that were received on time over the past 12 months are 80, 82, 84, 83, 83, 84, 85, 84, 82, 83, 84, and 83. a. Compare a three-month...
-
Direct Labor Budgeted $14,200, Actual $14,200, Indirect Labor Budgeted 5,800, Actual 5,400, Utilities Budgeted 1,900, Actual 2,200, Rent Budgeted 3500, Actual 3500, Marketing Budgeted 150, Actual...
-
As chief investment officer of a small endowment fund, you are considering expanding the fund's strategic asset allocation from just common stock (CS) and fiXed-income (FI) to include private real...
-
Write an input validation loop that asks the user to enter Yes or No.
-
The while loop is this type of loop. a. Pretest b. Posttest c. Prefix d. Postfix
-
Determine whether the two vectors are orthogonal and, if not, whether the angle between them is acute or obtuse. (1, 2, 1), (7,-3,-1)
-
Determine the acceleration for the given values and evaluate displacement for t=3.0 (s). V = 0 5.0 (m/s) = 15.0 (m/s) v = t = 2.0 (s)
-
You are asked to test an underground pipe with clean water steadily flowing through. The pipe starts with a large cross sectional area of 450 cm^2 and after a few meters the presence of debris...
-
Consider the linear the following linear system: x + 4x2 + 2x3 = 3 4x + 2x + x3 = 1 2.x25x3 = -3 2x1 - Find the solution of the above system if exist using: 1- Gaussian Elimination Method. 2-...
-
LP 791-18 c was discovered using the transit method with a transit depth of 1.483 x 102. Its star has a stellar radius of 0.17 R. (solar radii). How many Jupiter radii is the planet LP 791-18 c?...
-
Two spin-1/2 particles with spin operators S and s interact via the Hamiltonian H = X S S. Find the energy levels of this system and their degeneracy. =
-
A thin-client terminal is used to display a Web page containing an animated cartoon of size 400 pixels 160 pixels running at 10 frames/sec. What fraction of a 100-Mbps Fast Ethernet is consumed by...
-
on 8 For the following set of lengths 130, 170, 160, 160, 150, 190 Third quartile is: et red d out of Select one: O a. 160 a question O b. 145 O c. 175 O d. 180
-
This marks the location of the next item that will be read from a file. a. Input position b. Delimiter c. Pointer d. Read position
-
What will the following code display? try: x = float (abc123) print (x) except ValueError: print('This code caused a ValueError.') except TypeError: print('This code caused a TypeError.') print('This...
-
Modify the program that you wrote for Exercise 6 so it handles the following exceptions: It should handle any IOError exceptions that are raised when the file is opened and data is read from it. It...
-
In 2013, the U.S. imported $2,294 billion of dollars in merchandise like computers, phones, coffee machines, and so on. In the same year, the US exported $1,593 billion of dollars in merchandise like...
-
You recently hired a catering service for an important awards ceremony for the members of your organization. Some of the menu choices were poorly prepared and the sevices was slow. You were...
-
Describe five attention getting ideas for an effective message to market a wireless computer network
Study smarter with the SolutionInn App