Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Assignment

Language is C++. any help is appreciated, thank you!

Write a program called CountElements that does the following:

· Declare a char array called sentence of 40 elements and assign the following: (I have noted the spacing)

How(sp)is(sp)Course(sp)1,(sp)C++,(sp)going(sp)4(sp)u?

· Declare counters that will count the number of elements that are:

alphabetic, digits, upper case, lower case, punctuation and spaces

(ex: numalph=0, numdig=0, etc)

· Loop through each character in the array and increase the proper counter.

Write the lines to determine each of the outputs.

Output: alphabet letters:

digits:

etc.

(ex: while (sentence [count] != ‘\0'))

Run the program. Print the code and a screenshot.

Sample Output:

alphabet letters: 18

digits: 2

upper case: 3

lower case: 15

spaces: 7

punctuation: 5

Press any key to continue . . .

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92822471

Have any Question?


Related Questions in Computer Engineering

Discuss 5 of the most important sql server management

Discuss 5 of the most important SQL Server Management Studio (SSMS) features. Provide references - website link, book, article, etc.

What is 4g and its benefits how fast is your internet

What is 4G and its benefits. How fast is your Internet service supposed to be for stationary users?

A manager has a 250 million portfolio that consists of 40

A manager has a $250 million portfolio that consists of 40% stock and 60% bonds. The beta of the stock position is 1.4. The modified duration of the bond position is 5. The manager wishes to achieve an effective mix of 7 ...

With regards to data mining business analytics why is it

With regards to data mining/ business analytics, Why is it not ideal to evaluate a classifier's performance on the training data set?

As the school year begins what trends are taking place with

As the school year begins, what trends are taking place with Educational Technology in schools?

Closure and evaluationresearching for the closure checklist

Closure and EvaluationResearching for the closure checklist and project evaluation a. To prepare for this task, you will be required to provide an annotated bibliography. Write an Annotated Bibliography for three (3) rel ...

Question create an android app to show others a collection

Question: Create an Android app to show others a collection of five to eight items that you intend to sell through your app. Choose any items you desire. Include the following features and functions in your app: • An ope ...

Could you help me to solve the following stats problemthe

Could you help me to solve the following stats problem? The number of patients waiting for flu vaccine at A hospital has the following probability distributions. x 1 2 3 4 p(x) 0.2 0.3 0.4 0.1 What is the variance of num ...

One of the authors received a credit card bill for 2988 but

One of the authors received a credit card bill for 2,988, but it included a charge of 1,834 that was not valid. Find the values of the absolute and relative errors the absolute value is 1,834 what is the relative errors?

Understanding the digital revolution assignment - parchment

Understanding the Digital Revolution Assignment - Parchment Purgatory Overview - For this assignment, you will use skills acquired through practical laboratory exercises to automate a business process, and to visualize t ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As