Welcome to Premium Paper Help

please review the information below  Submit the .cpp source code file(s) and lotto.txt on Ecampus. At the top of each .cpp program, put your Name

please review the information below 

Submit the .cpp source code file(s) and lotto.txt on Ecampus.

At the top of each .cpp program, put your Name and class as a comment

1. Create a text file named lotto.txt that contains all numbers chosen for Lotto Texas since the contest began in 1992.  Write a program named lotto.cpp that reads these numbers and prints the total numbers, their sum, and their average. In addition, calculate the frequency of each number.  Submit the lotto.txt file containing the numbers.

Program 1 Example Output

Statistics for Lotto Texas (1992 – present)
Total numbers: _____
Sum of these numbers: _____
Average of these numbers: _____

Frequency of Numbers:
#   Frequency
1 = ___
2 = ___
3 = ___
4 = ___

53 = ___
54 = ___         

2. Write a program called qp.cpp that prints a random quick pick for a lottery.  The quick pick should have six random numbers in the range (1 – 50).  The random numbers should not contain duplicates.  Your program should also print a random statement (from a list of at least 5).

Program 2 Example Output

Here is your Lotto Texas quick pick: 42 3 33 21 49 16
Gambling is a tax on people poor at math!

3. Write a program called palindrome.cpp that allows the user to enter a phrase.  It then prints the phrase in reverse, and lets the user know if it is a palindrome or not.

Program 3 Example Output

This program is used to detect a palindrome.
Please enter a word: Hello
Your word in reverse: olleH
This word is not a palindrome.

Make your program work with palindrome sentences.  For example:
A man, a plan, a canal: Panama.

Share This Post

Email
WhatsApp
Facebook
Twitter
LinkedIn
Pinterest
Reddit

Order a Similar Paper and get 15% Discount on your First Order

Related Questions

Just Dew It Corporation reports the following balance sheet information for 2020 and 2021. JUST DEW IT CORPORATION2020 and 2021 Balance

Just Dew It Corporation reports the following balance sheet information for 2020 and 2021. JUST DEW IT CORPORATION2020 and 2021 Balance SheetsAssets20202021Liabilities and Owners’ Equity20202021Current assets  Current liabilities  Cash$ 11,250$ 19,440Accounts payable$ 30,600$ 49,200Accounts receivable11,85016,080Notes payable24,90031,200Inventory39,15060,240     Total$ 62,250$ 95,760Total$ 55,500$ 80,400     Long-term debt$ 27,000$ 24,000       Owners’ equity     Common stock and paid-in surplus$ 48,000$ 48,000   Retained earnings169,500327,600    Net plant

Review this week’s Learning Resources to deepen your understanding of the roles and responsibilities of forensic psychology professionals in police and

Review this week’s Learning Resources to deepen your understanding of the roles and responsibilities of forensic psychology professionals in police and investigative psychology settings. Select one subspecialty area from either “police psychology” or “investigative psychology” andthen choose one Learning Resource concerning that subspeciality form this week’s Learning Resources on which to

You are noticing that one of your parents/grandparents is getting older. He/she is starting to have challenges with memory, and you notice an increased

You are noticing that one of your parents/grandparents is getting older. He/she is starting to have challenges with memory, and you notice an increased need for additional support for his/her chronic health conditions.  Using the information in the textbook (Chapter 7), consider your and your parent’s/grandparent’s personal financial resources, interests,

kindly find attached the document.  Rasmussen University – NUR2063: Essentials of Pathophysiology Title of

kindly find attached the document.  Rasmussen University – NUR2063: Essentials of Pathophysiology Title of Assignment: Module 01 Written Assignment – Electrolyte Imbalance Purpose of Assignment: Identifying abnormal findings for electrolyte imbalances is an expected function of a healthcare team. Course Competency(s): · Determine the cellular functions required to regulate homeostasis.