Tamamlanmış

Build me a game in c++ by using nana library

CST8219 – C++ Programming

Lab 8

Introduction:

The goal of this lab is to creating a Java GUI, and calling a C++ function using the GUI.

Reference:

Week 8 Powerpoint materials on Brightspace. There are many reference websites at the end of the powerpoint slides.

Steps:

1. Create a new directory called Week8 for this lab. Create a Java GUI that has a text field saying: “Enter the number of samples to generate:”. You should then also have an edit text that lets users type in an integer, followed by a button that says “Go!”

2. When the user clicks on the Go button, read the number that the user has typed, and create an array of int[] in Java, and initialize it with random numbers. Use [login to view URL] as your random number generator. It has a nextInt() function that you should call repeatedly in a for loop. Once the array is generated, you will pass the array to two C++ functions to calculate the mean, and standard deviation of the array. The function signatures in Java should be:

public native double calculateSTDDev( int [] numbers );

public native double calculateMean(int [] numbers );

3. You should then have two text fields that show the results of what the functions returned:

4. If you use Java 1.8, use the javac command to compile your Java class file, and then use the javah command to generate the .h header file. If you use Java 1.9 or newer, use javac -h to generate the header file. You must then create the .cpp file that implements the function declarations that are created.

5. Then create a [login to view URL] file that will compile a library instead of an executable. Normally, you would write a line: add_executable(MyProjectName file1.h [login to view URL] file2.h [login to view URL] …etc). This time, change that line to add_library(Week8 headerFile.h [login to view URL]) , but change the filename from headerFile to whatever file the javah program generates.

Submission: Create a zip file containing everything in your week8 directory and submit it on Brightspace. Make sure it includes your Java gui class, the .cpp and .h, and your [login to view URL] file

Marks: (total of 10)

The Java Gui has a text input field for the number of samples, and a button to start the computation +1

Your Java class has 2 public native functions declared +2

Your C++ header file has 2 functions generated by javah +1

Your C++ implementation (.cpp) file computes the mean and stddev +2

The results are correctly displayed on the gui +2

Your [login to view URL] file builds a library instead of an excutable file +1

Your Java class loads the correct library generated by your CMakeLists +1

Beceriler: C++ Programlama

Daha fazlasını gör: want build game server, build sample website using dotnetnuke, build joomla template using photoshop, build dealer locator using coldfusion, system requirements build inventory system using php mysql, build a website using c#, build a website using c, game creator using build box, game developing using objective c, text based game development using c++, if 1 3 1 69 then 5 1 9, tic tac toe game in c++ using graphics, tic tac toe game in c++ using array, tic tac toe game in c++ using 2d array, game ideas using c, egg game in c using graphics, library management system in c++ using inheritance, snake game in c++ using classes, tic tac toe game in c using 2d array

İşveren Hakkında:
( 0 değerlendirme ) Ottawa, Canada

Proje NO: #28318389

Seçilen:

nikakogho

I have 4 years of experience with C++, 3 years of experience with C++ algorithms from HackerRank and codeforces and 1 year of experience with Java. Your task seems fairly straightforward, I'll start working right away

%selectedBids___i_period_sub_7% gün içinde 100%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)
0.0

Bu iş için 10 freelancer ortalamada $186 teklif veriyor

urmate

Hi there Contact me will all your project details to discuss it further. I am a senior programmer with practical development experience in various programming languages. I can provide a quality solution for your proje Daha Fazla

$250 CAD in 7 gün içinde
(361 Değerlendirme)
7.0
RushService

Feel fee to contact me for game in c++ by using nana library .Shoot me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment Daha Fazla

$250 CAD in 7 gün içinde
(24 Değerlendirme)
5.1
todo2095

***I AM A SOLO DEVELOPER AND PROGRAMMER, SO I WILL PROVIDE FAST ASSISTANCE AND REPLY ON YOUR MESSAGES*** Hi there, This is Kerols Eskandr, I have 4 years experience in: • api, .net , c# , c++ , java. • JavaScript , H Daha Fazla

$140 CAD in 7 gün içinde
(6 Değerlendirme)
3.7
CodingHelpLine

Hello I am highly experienced in Java/Python/VB.NET/C/C++/C#/PHP and related Technologies, OOP, Data Structures, functional and procedural programming, Database Driven applications, APIs, Files and Data Transformation Daha Fazla

$200 CAD in 3 gün içinde
(16 Değerlendirme)
2.9
braincenter

Hello, Hope this message finds you well, I checked your details and I believe that my experience is what you are looking 4. I have been working on similar projects for the past eight years, and I have the essential sk Daha Fazla

$140 CAD in 7 gün içinde
(4 Değerlendirme)
2.4
mappleweb

Hi!, I'm an expert Developer and Designer of having 6+ years of experience in development and Designing. I am readily available to work with you in your project Code my image design into Wordpress as per your needs. Le Daha Fazla

$140 CAD in 7 gün içinde
(2 Değerlendirme)
1.8
baltickriscoder

Dear Client, Nice to meet you. I have read your description and I am so interested in your project. I am well experienced and skillful C/C++ and C# and VB, Java and Python programmer. And have 8+ years of experience in Daha Fazla

$140 CAD in 2 gün içinde
(1 Yorum)
1.9
omer19

Hello. How are you today? I have read your project description clearly. I have developed projects of C++ Programming and have 8 years experience. I want to work with you for a long time. Thank you very much.

$250 CAD in 10 gün içinde
(1 Yorum)
2.0
Bingfeng234

Hi, there.I CAN START JUST NOW. I am a creative and professional Java and Android developer having more than 5+ years of professional experience as a senior developer in this field. My main areas of expertise are Java, Daha Fazla

$250 CAD in 4 gün içinde
(1 Yorum)
1.1