Member Avatar
can someone tell me if this is possible for multidimensional arrays? revise the code if I am wrong actually I am creating a site for billboards reservation
by masterjiraya -3 in Web Development ()
Member Avatar
Write a program that reads integers, finds the largest and counts the occurrences. Assume that when the user enters it ends the sequence. Example : 3 5 5 5 0 Largest : 5 Occurrences : 3 I can't use arrays . I know I'm suppose to use loops but I …
by Max_14 in Programming ()
Member Avatar
hello every body here i got some problem with assign value to arrays, so i want to print multiplication table of the arrays: ... i'm getting like 00000 00000 00000 00000 00000
by chrisschristou in Programming ()
Member Avatar
Hello there, In my program I have an object of a class with some values, and I am trying to create another object, populate it to array and add it to my object. ... In DisplayClient Request i have an array passed to constructor of type AdvertisementType, and in AdvertisementType …
by Bartosz in Programming ()
Member Avatar
We have homework due tomorrow, and it's a three person group. I don't understand the slightest bit about arrays, but I've been trying - now the code just looks messy. Just with the things that say ------------------Tierra------------------, can you all help me? The book is useless and I'm just frustrated …
by Tierra in Programming ()
Member Avatar
I really need help creating this program, i am not very good at coding and you all would be a blessing to help me. Thanks in advance! Assignment Create an Aircraft class that has several properties that are common to all aircraft (Ex: number of engines, seat capacity). You define …
by jxxop1 in Software Development ()
Member Avatar
C++: I'm using Microsoft Visual Studio 2012 and I am not sure what to do about these two errors: ... Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. One method named "read from user file" which will ask the user to …
by DS9596 in Software Development ()
Member Avatar
C++: I'm using Microsoft Visual Studio 2012 and I am really confused and am getting errors. Prompt: Make program that reads 20 integers, display that array, and find min, max, sum, and avg. One method named "read from user file" which will ask the user to input a filename and …
by DS9596 in Software Development ()
Member Avatar
Hi guys, My name is Leonard E Norwood Jr. I'm a senior at Norfolk State University and a beginning of programming. I'm just working on a small program on my own time to practice. So you're familiar with the playing cards and the logic of dealing a deck with 4 …
by Leonard_3 in Programming ()
Member Avatar
Hi all, I am using a for statement to generate lots of arrays, example: ... But, I want to have them all within 1 array, example: ... Am I able to do this within my for statement, which is currently: ... My research online has just turned up merging or …
by James_43 15 in Web Development ()
Member Avatar
Hi there, I am trying to populate a page with multiple rows from a mySQL database. To grab the data, I am using: ... That creates a mutil-dimensional array. However, when I try to access that data things go a bit weird. For example, ... should output the name from …
by James_43 15 in Web Development ()
Member Avatar
Hi i have a bit of code: On the 1st day of Christmas, my true love sent to me A partridge in a pear tree. On the 2nd day of Christmas, my true love sent to me Two turtle doves, And a partridge in a pear tree. On the 3rd …
by LibraryCode in Software Development ()
Member Avatar
Hi all i generated table,but it looks like the code is a bit messy,long,how can i do the same with the arrays or loops? ...
by LibraryCode in Web Development ()
Member Avatar
i was given an assignment to create a word construction game where the program will randomly picks a combination of vowels and consonants and the user will build as much words as possible from the choosen letters. my prog will check for the correctness of the words and gives the …
by prgmmgbgnnr in Software Development ()
Member Avatar
Hello, I was hoping to get some input from anyone in the Java section. My professor gave us a practice problem about two weeks ago and I have been running into an out of bounds error. The program seemed simple enough, take in two arrays of binary numbers from a …
by AbstractEden in Software Development ()
Member Avatar
how to develop a prog in cpp that asks the user to enter numbers and sort them ascendingly using arrays.
by surayanbo in Software Development ()
Member Avatar
Hi all,i tried to do some research regarding associated arrays in php,even manual on the php documentations,but can not find the answer,how do i print the smallest value and the associated key from the array?
by LibraryCode in Web Development ()
Member Avatar
i was given an assignment to create a word construction game where the program will randomly picks a combination of vowels and consonants and the user will build as much words as possible from the choosen letters. my prog will check for the correctness of the words and gives the …
by prgmmgbgnnr in Software Development ()
Member Avatar
A user will enter one line of text at a time . Use EOF or ‘\n’ to determine end of the input. Echo the input one word per line and capitalize each word. Do not use toupper().White spaces, special characters (*, &,+, etc.),and punctuation marks will serve as delimiters .Do …
by asholpurush1991 in Software Development ()
Member Avatar
hi.i realy need help am a new beginner in java.so i have been trying to do a code in java that returns the largest counter,refering to my libraries.so i was trying to invoke the method comparTo,so i dont know how to use it to compare all counter arrays so that …
by Vinolia in Software Development ()
Member Avatar
I get the fact that arrays are NOT the same as pointers but when an array is used as an rvalue it is implicitly converted to a pointer. I used the above to write a program to store a 1-D array's address in a pointer variable. Below is my code: …
by anumash in Software Development ()
Member Avatar
array([details] => Array([0] => Array( [name] => 454 [location] => 4) [2] => Array([name] => 454 [location] => 5))) I have array details with two sub arrays [0] and [2] how to convert and order [2] to [1] array([details] => Array([0] => Array( [name] => 454 [location] => 4) [1] …
by ramsiva in Web Development ()
Member Avatar
Instruction: You must use pointers for this lab. No arrays, no structures. For example, if you need an array of floats to hold the scores, do not use float score[15]. Rather use float score, then use dynamic memory allocation to hold required memory. You must use memory optimally, that is …
by jakson321 in Software Development ()
Member Avatar
Ok guys ! I'm trying to study operator overloading. which i found the toughest article in OOP :( I tried a code for == operator overloading to check whether both arrays have same elements or not but it isn't working. Can anyone help? Here is my code: ...
by Mahnoor_1 in Software Development ()
Member Avatar
I hope you can help me with the below exercise. I am trying to get through a programming class and it is getting tough,can you help? The Daily Trumpet newspaper accepts classified advertisements in 15 categories such as Apartments for Rent and Pets for Sale. Develop the logic for a …
by Elizabeth_6 in Computer Science ()
Member Avatar
ok well i just started with Java and i have an assignment that is giving me a hard time what i'm supposed to do is take an entry number(int) and then arrange its digits in an ascending and a descending way, the problem is i don't know much about arrays …
by Gabriel_7 in Software Development ()
Member Avatar
import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Counter { public void split(String a,ArrayList<String> al) { char ch[]=a.toCharArray(); int p=0; for(int i=0;i<ch.length;i++) { if(ch[i]==32) {List<String> l=al.subList(p,i); ArrayList<String> al1=new ArrayList<String>(l); //String str=new String[al1.size()]; //al1.toArray(str); //al1.add(str); //al1.add(al1); //why this is also wrong al1.add(al.sublist(p,i)); p=i; System.out.println(al1); } } } public static void main(String... s) …
by Ankit_18 in Software Development ()
Member Avatar
I need to o an assignment where i make two programs, one to write a list of players in a team and their scores, the other to read and search the .dat file for specific players. i have chosen to do this with an array but when i run my …
by R3CK2 in Software Development ()
Member Avatar
The problem asks: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid, as shown in the following sample run: Enter number of lines: 7 ......1 .....212 ....32123 ...4321234 ..543212345 .65432123456 7654321234567 (except the example given shows spaces in between the …
by emmstarr in Software Development ()
Member Avatar
guys i making a programme in this i have to merge two arrays into one new array but this code does not run at run time ,compiler does not chow any error ... here array_1 is my first array and array_2 is second array
by basit_3 in Software Development ()