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

CST8219 – C++ Programming

Lab 8


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


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


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

Kemahiran: Pengaturcaraan C++

Lihat lagi: 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

Tentang Majikan:
( 0 ulasan ) Ottawa, Canada

ID Projek: #28318389

Dianugerahkan kepada:


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

$100 CAD dalam 5 hari
(0 Ulasan)

10 pekerja bebas membida secara purata $186 untuk pekerjaan ini


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 Lagi

$250 CAD dalam 7 hari
(361 Ulasan)

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 Lagi

$250 CAD dalam 7 hari
(24 Ulasan)

***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 Lagi

$140 CAD dalam 7 hari
(6 Ulasan)

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 Lagi

$200 CAD dalam 3 hari
(16 Ulasan)

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 Lagi

$140 CAD dalam 7 hari
(4 Ulasan)

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 Lagi

$140 CAD dalam 7 hari
(2 Ulasan)

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 Lagi

$140 CAD dalam 2 hari
(1 Ulasan)

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 dalam 10 hari
(1 Ulasan)

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, Lagi

$250 CAD dalam 4 hari
(1 Ulasan)