578 Topics

Member Avatar for
Member Avatar for lithium112

Hello, I am delving into OOP now and am having issues with creating properties. Below is my code. Basically what I did is created a custom class and am creating a property within that class. But what happens is it will put a red squiggly under 'Multiply' saying 'not all …

Member Avatar for lithium112
0
244
Member Avatar for duncan55

Im trying to add odd numbers recursively from n to m but its not working . im sure its in the recursive logic on how im passing the arguments or something. public static int OddSum(int low, int up,int total) { if(low==up) { return up; }else { low+=2; return total += …

Member Avatar for jwenting
0
206
Member Avatar for Yugalpsd

need a program to perform polynomial division with linked lists or arrays. i already tried multiplication,subtraction and addition but stucked in division can anyone help me out on this.

0
147
Member Avatar for ddanbe

Hi, in my polynomial class all the terms consist of a List of tuples (double, uint), representing the coefficient and the exponent; a real and a natural number. The +operator implementation works great, but I was wondering if I could avoid to write two times `grouping.Sum(s => s.Item1)` It somehow …

Member Avatar for ddanbe
0
238
Member Avatar for L-D

Hi, Entering website first time. Script says Admin then admin. Like so Admin Id: Admin Password: admin But get Error. Wrong Admin Login. Plus these errors top of page: Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/adven735/public_html/config.php on line 4 Warning: mysql_fetch_array() expects parameter 1 to …

Member Avatar for titos97
0
232
Member Avatar for ubhart

Hi I have to write program that finds a solution how to put 12 knights to a 8x8 chess board that every square would be dominated by one of the 12 knights. Do you have any suggestions from where I can start?

Member Avatar for ubhart
0
392
Member Avatar for Praveen_10

#include <iostream> #include <cstdlib> using namespace std; // function prototype for add int add (int x, int y); int sub (int q, int r); int mul (int s, int t); int divi (int u, int v); int main () { int a,b; char ch; loop:cout<<"ENTER CHOICE OF OPERATION: + - …

Member Avatar for Praveen_10
0
272
Member Avatar for Sudhanshu_1
Member Avatar for javalearner1

I wrote this code for mutipicate two polynomials but I want change it as it can get two polynomials and then multicipate them for example: input: 5x -2x^2 +x -1 -4 -2x output: 4x^3 -4x^2 -22x +4 public class Polynomial{ public int[b+1]; coef[b] = a; deg = degree(); } // …

Member Avatar for sara12234
-1
237
Member Avatar for kangarooblood

Hi there, I'm a real newbie to python so sorry if this is a stupid question or if I don't fully get your answer, no hate please! I'm trying to write a small program to use when calculating differential equations bu using Euler's step method, don't worry if you don't …

Member Avatar for rrashkin
0
357
Member Avatar for khess

System Administrators (SAs) have a tough job: Dealing with users and user accounts, security, patching, updates, upgrades, disk space, performance and other miscellaneous tasks often known as "other duties as assigned." For some SAs, the day never ends. Despite the challenges, pitfalls and occasional irate user; system administration is a …

Member Avatar for Spencer_1
0
2K
Member Avatar for beauty.is.raven

Write a Java application that prompts and reads a value representing the radius, of a circle, then prints the circle's circumference and area. I do not know where to start

Member Avatar for jwenting
0
401
Member Avatar for kenneth.leonida
Member Avatar for simplysach

in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have to include what 'input' is when coding a programme. Please help and reply as soon as possible and keep in …

Member Avatar for Schol-R-LEA
0
324
Member Avatar for cnsk90

#include<stdio.h> #include<math.h> int main() { int n,nstart,nstop,nstep,i,j,zNumber; ` printf("Please enter a value of a positive integer nstart: "); scanf("%d",&nstart); printf("Please enter a value of a positive integer nstop: "); scanf("%d",&nstop); printf("Please enter a value of a positive integer nstep: "); scanf("%d",&nstep); printf("Number\t\tzNumber\n"); printf("------\t\t-------\n"); n=nstart; zNumber= double pow(double_n,double_i); while(i<=nstop){ zNumber = …

Member Avatar for David W
0
778
Member Avatar for Doogledude123

So I have a button which adds a "Miner" then removes the cost of the Miner. The problem is that it is taking away too much, double the cost, and also will not buy if the current gold is equal to the cost. I have no idea why it is …

Member Avatar for sepp2k
0
304
Member Avatar for Emma_3

I'm really struggling with this assignment. Here's what I have to do: Write a program that uses an array to store 10 elements, representing 10 students' test scores that will be entered from the keyboard. Given the following grading scale (given in my if statements) determine the letter grade each …

Member Avatar for Moschops
0
289
Member Avatar for CoilFyzx

Hello good day. I am trying to figure out if it is at all possible for me to do but I want to access the area that is outside the JScrollPane's view when my JFrame is resized. Let me explain; I have a LayeredPanewith two layers within a JscrollPane. The …

Member Avatar for CoilFyzx
0
231
Member Avatar for CoilFyzx

Hi. I have a JFrame with a JLayeredPane. On the first layer there is a table, then above it there is black transparent layer that allows me options and what-not. I animate the arrival of this transparent layer. However when I do this the panel seems to loose it's transparency, …

Member Avatar for CoilFyzx
0
573
Member Avatar for eldiablo1121

Hello, I have to write a program that will solve polynomials by user input, my program compiles, but gets an exception error. Here is my code: import java.io.*; import java.util.Scanner; import java.util.LinkedList; public class PolynomialList { private Node first = new Node(0, 0); private Node last = first; private static …

Member Avatar for JamesCherrill
0
1K
Member Avatar for Paor

please help for query... i want sum (kns+kng) by name - [example](http://sqlfiddle.com/#!2/b5a7e6) the result should be: name|sum ----------- john - 36 bart - 16 steve - 53 jim - 10 tnx

Member Avatar for Paor
0
244
Member Avatar for Kelly Burby
Member Avatar for James19142

I wrote this function I plan on using to load in .obj files from Blender into a DirectX application. The problem I'm having is that when when the model is loaded, it appears that every other triangle face is missing in a pattern, for every quad, only 1 traingle is …

Member Avatar for James19142
0
841
Member Avatar for breezett93

Hi Everyone, For a couple weeks, I have been developing a pi approximation program and making little upgrades. Right now, the program asks for an input of iterations and then prints out the approximation. Now, I want to have every iteration printed out into an excel file with an approximation …

Member Avatar for duskoKoscica
0
233
Member Avatar for duskoKoscica

Well I have created this one and on my computer it is working. I would like to hear about some alternative solutions. INTRODUCTION This time I have one algorithm, but to understand it we need to consider a few terms. First of all, we should be familiar with the pangrams. …

Member Avatar for duskoKoscica
0
353
Member Avatar for titos97

Hi Guys , I couldnt dispay sum of a column of sqlite database in php . I tried the sql statement in database its working fine but not sure how to dispay the result in PHP . I belive i need to fetch it and then dispay any help will …

Member Avatar for titos97
0
629
Member Avatar for Labdabeta

Hello, I have used taylor polynomials to approximate floating-point values before. I am wondering whether there is a way to still apply them to functions with complex arguments, and if there is a way what its constraints would be. For example, to calculate the sine of a floating-point number to …

Member Avatar for ddanbe
0
250
Member Avatar for Encheiridion

hi, i need to past *.x 3d model file into vb6 script. can someone recomend some comprehensively teaching online redaction about? it will be good if there could possibly find way of puting multiple objects in. ex three to see the regle. thanks, i will publish the resultats, for next …

0
212
Member Avatar for JRDJ12

My requirements are as follows: 1. use main method 2. use the following array- `int[] grades = new int[] {` `82, 70, 99, 90, 92, 75, 87, 85, 91, 100, 91, 87 ` `};` 3. Write code to step through the array of grades and calculate the average grade. Modify …

Member Avatar for JamesCherrill
0
10K
Member Avatar for user4678

I'm trying to create a program that computes the values of cos using the Taylor Series as long as the absolute value of a term is greater than 0.0001 and prints the number of terms used in the series approximation. My code is the following and as of right now …

Member Avatar for Labdabeta
0
629

The End.