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

  Implement a menu-driven program for a hardware store

Perform a sales transaction - allow several hardware items to be purchased Remove a sales transaction based on invoice number and Edit a sales transaction by changing the hardware item's barcode and/or quantity purchased

  Selection tools for the hiring program at supermarket

Write down three selection tools which you would consider using for the hiring program at the supermarket.

  Falling letters game

Generic queue in the first project and generic list in the second project - In the second project, the player clicks the mouse on any falling letter to remove that letter from the window.

  Generate code for the given three address statements

Generate code for the given three-address statements assuming a and b are arrays whose elements are 4-byte values.

  Write program that asks user for two digit number

Write program which asks user for two digit number and then prints English word for that number. Sample run: Enter a two-digit number: 45

  Calculate transaction-based indi­rect overhead cost

calculate transaction-based indi­rect overhead cost (receiving, engineering, and packing) per unit for each of the three products. Use this new information to recalculate overall cost per unit for products A, B, and C.

  Compare using link labeles method

Just to make labels and scores for original graph and its done once for the comparison reasons - refine the Removed graph to take only edges that don't exist (missing and nonexistent) with there link labels

  Provide proper indentation and programming style

Provide proper documentation as required in the PAs, Provide proper indentation & programming style similar to the examples from the textbook, videos & PAs

  Write a program to perform unsigned binary eight-bit

Write a program to perform unsigned binary 8-bit to decimal conversion and decimal to binary conversion. Write a program that asks user to enter a year and this program checks whether that year is leap year or not.

  Write a java program to generate random number

Write a java program to generate random number between 45 and 56 inclusively?

  Create a local variable that inherits the structure

Create a local variable that inherits the structure of the i_car table (using %ROWTYPE attribute). Place each row returned into this variable.

  Display the contents of the array in order

First, load the scores in your array. Second, display the contents of the array in order. Third, display array in reverse order. Fourth, calculate the average of the five scores entered in the array.

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