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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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