This assignment requires the use of random numbers. You must include the <cstdlib> and <ctime> header files to allow access to rand() and srand(), respectively. These will be discussed in class. The program will implement a “guessing game.?? Ask the user for a number in the range of 1 through 100, inclusive. If the guess is larger than the random number you generated in the range of 1 through 100, inform the user that the guess was too high. If the guess is too low, say so, and when the guess matches the random number, say so! Also, tell the user how many guesses were required. What should you do if the user inputs an invalid guess? Suppose the user enters 0 or 200? You should allow only valid guesses. Therefore, keep asking for guesses until the user enters a number between 1 and 100, inclusive. Run the program 3 times and print the results (note: be sure to use some invalid guesses to test that part of your logic). Remember to print an error message (with the number) when an invalid guess is made. Code a function named, guess(), that will return a number in the range 1 to 100, inclusive. As discussed in class, the function, rand(), will return a random number in the range 0 to MAX, where MAX is a predefined constant (maybe 32767, or ??). Obviously, you must modify the random number to be in the range from 1 to 100, inclusive. Also, random numbers are generated using “seed?? values. Unless you change the seed each time the program is executed, the program will generate the same sequence of random numbers. This makes the game trivial once the user realizes that the random numbers are always the same! To avoid this problem, use srand() to “seed?? the random number generator. You use srand() only once in your program (not in a loop!) to change the seed value. This will cause the program to generate a different sequence of random numbers each time the program is executed! The exact function invocation is:
srand(time(NULL)); //use the system clock to generate a seed
Code the program to allow the user to play the game multiple times and display the average number of guesses at the end of the game. Suppose the user played the game 5 times and the number of guesses for each game was: 7, 4, 5, 5, and 8. The average number of guesses would be: 5.80. Also, allow the user to enter either an uppercase Y or a lowercase y to continue with another game!
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
Must be written in Microsoft Visual c++
This project was awarded to
Even though work proved to be a larger project then anticipated, the worker agreed to take on the extra work. She did a great job and addressed all my concearns and needs. Even though we went a bit over schedule, I would highly recomend this worker. Thanks for the good work.
Looking to make some money?
- Set your budget and the time frame
- Outline your proposal
- Get paid for your work
Bids on this Project
## BIO We are a group of 3 programmers with more than 12 years of experience in the field of programming. We have built many systems for different corporations including database projects/ network programs... etc... We love perfection, and customer satisfaction is our main and only concern. ## Area of Expertise We have used C/C++ under all platforms (Windows/Dos/Unix/Linux/ and even for mobile phones under Symbian). We are also experts of the Assembly language, Java (we have used many different Java technologies, including J2ME for mobile phones), and visual Basic.
## BIO Name : Moisa Bogdan Country : Romania Age : 24 Studies : Automatics and Computers Science student ## Area of Expertise Linux C/C++ Java Asm
Areas Of Expertise: C, C++, MFC, API, Java, Java beans, applets, AWT, Swings, sockets, JDBC, JSP, Mozart Oz, prolog, clips, C under Linux, X window programming, Fortran, Pascal, SQL, PL SQL, HTML, Java script, ODBC, ADO, Visual Basic, 286 assembly, ActiveX, DirectX (direct Draw)), Oracle 8i, Linux, Matlab Resume: EDUCATION Bachelor of Science in Computer Science, Faculty of Computers and information Cairo University, graduated June 2001 Major : Computer Science Masters Thesis : Evolving Fuzzy Cellular Automata (Registered October 2002, Expected Finishing June 2004) Premasters Average Grade Thesis : Excellent : A Survey on Java Virtual Machine Implementation (Grade Excellent) Premasters coursework : Declarative programming, Complexity theory, Theory of computation, Genetic Algorithm and neural Networks, Security, Parallel Processing Graduation Average Grade Thesis : Excellent with honors (ranked 3rd) : Design and implementation of Cryptographic Algorithms (Grade Excellent 200/200) Undergraduate Coursework : Programming Language C, C++, Data Structure, File Structure, Operating System 1 & 2, Networks 1 & 2 & 3, Operations Research, Graphics 1 & 2, Image Processing, Software Engineering 1 & 2, Database 1 & 2, Math 1 & 2 & 3 , Statistics 1 & 2, Discrete Math, Physics, Digital logic design, Artificial intelligence, Computer Architecture, Natural Language Processing, Knowledge Base System, Security, Parallel Computing, Arabization, Concepts of programming languages, Assembly, Multimedia, Compilers, mathematical Logic . International General Certificate of Secondary Education (IGCSE), Misr Language School, Egypt, June 1997 (96.25 %) WORK EXPERIENCE Trainee, Giza Systems, August 2000 Received a training course in Oracle Data Base Administration Expanded my knowledge in PL SQL, SQL(DDL and DML) Consultant at Khalifa Computer Group Development of ActiveX components for multimedia applications using visual C++ Maintenance of the arabization system of its international software Design and Development of As-Siraj Al-Muneer program for recitation and interpretation of the Holy Quraan in Arabic, English, French, Dutch, and Indonesian. Design and Development of Tafseer Al Atfaal program for recitation and interpretation of the Holy Quraan in Arabic for Kids. Design and Development of Kamoos Tafseer Al Atfaal program. (Dictionary for Quraan words). Development of Noran Learns English 2 Website for Teaching English for Kids. Consultant at Binary Works Maintenance of the Show me E-Learning Solution. Assistant at the faculty of computers and information Cairo University Teaching digital design, arabization, expert systems, operating systems, graphics, compilers, assembly, artificial inelegance, data structures, discrete mathematics, and computers architecture. Judge and Contest Administrator in the Association of Computer Machinery (ACM Egypt National Programming contest held in the Faculty of computers and information Cairo University. October 2003 EXTRA CURRICULAR ACTIVITIES Member in the Cairo University Team; which participated in the Association of Computer Machinery (ACM ) North Africa, Arab and Middle East Regional Programming contest held in the American University in Cairo . November 2001 Our team of 3 accomplished the First place in the competition Member in the Cairo University Team; which participated in the Association of Computer Machinery (ACM World finals Programming contest held in the Hilton Hawaiian village. March 2002 Our team of 3 took an honorable mention Member in the Cairo University Team; which participated in the Association of Computer Machinery (ACM) Egyptian National Programming contest held in the AUC. October 2000 Our team of 3 accomplished the third place in the competition Member in the Cairo University Team; which participated in the Association of Computer Machinery (ACM ) North Africa, Arab and Middle East Regional Programming contest held in the Al Akhawayn University in Ifran Morocco . November 2000 Our team of 3 accomplished the fourth place in the competition Member in the Cairo University Team; which participated in the Association of Computer Machinery (ACM ) North Africa, Arab and Middle East Regional Programming contest held in the American University in Cairo . November 2002. Our team of 3 accomplished the fourth place in the competition PROJECTS Image Compression Package Via MFC An ActiveX component that convert bmp image files to JPEG Using Visual C++ Rendering 3D objects modeled in polygons and ray tracing via Windows API using Visual C++ Compiler. Database for a video library using Access. Designing an ISA card for controlling circuits. Design of Arabic text editor under Linux using C Chat Server program and Clients using java. Chat Server program and Clients using Mozart OZ. Manipulating objects using Open GL Operations research package (Linear Programming, Duality, Transportation and inventory control) Via C++ Linear programming applet and application via Java ACADEMIC WORK Library for string manipulation via C++ language Software simulation for multilevel queue CPU scheduling via C++ Programs for manipulating a file of student records via C++ Development of Software Engineering lifecycle of student record system English Natural language interface to database via prolog Arabic parser via prolog. HOBBIES Programming, reading programming books Solving mind games, surfing the net. Teaching advanced computer topics
## BIO Some of those projects have been made for certain clients, as a request) ## Area of Expertise Tools:Borland Delphi, Quick Reports, BDE, OOP, SQLTools:Borland Delphi, Quick Reports, BDE, OOP, SQL, C, C++, Visual C, Java
## BIO For most of my conscious life I have been writing code for enjoyment at first and then later on for making a living as well. Although I spent most of my career working for big and small companies that owned me, there's still a considerable fraction of time when I was me own boss - and I regard that as the best time of my professional life, even though it never put me on Forbes Magazine lists:) I had the luck of having worked in companies that put considerable effort in advanced research and cutting-edge techs as well as in personnel qualification, so as a result I have varying degrees of expertise in many areas of contemporary IT and Computer science and some knowledge in virtually almost all of them (plus several certificates to hang on the wall and show off to my grandchildren at some point in the future). *Newsflash*: Java and mobile phones finally bored me nearly to death, so I just quit my job at one of the world's top 3 mobile and console games vendors and I'm back on track freelancing. ## Area of Expertise **Past work and high experience in the following areas**: Database Design, Database Development, Database Optimization Embedded Devices, Embedded Controllers, ulibc, WinCE Multithreading, Distributed Programming Driver Development, Linux Kernel Modules, VxD, DDK Digital Signal Processing, Pattern Recognition Win32 API, MAPI, TAPI, MFC, .NET Framework GUI Implementation, GNOME, KDE, QT, SDL, Allegro, Tk, GTK+ TCP/IP Networking, Serial Communication, Client-Server, Protocol Implementation Software Protection, Application Security, Data Encryption AI, Neural Networks, Expert Systems Interpreters, Custom Language Translators Text Processing Techniques, Regular Expressions General Optimizations, Compression Algorithms, Low-Level Programming ***Programming Languages***: * C/C++ * Perl * C# * PHP * SQL * Intel x86 Assembly * Unix shell scripting (bash, csh) * LISP ***OS expertise***: * GNU/Linux * Unix * Windows (NT, 95, 98, 2000, XP, 2003, CE, XP Embedded)