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
~3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for Daigan

`LDA C031 MVI B, A LDA C032H ADD B STA C033H HLT` Okay so I made a program that add two numbers in 8085 AL but I keep getting 0A on C033 whatever I put in C031 AND C032. Help, please? Thanks!

Member Avatar for rubberman
0
95
Member Avatar for Daigan

Hi, I'm making a webpage where it allows users to online book like let's say on a hotel, how do I show the users on the site the unfilled slots (dates and time) on the database? I'm using MS Access.

Member Avatar for adam_k
0
126
Member Avatar for Daigan

for (y = 1; y < num1 + 1; y++) { for(x = 1; x < num2 + 1; x++) { if (y >= 1 && y <= 4 && x >= 1 ) { printf ("%d x %d = %d", y, x, y*x); printf (" || "); } else …

Member Avatar for Vish0203
0
155
Member Avatar for Daigan

int main() { float stud1[2], stud2[2], total1, total2, ave1, ave2; int x; char letter1, letter2,opt; do { system ("cls"); printf ("Enter the test scores for Student 1\n"); printf ("Test 1: "); scanf("%f", &stud1[0]); //Error checking, when the user inputs a value less than 0 or more than 100 if (stud1[0] …

Member Avatar for Ancient Dragon
0
208
Member Avatar for Daigan

#include <stdio.h> int main() { char opt; do { printf ("Enter y or n: "); opt = getchar(); } while (opt != 'y' || opt != 'n'); } okay so my code does not stop when I enter y or n, which I think it should.

Member Avatar for Nimrod7676
0
107
Member Avatar for Daigan

Here's the code: [CODE]class SingleBoard extends JPanel { public SingleBoard (ActionListener e) { setLayout (new GridLayout (3, 3)); for (int i = 0 ; i <= 8 ; i++) { buttons [i] = new JButton (); buttons [i].addActionListener (e); add (buttons [i]); } } } public void init () { …

Member Avatar for Daigan
0
141
Member Avatar for Daigan

I can't figure out what the error is. [CODE]public void quizTest () { c = new Console(); int total = 34; String[] quizArray = new String [total]; String quizQuestions; int i = 0; int u = 0; try { FileReader readQuestion = new FileReader ("QuizQuestions1.txt"); BufferedReader buffReadQuestion = new BufferedReader …

Member Avatar for Daigan
0
86
Member Avatar for Daigan

Are there like 3d pushable buttons in Java? I want to put 3 buttons on top of each other, is that posible? I found JButton and I don't think I can do it with that?

Member Avatar for Daigan
0
119
Member Avatar for Daigan

[CODE]public class DoubleArray { static Console c; // The output console static final int total = 20; String[] numStr = new String [total]; static double numDbl; static String stop = ""; public void getAndStoreInput () { int count = 0; do { c.print ("Enter number" + (count + 1)); c.print …

Member Avatar for stultuske
0
105
Member Avatar for Daigan

So I'm having trouble parsing a double... Here's my code: [CODE]public class DoubleArray { static Console c; // The output console static final int total = 20; String[] numStr = new String [total]; Double numDouble; public void getAndStoreInput () { int count = 0; do { c.print ("Enter Double" + …

Member Avatar for Daigan
0
132
Member Avatar for Daigan

Hi, so my problem is I don't know how to read more than one line from a text file. say I have string.txt and it contains: Hello Java Hello World Welcome how am I going to read every line of the string.txt? I tried using FileReader and BufferedReader but it …

Member Avatar for Daigan
0
194
Member Avatar for Daigan

Hi. So here's my code [CODE]public class TextFileIO { static Console c; // The output console static int total; public void askData () { int line = 0; int i; c.print ("Enter the number of words you're going to input: "); total = c.readInt (); File dataInput = new File …

Member Avatar for Daigan
0
233
Member Avatar for Daigan

Hi. So my problem is that my loop doesn't stop. Here's my code. [CODE]public void askData () { String word; String stop = null; int line = 0; File dataInput = new File ("dataIn.text"); c.println ("In order to stop, just leave it blank."); c.println (); while (true) { try { …

Member Avatar for Daigan
0
165
Member Avatar for Daigan

So I was given a code about IO to understand [CODE]// The "FileIO" class. import java.awt.*; import hsa.Console; import java.io.*; public class FileIO { static Console c; // The output console public void writeFile () { PrintWriter output; String fileName; c.println ("Saving a File in Java!"); c.print ("Enter file name: …

Member Avatar for Daigan
0
144
Member Avatar for Daigan

Hi, I need help with arrays. Here's what I have so far.... [CODE]// The "Prefixes123" class. import java.awt.*; import hsa.Console; public class Prefixes123 { static Console c; public static void main (String[] args) { c = new Console (); String prefix; String word; String sentences; c.print ("Enter the prefix: "); …

Member Avatar for Daigan
0
143
Member Avatar for Daigan

Here's what I have so far.. [CODE] // The "AddingPrefixes" class. import hsa.*; import javax.swing.JOptionPane; public class AddingPrefixes { static Console c; // The output console static char proc; static String prefix; static String word; static String sentences; private void title () { c.print (' ', 32); c.println ("Adding a …

Member Avatar for NormR1
0
173
Member Avatar for Daigan

[CODE]// The "StringReplacement" class. import java.awt.*; import hsa.Console; public class StringReplacement { static Console c; // The output console public static void main (String[] args) { c = new Console (); String word; String word2; String sentences; int i; c.print ("Enter the word to be replaced: "); word = c.readLine …

Member Avatar for Daigan
0
180
Member Avatar for Daigan

Basically what I want to do is add a prefix (input by the user) to be added on a chosen word by the user. Is that posible? I got stuck and don't know what to do.... Here's what I have so far. [CODE]// The "Prototype" class. import java.awt.*; import hsa.Console; …

Member Avatar for NormR1
0
153
Member Avatar for Daigan

[CODE]private double convertLiquid (double none2 ,char unit2, char amount2) { if (unit == 1) return (amount * 33.8140227); else if (unit == 2) return (amount * 0.001); if (unit == 3) return (amount * 1000); if (unit == 4) return (amount * 0.00852167911); if (unit == 5) return (amount * …

Member Avatar for javaNooblet
0
136
Member Avatar for Daigan

[CODE]public void mainmenu () { title (); System.out.println ("If you wish to exit press 5, if you want to go the intro press 2, and if you want to continue 3:"); do { try { procstr = c.readLine (); proc = Integer.parseInt (procstr); if (proc == 3) askData (); if …

Member Avatar for Paul Norris
0
130
Member Avatar for Daigan

Hi, so my problem is that I need a method that does the calculation for my program and return it. Here's what I have so far. It keeps saying that the method needs to return a double value. Can someone help me? Thanks in advance. [CODE]private double spoonConvert (double answer) …

Member Avatar for Daigan
0
66
Member Avatar for Daigan

Hi, so I'm new with Java and the programming thing. Here's my problem. I need to do an errortrap without using a loop and creating a method solely for errortrapping so I figured i need to use try and catch statements but I'm not sure how. Basically my problem is …

Member Avatar for Daigan
0
122