Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Tags
Member Avatar for chuyauchi

I have three tables: collections [clientID][isbn] books [title][isbn][author] clients [cliendID][firstName][lastName] I am making a seach functon on php. The function will search the clientID and display the name (from the clients table) and what book that client has (fro collections table). What should I do for the query? $query = …

Member Avatar for LastMitch
0
84
Member Avatar for chuyauchi

I'm making an Android maze game. Currently, I'm using the UP/DOWN/LEFT/RIGHT button from the emulator. I would like to add the motion sensor to move the ball. How do I use the motion sensors? Is there any open source to control the ball? http://images.plurk.com/4OmXYw7VZ76FYg2eufH4Bz.jpg package com.chrischu.inclassassignment_3; //import com.chrischu.mazegame.R; import android.annotation.SuppressLint; …

Member Avatar for peter_budo
0
154
Member Avatar for chuyauchi

My Android preference (menu) is not opening a new activity. When I click the 'menu' button on the emulator, I can see my 'Setting' option. However, when I click the 'Setting', the setting page is not showing. There is no error and warning. Thank you for your time. I am …

0
62
Member Avatar for chuyauchi

I have a text file contains a list of student and their grades. The format is: ` firstName + "\t" + lastName + "\t" + gpa;` Let's say if I want to make a selection to change 5th student's GPA, how can I code it? Console.Write("Please select a student: "); …

Member Avatar for Mitja Bonca
0
146
Member Avatar for chuyauchi

What is the best way to change the following program into functions? Can someone show me as a good programming style? [CODE] #include <iostream> #include <string> #include <ctime> using namespace std; // Variables char R, playing, again; int roll, roll1, roll2, roll3, round, money, wager, win, loss, initial; string name; …

Member Avatar for WaltP
0
117
Member Avatar for chuyauchi

I have problem on my program. Can anyone help me to fix it and explain to me a little bit? [CODE] #include <iostream> #include <iomanip> using namespace std; void displayResult(); void welcomeMessage(); void game(); int main() { welcomeMessage(); displayResult(); displayResult(frequency, expected, intRepeats); } // end main void welcomemessage { cout …

Member Avatar for Ab000dy_85
0
119
Member Avatar for chuyauchi

I'm having an error on my displayResult function. In the line: [CODE]cout << setw(17) << static_cast<int>(exptRoll[value-1] * intRepeats);[/CODE] I have a C2109 error (subscript requires array or pointer type. Does anyone how to solve this problem? [CODE] void displayResult(const int arraySize, double frequency[], double expected[], int intRepeats, double exptRoll) { …

Member Avatar for histrungalot
0
76
Member Avatar for chuyauchi

I have difficulty to declare the following type of array. 1/36, (one divided 36) 2/36, (two dvided 36) 3/36, 4/36, 5/36, 6/36, 5/36, 4/36, 3/36, 2/36, 1/36 [CODE]double exptRoll [arraySize] = { 1/36, 2/36, 3/36, 4/36, 5/36, 6/36, 5/36, 4/36, 3/36, 2/36, 1/36}; [/CODE] This doesn't work. Can someone tell …

Member Avatar for MandrewP
0
96
Member Avatar for chuyauchi

How can I set the [U]Actual rolls[/U] and [U]Expected rolls[/U] to no decimal, and [U]Actual percentage[/U] and [U]Expected percentage[/U] to 1 decimal plus a % symbol ? [url]http://images.plurk.com/a2f077138ef908ce71f46b08909c998d.jpg[/url] [CODE] cout << "Point" << setw(17) << "Number of Rolls" << setw(17) << "Actual Percent" << setw(17) << "Expected Rolls" << setw(17) …

Member Avatar for mrnutty
0
190
Member Avatar for chuyauchi

I'm making a dice program that calculates the statistics such as actual percentage, expected rolls and expected percentage and so on. I'm having a difficulty on the Pseudo random number generation. With two dice, the mim. sum of the dice is 2, not 1. There is something wrong with my …

Member Avatar for DeanMSands3
0
147
Member Avatar for chuyauchi

I have a difficulty for saving a file in C++. I have an existing file which is opened by my program. The program should save the changes to the existing file (Example: D:\A4.txt) when I select 4 (as known as the menu). However, the program does not save the changes. …

Member Avatar for thines01
0
204
Member Avatar for chuyauchi

This program is to enter the scores, get the grades, and display the result. However, I get a [U][B]fatal error LNK1120: 1 unresolved externals[/B][/U] Does anyone know how to solve this problem? [CODE] #include <iostream> #include <iomanip> using namespace std; // Function prototype void letter(double score, double resultNum, char grade); …

Member Avatar for chuyauchi
0
873
Member Avatar for chuyauchi

I have difficulty to change the following program by using the array. The display need to be like the following: [INDENT]Result 1: 50.00 Grade U Result 2: 95.60 Grade A Result 3: 72.00 Grade B[/INDENT] Can anyone tell me how to do it? Thanks. [CODE] #include <iostream> #include <iomanip> using …

Member Avatar for chuyauchi
0
122