Question: Can someone tell me how to write a cpp program that reads the file`s contents and determines the following: The number of sentences in the
Can someone tell me how to write a cpp program that reads the file`s contents and determines the following:
The number of sentences in the file.
The number of words in the file.
The number of letters.
The number of digits.
The number of punctuations.
file pasted( psb.txt):
Since it opened its doors in 1948, Penn State Behrend has grown from 146students on a former farm estate into a thriving academic institution with morethan 4,700 students, 50 buildings, and 33,000 alumni.The Penn State Behrend campus was donated to the University in 1948 by MaryBehrend in memory of her husband, Ernst, co-founder (with his father andbrother) of the Hammermill Paper Company, later acquired by International Paper.In donating her family's Glenhill Farm estate to Penn State, Mrs. Behrend wasresponding to the need, expressed by a committee of prominent Erie residents,for a public, co-educational, non-sectarian university presence in Erie.The first students to enroll at what was then known as The Behrend Center couldcomplete only their freshman year at the center. When Penn State reorganized in1959, the Commonwealth campus system was established and The Behrend Centerbecame the Behrend campus of Penn State. Both the enrollments and the physicalexpanse of the campus grew throughout the 1960s and early 1970s and, by 1971,more than 1,200 students were enrolled.On January 20, 1973, the Penn State Board of Trustees granted four-year collegeand graduate status to Penn State Behrend, making it the first Penn Statelocation outside of University Park to achieve such status. Today, the collegeis a dynamic and growing institution, and in recent years has added a number ofimpressive facilities, including a $10.2 million athletics and recreationcenter, chapel and carillon, observatory, three residence halls, Knowledge Parkat Penn State Erie, and a baseball and softball complex. The $30 million JackBurke Research and Economic Development Center, formerly known as the Researchand Economic Development Center, which houses the Black School of Business andthe School of Engineering, opened in 2006.The college is now led by Dr. Ralph Ford, chancellor, named to the position inJanuary 2016.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
