344 Topics

Member Avatar for
Member Avatar for Rez11

I have this assignment to do. Its been about a year since I messed with c++ and I've been refreshing my brain on the subject. The assignment is this : Your assignment is to write a program for a computer dating service. Each client gives you his or her name, …

Member Avatar for jmichae3
0
194
Member Avatar for python-noob

I know this forum isn't to give away the answers, but could someone maybe help me get started? My biggest problem is figuring out where to start. Even the pseudo code doesn't help me very much. I don't know how to use an excel file in a program either. I …

Member Avatar for python-noob
0
200
Member Avatar for my.name

Hello everyone, :) I have exercise for class that I can't complete, I don't understand why my loops aren't working The question--- Write code that will print a multiplication table for 10 positive integers across the columns and 10 positive integers down the rows. Prompt the user for the starting …

Member Avatar for my.name
0
828
Member Avatar for ashley808

I've never felt like a total moron until I took a Computer Science class. I'm trying to create a program that rolls a pair of standard 6 sided dice 10,000 times and outputs how many times doubles show up, using a "while" loop. I think what I'm trying to do …

Member Avatar for JamesCherrill
0
747
Member Avatar for greenq

I am implementing Selection sort in doubly - linked list. I have to sort list by surnames by finding smallest element and inserting it into beginning of the list But there are some troubles when I run my program I have NIL exception in Sort Method in while loop. Help …

Member Avatar for Taywin
0
2K
Member Avatar for sonicx

I'm trying to find max and min values from a text file which contains data in rows and columns. But I want to create a script which will skip the first couple of lines and calculate the max and min from there on. I am aware for the max and …

Member Avatar for woooee
0
14K
Member Avatar for pimpingreen13

Im having a hard time figuring out what is wrong with my program. I need to write a program that looks up a phone number in a file containing a list of names and phone numbers. The user is to input the first name and last name to look up, …

Member Avatar for MonsieurPointer
0
387
Member Avatar for Mi_99

This calculator performs two digit task successfully but what do i need to alter it i want it to evaluate 3 digits [CODE] public class Calculator { private long currentInput; //current input private long previousInput; // previous input private long result; // result of calculation private String lastOperator = ""; …

Member Avatar for sirlink99
0
186
Member Avatar for julylee06

Ok, so I need some guidance. Am trying to implement a linked list in java. I can't get it. I have been on here - dreaminncode, wikipedia, and some other colleges sites - I still don't/can't get it. I did look at the previous threads on this but they didn't …

Member Avatar for julylee06
0
212
Member Avatar for Mi_99

he question is to get my shapes to change over time according to some criteria of my own design therefore i tried to make the shape change size as it hits certain coordinates but it would turn into line and keep moving as lines below is my move method to …

Member Avatar for Taywin
0
107
Member Avatar for eblanco1

[CODE]#include <iostream> #include <cstdlib> #include <math.h> #include <iomanip> using namespace std; const string FILLER = " "; int main() { int w1 = 20; int w2 = 20; int w3 = 20; int w4 = 16; //variable declarations string firstname,lastname; int marital_status; float gross_income; const float tax_rate_0 = 0.10; const …

Member Avatar for eblanco1
0
167
Member Avatar for Mi_99

So my title was meant to be array not loop I need to create an application that will generate random spots so far my work is this [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; import java.util.Random; public class Shape{ private int x; private int y; private int width; private …

Member Avatar for JamesCherrill
0
200
Member Avatar for math_girl123

Hello fellow programmers :)) just started c++ a month ago and in need of major helpzz!! so basically I need code that: INPUT NUMBER-->BASE OF NUMBER-->PRINTS DECIMAL REPRESENTATION OF IT Im trying this code..when i put any number and base I just get 0 pleaxxxx help!!! ty all!! [CODE]#include <iostream> …

Member Avatar for Taywin
0
87
Member Avatar for meli123

Hey guys Im trying to create a code where: input A: number Input B: Base Print: Decimal form I am going to use algorithm where u do following: NUMBER % BASE but it would do it the number of times that the base is.. so if its 6 (base 2) …

Member Avatar for doug65536
0
112
Member Avatar for isebas

I need to write a code to find greatest common factor of two numbers but I have no idea how? any help? please.

Member Avatar for NormR1
0
117
Member Avatar for CoolPrizes

So I need help on how to calculate how much change to give back to a customer. I need the program to give change in the least bills and coins as possible. Ex. Customer's item costs $13.37. He/She pays $20. Program gives back: One $5 Bill One $1 Bill Two …

Member Avatar for CoolPrizes
1
7K
Member Avatar for isebas

I have to write a code that will print out the sum of all numbers between 1 and 100 that 7 and 5 go into evenly. I can't really think of how to write it. This is what I have but it doesn't work.[CODE] import java.io.*; public class work {public …

Member Avatar for hfx642
0
183
Member Avatar for leftovas17

Okay, first off, I know my code is atrocious. I am not a c++ programmer, but my OpenGL course requires it. My lack of c++ knowledge is most probably my biggest problem here. I am simply looking for quick fixes to my ignorant mistakes. I just need the algorithm to …

Member Avatar for leftovas17
0
246
Member Avatar for Ravic85

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing …

Member Avatar for Eagletalon
1
1K
Member Avatar for WhooeyBob

Hi, I am brand new to programming all together and was kind of thrown into a programming class without much help and I have struggled with my homework for this week. I have to create a code to write an ASCII table using Python 2.6 . Here is the actual …

Member Avatar for woooee
0
262
Member Avatar for Harley_Quinn

So I have this code that has a sum function that sums n elements in a vector [CODE]#include <iostream> #include <vector> // need this in order to use vectors in the program using namespace std; void computeSum (vector<int> &Vec, int howMany, int total, bool success) //the computeSum function that will …

Member Avatar for Fbody
0
182
Member Avatar for Harley_Quinn

So here is my code for a sum function for a vector - using boolean success to just pretty much catch simple errors and what not However when I compile it says that success is undeclared in my int main() and I was just wondering how to properly declare it …

Member Avatar for Harley_Quinn
0
180
Member Avatar for isebas

Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium …

Member Avatar for isebas
0
230
Member Avatar for isebas

Yes, I am a total newbie. I am doing this code for homework. It is giving me an error on the method line is saying that it is missing.Please help. [CODE]import java.io.*; public class discount {public static input in = new input(); public static void main(String[] args) throws IOException; {double …

Member Avatar for dimasalang
0
195
Member Avatar for isebas

Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected …

Member Avatar for isebas
0
239
Member Avatar for bangor_boy

[CODE]private void getPreviousButtonActionPerformed(java.awt.event.ActionEvent evt) { List<Tweet> listOfTweets = remoteBean.getMoreTweets(5); StringBuilder displayStringBuilder = new StringBuilder(); if(listOfTweets != null) { for (Tweet tweet : listOfTweet) { displayStringBuilder.append(tweet.toString() + "\n"); } textArea.setText(displayStringBuilder.toString()); } } [/CODE] As it stands when i run the code that this method is in and enter a number of …

Member Avatar for mKorbel
0
142
Member Avatar for amaanbhae
Member Avatar for Chona Ramos

using c++ program,enter students record and perform the following activity: save search delete view edit print

Member Avatar for WaltP
0
163
Member Avatar for vinothcv

write a program that can be used to assign and book seats for a commercial cinema. The cinema has 16 rows, with 20 seats in each row. The seats at the mid-column (number 5 to 15) of the last 2 rows closest to the doors (row A and B) are …

Member Avatar for Salem
-1
502
Member Avatar for spothao

Here is some question i get from my friend recently ,it's a C++ programming question ,and i only managed to do some of it . So i hope can discuss these question over here , the way to do it.Thanks. Q1 . REQUEST FOR PROPOSAL When government ,military ,or commercial …

Member Avatar for spothao
-1
273

The End.