Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live

when I run my program it give me this result [[I@4e280c ?!

it's give me same error in these method!! How can i fix it?? public static int[] allRowSums(int[][] a) { int[] sumRow = new int[a.length]; for (int row = 0; row < a.length; row++) { for (int col =...

View Article


Error parsing the query -DBCC

Hello guys. I have an error: I want when I delete a row and if was only one to reseed the ID so I created this: Function ReseedTable(ByVal TableName As String, ByVal Value As Integer) Dim cmd As...

View Article


Calculating Dates for a schedule

I am looking for some assistance in calculating the due dates for a new scheduling system. At present a schedule is based on Monthly or Weekly payment, starting from a defined date. In the new schedule...

View Article

Image may be NSFW.
Clik here to view.

Assistance for Better Coding (Rolodex Menu)

Hello Everyone, Below are my files for a simple C++ Rolodex Menu (Could not upload due to file type?). The program is fully functioning and meeting all my requirements, but, I know this could be coded...

View Article

Refresh JTextArea

Hi there! I wonder if anyone can help me out. I have to make a code for a certain type of bar, where the prices change everytime someone buys a drink (example: customer buys 3 beers, the prices of all...

View Article


Help with Airline Reservation Project in C

I was given an assignment with the following parameters: The Cape Fear Airlines has one plane with a seating capacity of 12. It makes one flight daily. Write a seating reservation program with the...

View Article

Image may be NSFW.
Clik here to view.

Number Frequency with Arrays

Here is the assignment: Design and implement an application that reads a number of integers that are in the range 0 to 50 inclusive and counts how many times each one is entered. After all input has...

View Article

Using ArrayList ( Bank Account )

The first, I'm sorry because I learn English not good. I have 2 class (SavingAccount & CheckingAccout) extends BankAccount. Now, I want to create ArrayList<...> include: saving &...

View Article


Generating random numbers

Well, I got a question again that I was asked to generate random numbers from range 1 to 100, afterwards displays the list, that is higher the average of the list. For example, if I generated 10...

View Article


Advice on planning a text based browser game in PHP

Hi, I am interested in creating a text based browser game. I am currently familiar with HTML, CSS, PHP, MySQL & a small bit of javascript. Would it be possible to create a large scale browser game...

View Article

problem with working out average of unknown numbers

i have to work out the question below. i have to use this same format too but having problems figuring out where I'm going wrong. thanks in advance. /* Write a program which averages a sequence of...

View Article

Question how to get back to start of code

If i put a string into x i want it to go back to the start of the code and let the "user" to input the INT again but instead i get the exception "invalid input" wont stop searched all over google cant...

View Article

Storing Objects ByRef

So this is going back to the concept of Pointers in C++. Basically, what I want to do is instantiate an Object in one class, pass it to another ByRef (which should work like a pointer, right?) and then...

View Article


Programmatically dealing with embeded 3d

First time poster long time lurker, I was hoping someone could steer me in the right direction for an upcoming upgrade I wanted to add to an app. I don’t necessarily need specific coding advice (at...

View Article

Displaying all code dymanically

Hi, For my Database-Driven Websites project I have had to make a dynamic website. One of the requirements is I need a hyperlink to display the code used on each page. Is there a method to do this...

View Article


If statements && mod not working as expected

For some reason the overiding qualifiedforscholarship method is always returning true for grad and law students. Mark Adams and Joan Short should be returning false Name: Fred Blunt SSN: 111-11-1111...

View Article

how to calculate leave returnDate based on numberOfDays and startDate

Can anyone help me calculate leave returnDate based on numberOfDays and startDate excluding weekends (sundays, saturdays) in vb.NET

View Article


Identifing an isolated character in a matrix

Hi guys, I've been thinking how to solve this problem the whole day. Problem description Let's suppose you have a matrix composed of 1's and 0's.(*) Write a function that recognises if there is at...

View Article

Image may be NSFW.
Clik here to view.

getting wrong O/P for find average code using function

i have written code to find average and percentage using function and pointer. but the output is going wrong. example - average for 50, 50 and 51 is 50. #include<stdio.h> #include<conio.h>...

View Article

help with do while loop code

do { y1=f(x1); y2=f(x2); x3=x2-(y2*(x2-x1))/(y2-y1); x1=x2; x2=x3; cout<<"x3 is: "<<x3<<endl; a=a+1; } while (a<=3); cout<<"the secant root is: "<<x3<<endl; In...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>