I want 2 functions written in C++:
1) Given a number of dice, and the number of sides on those dice calculate the odds of rolling a given number. For example, rolling 2 6-sided dice there is a 2.78% chance of getting a sum of 2, but a 16.67% chance of getting a 7.
2) Given a number of dice, and the number of sides on those dice calculate the odds of rolling a given number or greater. For example, there is a 3/16 chance of rolling a 7 or greater on 2 4-sided dice.
These numbers should be completely accurate, not calculated using approximations. Brute force solutions are also not acceptable.
Source code should be clean, easy to read, and well commented.
A simple command-line program should also be written to test the functions.
Some math references:
[url removed, login to view] (method 3)
[url removed, login to view]
[url removed, login to view]
Sir i have an A in probability and A in programming. and that is a really simple work you need. i can provide you the work in less than an hour time. Just trust me and give me the work with a guarantee that it will be Plus
11 freelance font une offre moyenne de $28 pour ce travail
Hi there! I'm a Professional Software developer and Data Analyst for a well known Software House in Islamabad named PacSquare Pvt Ltd. If I get this job, I assure you that you'll get my best services in return. Plea Plus
Hi C++ Expert here . i have completely understand your project and can do it .............send me a message so that i can start work on it
Dear Hiring Manager, I have 3 year experience in Developing Software and web application.I have been teaching c, cpp, java and data structure at university [url removed, login to view] can check my feedback and my rehire rate. Durin Plus
I have over 5 years of experience in C/C++, the program is really easy to do and I will deliver the result in few hours
hi! I'm a student of mechatronics engineering. I have already used c and c++ in 3-4 project for my university. Your info are enough to start right now, let me know. Hope to hear you soon! Paolo
Hey, how are you? i just read all your requirements, i'll be able to produce both the functions, along with clean code with proper comments. Secondly about myself, I love designing and have a passion for it, i ha Plus
I am currently enrolled in a BBIT undergraduate course and I know i can do this without letting you down, please give me a chance. Good day.
I will do this in less than a day for 20$. First i will send you a prototype so you can verify the accuracy of program.
Hi, I'm Davide. It seems a simple work. I'm offering you a very low price because I'm new on this site. I hope to work for you soon, Davide
Dice problem is very interested for me. I'm a clean, nice and tidy coder. It's simple task for me. Regards.
I have experience programming with C++ and I've even finished some mathematics solving applications in C++ here on freelancer I can deliver original and well formed. commented code, as well as test cases to show tha Plus