nursingstudyhelp.com logo

Our Services

Get 15% Discount on your First Order

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

PLEASE REVIEW THE INFORMATION BELOW . ROUGH DRAFT

PLEASE REVIEW THE INFORMATION BELOW . ROUGH DRAFT SUBMIT TOUR ROUGH DRAFT Your ROUGH DRAFT should include a minimum of a cover page, an introduction of your topic and argument, and a working bibliography with Chicago citations including either footnotes or endnotes. The ROUGH DRAFT must be at least 400

  Principles of Research and Evidence-Based Practice Discuss the principles of

  Principles of Research and Evidence-Based Practice Discuss the principles of research and evidence-based practice and how to effectively implement them for advanced practice nurses.   Submission Instructions: · Your initial post should be at least 500 words, formatted and cited in current APA style with support from at least 2

**Hướng dẫn cách đăng ký thủ tục làm tem chống giả uy tín nhất** Tem chống giả là một phương tiện hiệu quả để bảo vệ sản phẩm của bạn khỏi việc bị làm

**Hướng dẫn cách đăng ký thủ tục làm tem chống giả uy tín nhất** Tem chống giả là một phương tiện hiệu quả để bảo vệ sản phẩm của bạn khỏi việc bị làm giả hoặc nhái thương hiệu. Trong bối cảnh thị trường hiện nay, việc sử dụng tem

Marketing Strategy Online stores use

Marketing Strategy Online stores use <a href=” codes</a> as a powerful marketing tool. They attract new customers and encourage repeat business by offering discounts. These codes can help clear out old inventory and introduce new products. Customer Loyalty Coupon codes are a way to build customer loyalty. Shoppers are more

Check in attach UU – MBA – 714 Summative Assessment Point 1

Check in attach UU – MBA – 714 Summative Assessment Point 1 1 | P a g e Summative Assessment Point 1 Brief, Guidelines and Marking Criteria For this assignment, you are required to produce a report on one international organization of your choice and address the following: 1. Provide