- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
14 Posted Topics
i have this problem about the betting system of my game. Here's the scenario: Your money: 300 Your bet: 300 JOptionPane appears: "you have insufficient money to bet" Here's the code for the main program: /* * To change this license header, choose License Headers in Project Properties. * To … | |
I'm doing a quiz game using netbeans. I've already done the randomization of questions. The problem is, how do i keep a question from repeating itself? ex: chose correct answer --> questionrandomizer comes in --> next question appears but it's the same question earlier here's my code: package kiddiequiz.scienceforms; import … | |
**I'm using netbeans btw if you notice the long code for the GUI** I'm doing a quiz game. The questions are randomized. My problem is, the randomized questions do not appear on the questionLabel (JLabel Variable). I don't know what to do. Help? /* * To change this license header, … | |
Hi Guys! I'm having trouble on briefcases having the same value. for ex: i choose briefcase 1 = 5000, briefcase 2 = 5000 how do i make the briefcases have a unique value? Note: the value of briefcases are randomized import javax.swing.*; import java.awt.*; import java.awt.event.*; public class DoND extends … ![]() | |
Hi! Newbie Java Programmer here! I've done a cash register program. this error's pretty unusual to me. i dont know how to fix this. import java.text.*; import javax.swing.*; import java.awt.*; public class CashRegisterV1 { public static void main (String[] args) { DecimalFormat fix = new DecimalFormat("0.00"); //QUANTITIES int Nido = … | |
Hi! Newbie on Java. I'm doing this assignment for a cash register program. Our professor just explained what we're gonna do and stuff. Here's what i understood: 1.)Sales report (my code appears on the first diag box) Product ID Product Name Quantity Price 2 Stuff 100 3 Stuff 100 4 … | |
It's the end of our first semester. We've done the basics of programming on Turbo C/C++. i somehow can't find some comprehensive Java guides in the interweb.. I'm having an advanced study because we're gonna focus on Java on our next semester :D | |
I'm having problems with this program. Everytime i enter a fractional decimal number, it displays -0.0000 or sometimes garbage values. Ex: Enter any fractional decimal number: 5.7 -2.888blah blah blah garbage another Ex: Enter any fractional decimal number: 25.7 -0.000000 #include<stdio.h> int main(){ long double fraDecimal,fraBinary,bFractional = 0.0,dFractional,fraFactor=0.1; long int … | |
Okay, i've done atleast 4 programs. The problem is, how do i combine them using switch? TBH, switch is kinda confusing... Here's the kind of output i want: press [1] for program1 press [2] for program2 press [3] for program3 press [4] for program4 *Program Here* Do you want to … | |
I'm trying to increase the limit up to a billion (or up to a hundred thousand). I don't know how. main() { long int a,b,c,d=0,e=1; clrscr(); printf(“Enter a Decimal Value: “); scanf(“%ld”, &a); while (a!=0) { b=a/2; /*Formula for Decimal c=a%2; to Binary*/ a=b; d=d+(c*e); e=e*10; } printf(“The Binary Value … | |
i somehow can't find how to fix the error: "non portable pointer assignment in function main" #define b break #define p printf #define s scanf main() { char M,[9]; int month, day, year; p("Enter Month:"); s("%d", &month); p("Enter Day:"); s("%d", &day); p("Enter Year:"); s("%d", &year); switch(month) { case 1: M="January"; … | |
I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. … | |
Here's the problem: Write a program that will input values for A and B. Compare two values inputted and print which of the values is higher including the remark “Higher”. So here's what i've done so far main() { int A, B; clrscr(); printf("Input Value for A: "); scanf("&d", &A); … | |
I've been dealing with this problem for about 2 days now. Write a program that accepts the price of an item and displays the discounted price. Accept also the amount given by the customer (assume the amount is greater than or equal to the discounted price) and display the change. … |
The End.