344 Topics

Member Avatar for
Member Avatar for shywolf91

Here is a c++ program I have been working on for an intro c++ class: [CODE]//hangman //Dylan Metz #include <iostream> #include <string> #include <fstream> #include <cstring> using namespace std; //functions //double index(); int main() { int const SIZE=22; char name[20]; char dash[SIZE]={" "}; char q; //The User's Guess int NumOfGuess=6; …

Member Avatar for augustus7
0
152
Member Avatar for bodymassacre

I have my first assignment for structured and object oriented problem solving. This is the problem and I wrote a program that had to include modules. I wanted to find out if what i did had any errors or if it is even written correctly at all. If its not …

Member Avatar for TrustyTony
0
194
Member Avatar for Candace Parker

Good day, people! I have here a code in C that needs improvement. It should list all the permutations of ABCDEF where C and E should be beside each other in any order (CE and EC). I know that I must treat C and E as one so I used …

Member Avatar for WaltP
0
3K
Member Avatar for ndrichim

hello.i have a homework in java wich asks to create this program: there would be n persons who are going to rate songs. for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs …

Member Avatar for Philippe.Lahaie
0
335
Member Avatar for HardToHandle

Hello guys, So my task is the following: Draw a pine tree based on user inputted height. How tall should the tree be?: 6 /\ / \ / \ / \ / \ / \ ------------ || || || I had problems moving the cursor from the left to right …

Member Avatar for HardToHandle
0
502
Member Avatar for Hypnos_16

Hello All, I'm trying to create three independent animations that all occur in one main frame. I have to use the following methods in my code [CODE]--- Animate --- public interface Animate { void move( double x, double y); void changeConfiguration(); } --- Drawable ----- import java.awt.Graphics2D; public interface Drawable …

Member Avatar for NormR1
0
2K
Member Avatar for iamthesgt

For a (homework) project, I have a class ComplexNumber that needs to be printed. I have a number of operations that can be done on objects of the class (addition, subtraction, multiplication, division). Each operation returns a new ComplexNumber to be printed. How exactly do I print this? Do I …

Member Avatar for iamthesgt
0
160
Member Avatar for Desi991

Hi all my assignment is too add and multiply 32 bit signed numbers. [CODE]INCLUDE Irvine32.inc .data z BYTE "Enter first integer: ", 0 c BYTE "Enter second integer: ", 0 outpt Byte "The addition of two integers is: ", 0 val dword ? .code main Proc call clrscr mov edx, …

0
78
Member Avatar for Joshua73

Hi i am doing a student grade lab where the student enters a grade they got on a test and they get a letter grade. My program only gives the user a F even if it should be another grade. This is my code. [CODE]strT1 = JOptionPane.showInputDialog("Enter 1st test score:"); …

Member Avatar for stultuske
0
257
Member Avatar for boris90

Hi, this is my first post here, and I really need some help with my homework. I'm a newbie to Java programming, and I have this assignment: [I]Write an application which reads data from a file about certain items (one row - one item, stored are the integer valued code, …

Member Avatar for DavidKroukamp
0
275
Member Avatar for Blackiey

Interface: [CODE]import java.awt.Rectangle; public interface Doubler { public void makeDouble(Rectangle newRectangle); }[/CODE] [CODE]import java.awt.Rectangle; public class RectangleDoubler implements Doubler { private double x, y, width, height; RectangleDoubler() { x = 0.0; y = 0.0; width = 0.0; height = 0.0; }//end of default constructor public void makeDouble(Rectangle newRectangle) { x …

Member Avatar for thanatos1
0
250
Member Avatar for bangor_boy

Please help before i go mad, i need to use the update in the main class to access the list in the footballadmin and then display each in a list box but i cant get it to work. [CODE]Imports Football Public Class FootballAdmin Private fTeam As List(Of FootballTeams) Public Sub …

Member Avatar for bangor_boy
0
192
Member Avatar for ebc3142

Hi, For a homework assignement, I'v been asked to write a small school administration system. Currently, the user is able to enter a new student and their age which is then stored in a text file. This all works fine but now I need to load the contents of the …

Member Avatar for Morten Brendefu
0
621
Member Avatar for smiley4080

This is a part of hospital diagram. Each nurse can be assigned to different wards on different days of the week so a nurse must be supervised by another one who is assigned to the same ward on the same day of the week as the nurse or the nurse …

Member Avatar for ChrisPadgham
0
282
Member Avatar for Griff0527

I am working on a project of converting VB code to C# code and I am lost as to how to read data from a prompt in C#. Here is the snippet I am concerned with fixing, but below I will post the entire code. [CODE] private void Button1_Click(System.Object sender, …

Member Avatar for Griff0527
0
2K
Member Avatar for iamthesgt

In going through some homework, I was able to do some of the problems, but not others. For example, one problem was "Produce a list of employee last name, first name, job function, department name and department location. Use appropriate, user friendly column aliases." I finished this with this code: …

Member Avatar for iamthesgt
0
208
Member Avatar for kjs5533

Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter …

Member Avatar for pseudorandom21
0
455
Member Avatar for angeriel1

I have this progrom which is compiling and running.Only Iam tryin to understand how to change the action listener Next en previous such that,If i have 5 employees in record it when you reach the last employee in record the Next and previous buttons should be disabled.please advise here is …

Member Avatar for hfx642
0
729
Member Avatar for harde

[ICODE]* Slot Machine Program by Harde*/ #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int x,a, b, c, token=4; srand(time(0)); cout<<"\t********************************************************\n" <<"\t* Welcome to slot machine. *\n" <<"\t* Would you like to play? (1 to play, 2 not to play) *\n" <<"\t********************************************************\n\n"; cin>>x; while(token!=0) {cout<<"You have …

Member Avatar for harde
0
332
Member Avatar for smandape

Thank you for looking at my question. I am trying to solve this homework question. Consider the problem of sequencing genome by random reads. If G is the length of the entire sequence, L is the length of the read and n is the number of reads, then coverage is …

0
98
Member Avatar for iamthesgt

This is homework. I have to create two tables with certain constraints. However, I keep getting syntax errors, and I really have no clue exactly how to format it because there are so many different 'templates' out there. Here is what I have so far. [CODE] create table Departments (Department_ID …

Member Avatar for dan420
0
177
Member Avatar for javanewb

Hello, this is my first post. I have this homework assignment, and it is completed and it works! my question is just if anyone has any suggestions to clean it up or make it more efficient? I have two seperate files GuessTheNumber.java which is: [CODE]// GuessTheNumber.java //Written by Sean Kelley …

Member Avatar for frank33
0
231
Member Avatar for needhelpinjav

Please, please don't tell me to stop being lazy and do this myself. I'm really struggling in my java class and I wouldn't be online asking strangers for help if I wasn't desperate and didn't already try to do the work myself. I've been on a number of programming help …

Member Avatar for stultuske
0
283
Member Avatar for usboy2903

Hi, well im working on a project for school but I can't seem to get it to work. Its an app that is connected to a DB with 3 tables, this is my sql syntax of the db: [CODE] Table structure for table `income` CREATE TABLE `income` ( `idincome` int(11) …

Member Avatar for niranga
0
214
Member Avatar for MoldingHam

My professor wants the following: 1. Write a program to correct a text including several paragraphs a. The first line in each paragraph must be indented b. The first character in every sentence must be capitalized, paragraphs will be indented with "CRLF" code c. Initial text and output must be …

Member Avatar for codeorder
0
120
Member Avatar for Griff0527

I would like to start this post off with, I am not looking for someone to do my homework for me. If I was looking for someone to "do it for me", I would go to one of the sites where you can pay someone to do your work for …

Member Avatar for Griff0527
0
1K
Member Avatar for angeriel1

how can I use JList object in place of JFilechooser show the directory content.any tips or somthing to help me understand this will be apreciated. [CODE]// Display directory content in a JTextArea object. // The user selects a directory via JFileChooser object. import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; …

Member Avatar for JamesCherrill
0
151
Member Avatar for iamthesgt

This is another homework problem. I thought it was easier, and I wouldn't need help, but I keep getting a segmentation fault when running the program. The assignment is to use a recursive function to output the amount of candybars we can buy with a user-inputted amount of money. Each …

Member Avatar for markshah2
0
613
Member Avatar for angeriel1

the program runs but fails to read the double word states (e.g New Jersey). am getting the error.java.lang.NumberFormatException: For input string: "Hampshire" [CODE] import java.text.DecimalFormat; import java.util.*; import java.io.*; import java.lang.reflect.Array; import java.nio.CharBuffer; import java.awt.*; //import java.awt.event.*; import javax.lang.model.type.ArrayType; import javax.swing.*; import javax.swing.event.*; public class PJ5 extends JFrame implements ListSelectionListener …

Member Avatar for hfx642
0
220
Member Avatar for 1Nbl00m

Hi Guys, Firstly, i'd like to state that this is a homework question which means i'm not looking for a direct solution to my problem. Just subtle hints on how to improve etc. I'm posting this here as I want to try and get a better understanding of Java's wait() …

0
234

The End.