Write a program that reads input as a stream of characters

Assignment Help Programming Languages
Reference no: EM131322341

1. Write a program that reads input as a stream of characters until encountering EOF. Have the program report the number of uppercase characters, the number of lowercase characters, and the number of other characters read. (You can use the functions in ctype.h for this assignment.) Use the attached file infile.txt as input when you submit your assignment.

2. Write a program that reads input as a stream of characters until encountering EOF. Have the program report the number of words and the average number of letters per word. You can use the functions in ctype.h for this assignment. You can assume that whenever you encounter a whitespace character or punctuation that a word has ended. Use the attached file infile.txt as input when you submit your assignment.

infile.txt

The snow glows white on the mountain tonight
Not a footprint to be seen
A kingdom of isolation,
And it looks like I'm the queen.

The wind is howling like this swirling storm inside
Couldn't keep it in, heaven knows I tried!

Don't let them in, don't let them see
Be the good girl you always have to be
Conceal, don't feel, don't let them know
Well, now they know!

Let it go, let it go
Can't hold it back anymore
Let it go, let it go
Turn away and slam the door!

I don't care
What they're going to say
Let the storm rage on,
The cold never bothered me anyway!

It's funny how some distance
Makes everything seem small
And the fears that once controlled me
Can't get to me at all!

It's time to see what I can do
To test the limits and break through
No right, no wrong, no rules for me I'm free!

Let it go, let it go
I am one with the wind and sky
Let it go, let it go
You'll never see me cry!

Here I stand
And here I'll stay
Let the storm rage on!

My power flurries through the air into the ground
My soul is spiraling in frozen fractals all around
And one thought crystallizes like an icy blast
I'm never going back,
The past is in the past!

Let it go, let it go
And I'll rise like the break of dawn
Let it go, let it go
That perfect girl is gone!

Here I stand
In the light of day
Let the storm rage on,
The cold never bothered me anyway!

Reference no: EM131322341

Questions Cloud

What are operational and marketing changes burberry can make : What are the operational and marketing changes Burberry can make? What are the potential future impacts of company's actions on Burberry's position in the market?
Describing your personality traits : Write a 1,050- to 1,400-word paper describing your personality traits based on your findings from the Big Five assessment tool. Include the following in your paper: Summarize your results
Select delegate and alternate to represent department : Each department is to select a delegate and an alternate to represent the department at a conference. In how many ways can this be done?
Demonstrate the role played by behavioral health in industry : What conclusions can you draw from your research that would demonstrate the role played by behavioral health in the healthcare industry
Write a program that reads input as a stream of characters : Write a program that reads input as a stream of characters until encountering EOF. Have the program report the number of uppercase characters, the number of lowercase characters, and the number of other characters read.
Make an investment : You want to make an investment that will yield a lump sum of $43,665 in 4 years. You will invest at a nominal rate of 8%. How much do you need to invest today to reach the above future value?
Create a script to accompany the presentation : Crisis management and crisis communications are specialized business disciplines. In times of crisis, companies can act in a number of ways; from ignoring the situation and hoping it passes in the next news cycle to aggressively defending itself a..
Write a program that will help an elementary school student : Write a program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers. It should then type a question such as: How much is 6 times 7?
What will be the value in your account at the end of year : Assume you are to receive a 10-year annuity with annual payments of $ 380 . The first payment will be received today (that is, at t = 0) and the last payment will be received at the end of Year 9 (that is, at t = 9). You will invest each payment in a..

Reviews

Write a Review

Programming Languages Questions & Answers

  Unix programming

UNIX Programming

  How is active directory implemented?

How is Active Directory implemented?

  Computing first seven values of fibonacci number sequence

Write a program that uses a loop to compute the first seven values of the Fibonacci number sequence.

  Identify components that perform distinct service

Identify components that perform a distinct service. Although the details can be quite complex, these details are the basic principles of object-oriented programming

  Explain the use of the of sql keyword select

Explain the use of the GROUP BY keyword. Include an example based on the CUSTOMER table from the General Sales database.

  Create a program for a pizza shop

You are tasked with creating a program for a pizza shop - however, as this is a comparative languages course, you will be creating the same application in the following programming languages:

  Write main program that can serve as a test class

Implement the previous classes in Java. Write main program that can serve as a test class that tests all of the methods created and demonstrates that they are working

  Discuss different techniques of passing arguments

Write the example that demonstrates different techniques of passing arguments: by value, by reference, and as pointers. Discuss the three methods.

  Program which accepts candy name-price per pound

A program which accepts the candy name (for example, "chocolate-covered cherries"), price per pound, and number of pounds sol in average month, and displays item's data only if it is best-selling item.

  A type of disk storage that so read and written by a floppy

A type of disk storage that so read and written by a floppy disk drive

  Write a program that convert number entered in roman numeral

Write a program that converts a number entered in Roman numerals to decimal form. Your program should consist of a class, say romanType.

  Implement method to create thousand random integers

Implement a method named posNeg which creates 1000 random integers. Range of numbers must be from -5 to +5 inclusive.

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