Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
1
Downvoting Members
2
0 Endorsements
~10.3K People Reached
Favorite Tags
Member Avatar for XerX

Hello. I am trying to recreate manually a small celsius-to-fahrenheit converter that I created with Design view before that. I used its code for reference, but still doesn't work. When I run my code I don't get the components drawn on the screen, only an empty window. What am I …

Member Avatar for XerX
0
981
Member Avatar for XerX

Hi, I am having a problem overriding methods in a subclass when they contain private methods from the master class. The is the master: package blabla; public class Person { private String firstName; private String secondName; private String familyName; public Person() { firstName = ""; secondName = ""; familyName = …

Member Avatar for JamesCherrill
0
234
Member Avatar for XerX

Hello! Can someone please give me some advice where to begin this program from and how. Thanks in advance. [quote]Given set of points in the plane, you have to write a program in C++ that computes the following values: 1. The minimum distance between two points. 2. The maximum distance …

Member Avatar for Bob
0
634
Member Avatar for XerX

Hello. I want to make a File->Open menu functionality to this program. In JMenuBar I think I create everything correctly but it doesn't display when I run it. How do I display it and make the Open functionality work? package oimg; import java.io.*; import java.net.*; import java.awt.*; import java.awt.event.*; import …

Member Avatar for NormR1
0
602
Member Avatar for XerX

Hello. I have trouble with detecting a letter in a text box where there should be only digits and vice-versa. This is my program: [CODE]<html> <head> <script type="text/javascript"> test1=/[0-9]/i; test2=/[A-z]/i; function check() { var i=false; if (!test2.test(document.getElementById("name").value)) { alert("wrong name"); i=true; } if (document.getElementById("card").value.length > 16) { alert("too long card …

0
70
Member Avatar for XerX

Hello. This is my program: [CODE]<html> <head> <script type="text/javascript"> function check() { if (document.getElementById("age").value!=1) { alert("error") } } </script> </head> <body> <form> Age: <input type="text" id="age" size="30"><br /> Name: <input type="text" id="name" size="30"><br /> <input type="button" value="Check" onclick=check()> </form> </body> </html>[/CODE] and my question is how to make it display …

Member Avatar for XerX
0
139
Member Avatar for XerX

[CODE]#include <cstdlib> #include <iostream> #include "ccc_time.h" using namespace std; int main(int argc, char *argv[]) { double r[10]; Time now; int seed=now.seconds_from(Time(0,0,0)); srand(seed); for (int i=1; i<=10; i++) { r[i]=(rand()%10+1); cout << r[i] << endl; } system("PAUSE"); return EXIT_SUCCESS; } [/CODE] This generates numbers between 1 and 10. What do I …

Member Avatar for MosaicFuneral
0
3K
Member Avatar for XerX

In a statistics book there is an algorithm of generating pseudo-random numbers with uniform distribution [0,1]. It says: I. Enter an initial variable X positive integer. II. Multiply X by variable "a", which should be at least 5 digits long. III. Divide a*X by value p (positive integer). IV. Take …

Member Avatar for mrnutty
0
4K
Member Avatar for XerX

Hello. This is my program: [code]#include <iostream> #include <cstdlib> #include <fstream> using namespace std; int main() { ifstream a; ifstream b; ofstream c; a.open("a.txt"); b.open("b.txt"); c.open("c.txt"); int x; a >> x; b >> x; c << x; a.close(); b.close(); c.close(); system("pause"); return EXIT_SUCCESS; } [/code] In file "a" I have …

Member Avatar for XerX
0
174
Member Avatar for XerX

Hello. Please if somebody has the time and willingness to do this program in C++ I would be very happy and grateful. [quote]Define a class Cubic that stores the coefficients of a polynomial of degree 3 in a dynamically allocated array of doubles. Supply the "big three" memory management functions. …

Member Avatar for Swiftle
-2
137
Member Avatar for XerX

Hello. I am asking for help. I have 2 input files containing sorted integers. These 2 have to be concatenated into a third file and now all the integers must be sorted. (Example: file1 contains 1 5 8, file2 - 2 3 6 and file3 must contain 1 2 3 …

Member Avatar for WaltP
0
151