Find Jobs
Hire Freelancers

Build a C++ lottery System with these simple

$10-30 USD

Berlangsung
Dibuat lebih dari 8 tahun yang lalu

$10-30 USD

Dibayar ketika dikirim
This project has the following requirements and should be easy to complete for anyone who has taken CS 135 or more advanced. ------------------------------------------------------------------------------------------------------------------ SAMPLE REFERENCE TICKET ---------------- Saturday, September 19, 2015 Draw #2970 Winning Numbers: 17 21 27 30 47 Mega Number: 24 Detailed Draw Results Matching Numbers Winning Tickets Prize Amount 5 + MEGA 0 $9,000,000 5 1 $37,685 4 + MEGA 6 $3,140 4 327 $96 3 + MEGA 523 $54 3 14,518 $9 2 + MEGA 6,373 $11 1 + MEGA 31,835 $2 MEGA 49,027 $1 Total Winning Tickets: 102,610 -------------------- PROGRAM REQUIREMENTS -------------------- The "SuperLotto Plus Ticket Simulator" program shall be named: lottoplus This means, to run the program in a persistent DOS window, the user would type lottoplus then press the enter key. The program shall use menus and interactive prompts to get information from the user. The program shall perform the steps below. PRE LOOP STEPS: 1. Get the bounds, from the user, for the number of tickets to generate for "this week's" SuperLotto Plus game 2. Use the RNG (random number generator) to determine the exact number of tickets for this week's SuperLotto Plus game 3. Set up the "reference ticket" variables (use the drawing on Saturday, September 19, 2015, Draw #2970, as the referece ticket; those numbers are listed above) LOOP OVER THE FOLLOWING STEPS: 4. Using the RNG, generate the numbers for a ticket: 5 of 1-47 plus a Mega Number 1-27 5. Determine the ticket's nature; i.e., find out how many numbers match 6. Classify the ticket (put it into the correct category) by comparing the ticket just generated to the reference ticket POST LOOP STEPS: 7. Perform a sanity check on the internal data that is maintained in the program; exit with an explanation and error if the sanity check fails 8. Perform "odds" calculations to compute the odds for the simulated week's drawing 9. Compare the program's results to the actual results; are the simulated results credible? 10. Publish the simulation's summary information to an output file; ask the user what the name of the output file shall be
ID Proyek: 8740347

Tentang proyek

1 proposal
Proyek remot
Aktif 9 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
1 freelancer menawar dengan rata-rata $20 USD untuk pekerjaan ini
Avatar Pengguna
A proposal has not yet been provided
$20 USD dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
Reno, United States
5,0
2
Memverifikasi Metode pembayaran
Anggota sejak Agu 7, 2011

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.