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...
-
The double toggle mechanism shown is used in a punching machine. Knowing that links AB and BC are each of length 150 mm, determine the couple M required to hold the system in equilibrium when = 20....
-
Which account does a merchandiser use that a service company does not use? a. Cost of goods sold b. Inventory C. Sales revenue d. All of the above
-
McKnight Exercise Equipment, Inc., reported the following financial statements for 2012: Requirement 1. Compute the amount of McKnight Exercises acquisition of plant assets. McKnight Exercise sold no...
-
The campus bookstore has estimated that its profit (in dollars) from selling x hundred basketball conference championship t-shirts is given by the equation shown below. P = -47x+582x-523 The demand...
-
Consider the E-R diagram in Figure 7.29, which models an online bookstore. a. List the entity sets and their primary keys. b. Suppose the bookstore adds Blu-ray discs and downloadable video to its...
-
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
-
Students in one of the authors prestatistics classes anonymously estimated the authors age (in years). Their responses are described by the stemplot in Fig. 54. Variable: Age Decimal point is 1...
-
A proposed project requires no working capital, but it needs an initial investment of $600,000 which can be depreciated to a value of zero on a straight-line basis for six years. During those six...
-
Following is selected financial information from Greenwood Industries, for its fiscal year ended ( $ millions ) . REQUIRED a . ?Prepare an income statement, balance sheet, and statement of cash flows...
-
Selena has $ 1 8 0 0 in taxes payable for the most recent year. By using non - refundable tax credits, she is able to reduce her taxes payable to zero. She is not able to use a charitable...
-
Explain how each of the four levers of the Levers of Control framework can help the founders with their concerns. Include 1 ) the issue a given Lever is intended to help address and 2 ) provide an...
-
In Zen Buddhism there is a family koan, or riddle, that says, last night I dreamt I was a butterfly. How do I know today that I am not a butterfly dreaming I am a man? Can you relate this to the idea...
-
(a) Is it plausible that the service times are normally distributed with a mean of 70 seconds ami a standard deviation of 20 seconds'.' (b) Is it plausible that the service times are exponentially...
-
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...
-
Jackson, a self-employed taxpayer, uses his automobile 90% for business and during 2023 drove a total of 15,000 business miles. Information regarding his car expenses is listed below. Business...
-
Bel Air Flying Service started operations on December 1 , 2 0 . The trial balance in Figure 1 3 . 6 was prepared at month - end. Record the following adjustments in the General Journal, then make an...
-
Founded in 1960, the Arpeggio Music Company is a family-owned and operated firm specializing in the educational music market. Located in the U.S. Middle West, its products and services include...
Study smarter with the SolutionInn App