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

Introduction TOPIC: Sojourner Truth Find sources on internet too This is the link

Introduction TOPIC: Sojourner Truth Find sources on internet too This is the link for your writing assignment, and it will be run through a plagiarism check.  [A SafeAssign assignment is a writing assignment submitted to a plagiarism detection tool that compares submitted content to Internet content and other student submissions.  The tool

Please help with my assignment Module 3 – Case CONFLICT AND NEGOTIATION Assignment

Please help with my assignment Module 3 – Case CONFLICT AND NEGOTIATION Assignment Overview Types of Conflicts According to Deng, Zhang, and Fan (2021), channel conflicts (between manufacturers and distributors) are categorized as functional or dysfunctional.  Functional conflict refers to differences in opinions between a manufacturer and a distributor regarding

Part A Reflection on early relationships & belonging [ Translate/traducir]

Part A Reflection on early relationships & belonging [ Translate/traducir] Week 6 Discussion – Reflection on early relationships & belonging First: 1. Read & explore  6.2.1 – Read Week 6 assigned texts & resources 2. Work on your next  DCDEE WORKSLinks to an external site. certificates. Then, create your Discussion 6 post:

Overview  A Philosophy of Nursing focus on fostering a deep understanding of the philosophical foundations underpinning nursing practice. exploring how

Overview  A Philosophy of Nursing focus on fostering a deep understanding of the philosophical foundations underpinning nursing practice. exploring how philosophical perspectives can inform and enhance their understanding and practice of nursing. Objectives : Understanding Philosophical Inquiry: Explore various philosophical theories and methods relevant to nursing, such as ethics, epistemology,

Ethical Violations Homework I. Follow this link to view a clip of Milgram’s Obedience to Authority experiment: Quiet Rage: The Stanford Prison Experiment –

Ethical Violations Homework I. Follow this link to view a clip of Milgram’s Obedience to Authority experiment: Quiet Rage: The Stanford Prison Experiment – documentary (youtube.com) Reflect & Respond After viewing the videos above, use the ethical guidelines below to identify five ethical violations from EACH study (10 total). Be sure to

Leadership traits and practices will be examined in light of Scriptural insight and understanding. You will review the prompts below and assigned Scripture

Leadership traits and practices will be examined in light of Scriptural insight and understanding. You will review the prompts below and assigned Scripture readings. You will then demonstrate understanding of leadership principles and Scriptural insight along with practical application to current or future leadership roles. Both assessments will be between

Discussions List View TopicListen Settings HelpSession 3 Discussion SubscribeClick on the Session 3 Discussion link and then scroll down to start a new

Discussions List View TopicListen Settings HelpSession 3 Discussion SubscribeClick on the Session 3 Discussion link and then scroll down to start a new thread to respond to the discussion prompt. After posting your initial response, please comment on classmates' responses. Respond by making constructive responses or by raising other questions that will promote further