Write a program to display the count on the screen

Assignment Help Programming Languages
Reference no: EM132211442

Problem: Counting Characters

Write a program that reads a text from the keyboard until the user presses the "Enter" key. Your program must count the number of uppercase alphabets (A through Z), lowercase alphabets (a through z), digits (0 through 9) and any other characters. The other character count value should NOT include the "Enter" key. Display the count on the screen. You must use the in-built C++ character I/O functions in this program.

Reference no: EM132211442

Questions Cloud

Create an array that will store input data for daily sales : Write a program using an array that will process sales data for a week. Create an array that will store input data for the daily sales for a week (7 days).
Write a program using an array of records : Write a program that will read the radii of circles. Use an array of records where each record will have the radius of the circle read from the keyboard.
Write a program that reads from the external file : Write a program that reads from the external file input.txt, counts the letters in every word, replaces the word by that number, and then writes the numbers.
Write a program for displaying the deque contents : Write a program that reads in a sequence of characters and stores each character in a deque. Display the deque contents. Then use a second deque to store.
Write a program to display the count on the screen : Write a program that reads a text from the keyboard until the user presses the "Enter" key. Your program must count the number of uppercase alphabets.
Write a program that prints the number of vowels : Write a program that reads a word and prints the number of vowels and consonants in the word. For this exercise assume that 'a', 'e', 'i', 'o', 'u', and 'y'.
Write program that reads a text file and print out any words : Write a program that reads a text file and prints out any words that begin with a user-given string. The filename should be given at the command line.
Write a program that reads in the radius of a circle : Write a program that reads in the radius of a circle and displays the circle's diameter circumference and area. Use the constant value 3.14159 for pi.
Write a program to transmit serially the message : Write a program to transmit serially the message "SWITCH ON" or "SWITCH OFF" depending on the status of the simple switch connected to pin P1.2.

Reviews

Write a Review

Programming Languages Questions & Answers

  Why is lisp dominating the artificial intelligence

What is the difference between functional and imperative programming language?

  Find the proper syntax for plotting the graph

Find the proper syntax for plotting the graph of |x|+|y|=1 ranging from -1 to 1 - Hint: you do not need to create x and y.

  Develop a console application that grades a multiple choice

In this assignment, you will redo Assignment 1 using functions and also extend its functionality. Like Assignment 1, you will develop a Console Application that grades a multiple choice test with 10 questions taken by 8 students.

  Write the code for adding a task

write the code for adding a task to this array when the user enters a task in the first text box and clicks the Add Task button. This code should also blank out the text box. At this point, don't worry about displaying the tasks in the text area f..

  Program accept word from user and pass it to function

Your program should accept the word from user and pass it to function. Function requires to check if word is "freezing". If it is, program must alert user.

  Write program to read ten numbers-display distinct numbers

Write a program that reads in ten numbers and displays distinct numbers (i.e., if a number appears multiple times, it is displayed only once).

  Which of the above is an example of functional cohesion

Which of the above is an example of procedural cohesion?

  Determines which patients have a high systolic pressure

Application determines which patients have a high systolic pressure and provides a process to contact them for follow up consultation.

  Function to retrieve each of the private data members

Write a class called "Date" with month, day and year as private members. Have constructor that sets default date to 1st January 2000. Have accessor function which retrieves each of the private data members.

  Void function to display in nicely formated way

Write a void function display_exer() that display in a nicely formated way the eat members of an exerclass object. Pass the object to the function by reference.

  Write program that uses a file of keywords to index document

Write a program that uses a file of keywords to index a document. It begins by reading the keyword file and inserting the words into an AVL tree.

  Provide a measure of accuracy of your prediction

Explain how you computed your prediction from the estimates and be sure to provide a measure of accuracy of your prediction.

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