Determine the number of uppercase letters in the file

Assignment Help Computer Engineering
Reference no: EM132211258

Question :

Write a program that reads the file's contents and determines the following: The number of uppercase letters in the file

The number of lowercase letters in the file

The number of digits in the file

The number of whitespace characters in the file

The program calls and tests a function analysis_file that takes a file handle as a parameter and returns the above-mentioned statistics to be written/printed in the output file

txt file:

No one is unaware of the name of that famous English shipowner, Cunard.

In 1840 this shrewd industrialist founded a postal service between Liverpool and Halifax, featuring three wooden ships with 400-horsepower paddle wheels and a burden of 1,162 metric tons.

Eight years later, the company's assets were increased by four 650-horsepower ships at 1,820 metric tons, and in two more years, by two other vessels of still greater power and tonnage.

In 1853 the Cunard Co., whose mail-carrying charter had just been renewed, successively added to its assets the Arabia, the Persia, the China, the Scotia, the Java, and the Russia, all ships of top speed and, after the Great Eastern, the biggest ever to plow the seas.
So in 1867 this company owned twelve ships, eight with paddle wheels and four with propellers.

If I give these highly condensed details, it is so everyone can fully understand the importance of this maritime transportation company, known the world over for its shrewd management.

No transoceanic navigational undertaking has been conducted with more ability, no business dealings have been crowned with greater success.

In twenty-six years Cunard ships have made 2,000 Atlantic crossings without so much as a voyage canceled, a delay recorded, a man, a craft, or even a letter lost.

Accordingly, despite strong competition from France, passengers still choose the Cunard line in preference to all others, as can be seen in a recent survey of official documents.

Given this, no one will be astonished at the uproar provoked by this accident involving one of its finest steamers.

Reference no: EM132211258

Questions Cloud

Does the employee have actionable fraud claim : Several weeks later, the company announced a restructuring plan that eliminated the employee’s position. Does the employee have an actionable fraud claim?
Contrast services and tools provided by two research firms : Explain the advantages of utilizing these research firms. Contrast the services and tools provided by the two research firms.
As company undertakes mainly engineering projects : As the company undertakes mainly engineering projects, they hire engineers for the duration of projects when highly specialist engineering skills are needed.
What indicators are prevalent demonstrating : What indicators are prevalent demonstrating that the company is effectively (or ineffectively) using research studies within the organization?
Determine the number of uppercase letters in the file : Write a program that reads the file's contents and determines the following: The number of uppercase letters in the file.
What role might situational ethics have played : Do you think the bystander effect was at work in the subway death incident? What role might situational ethics have played in Abbasi's response?
How is the loss allocated for tax purposes : How is this loss allocated for tax purposes? If Joseph and Jane decide to sell the property, how would they be required to account for any capital gain.
Display the future investment value : Write a program that reads in investment amount, annual interest rate, and number of years, and displays the future investment value.
Prepare a summary of the cpp reporting requirements : Prepare a summary of the CPP reporting requirements on T4 information slips. The summary will be used to validate the current payroll setup to ensure.

Reviews

Write a Review

Computer Engineering Questions & Answers

  How much faster is the pipelined machine

How much faster is the pipelined machine over the non-pipelined machine assuming no branches are taken?

  Compute the average of the elements of an int array

Write a method to compute the average of the elements of an int array and return the value as a double.

  Explain the conditions that have to be in place for overflow

Explain the conditions that have to be in place for an overflow to occur after an integer addition operation.

  What happens when you try to compute larger fibonacci

What happens when you try to compute larger fibonacci numbers? Why? Indicate the answer in a comment in your code.

  You are given three channels a b and c with bit error rates

you are given three channels a b and c with bit error rates 10-6 10-5 and 10-9 respectively. which channel is best?

  What is the crc generator sequence

What is the CRC generator sequence? How many bits long is the resulting Frame Check Sequence (FCS)?

  Write all scripts using the shell rather than learning a new

Why not just write all scripts using the shell rather than learning a new programming language like Perl?

  Evaluate dbms products for data warehousing

design a high-level summary of the main requirements to evaluate DBMS products for data warehousing. Suppose you are selling the data warehouse idea to your users.

  Create a visualization that show what happens when roll dice

If you roll three D6 dice, smallest number you can roll is 3 and the largest number. Create a visualization that shows what happens when you roll three D6 dice.

  Prepare storyboards that show the proposed screens

Prepare storyboards that show the proposed screens, including at least two sublevel tasks for each action.

  Create a class that contains a normal member function

Create a class that contains a normal member function and a static member function. Create an object of that class and, inside a for loop.

  Briefly discuss on the implementation of project progress

Briefly discuss on the implementation of project progress control regimes based on the FIVE components which could be used in this case-study.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd