I am writing a program that has a few requirements. Here is what it looks like the picture that I attached. [B][COLOR="red"]The first button is used to add (append) a record to a text file containing MP3 records.[/COLOR][/B] When an MP3 is added to the file, all text fields should be cleared and the new record entered should be displayed by itself in the text area: If a field is missing inform the user. Add AT LEAST six MP3 records. The data must be written to the text file using a “:” as a separator: artist name:song name:album name:tract length(in …

Member Avatar
Member Avatar
+0 forum 6

Hey all, I have an assignment that was assigned for the week that I could use some help on (not asking for someone to do it for me, just help with the step-by-step). Below is the requirements: 1) Create a new Java Project named whatever you'd like in your existing Eclipse Workspace. 2) In this project create a class named SortIntArray in the com.abc.sort package. 3) Paste in the code below overwriting everything in your initial SortIntArry.java file. 4) Except for the sort(int[]) method, all the other methods are complete as is and should NOT be altered. 5) The only …

Member Avatar
Member Avatar
+0 forum 5

Hello, I am working on a program that generates 100 random integers and then sorts them into even and odd. When i go to compile the program, it tells me that it cannot find variables randonum, evennum, and oddnum. I'm new to arrays so i'm guessing i declared/ defined them wrong. Thanks in advance for the help, i'm looking forward to becoming a part of the community! [CODE]import static java.lang.Math.*; public class ArrayEvenOdd { public static void main (String []args) { int evencount = 0; int oddcount = 0; int evennum [ ] = new int [ 100 ] ; …

Member Avatar
Member Avatar
+0 forum 11

Hello - Looking to find a function that works just like the php function uasort() but have it maintain the relative order of items when equal keys are found. Here's my code now: [CODE] $array = array("item1"=>-1,"item2"=>-1,"item3"=>-1,"item4"=>0,"item5"=>2,"item6"=>2,"item7"=>1); function sortThis($a,$b) { if( $a == -1 || $b == -1 ) { return 0; } elseif ($a == $b) { return 0; } return ($a < $b) ? -1 : 1; } uasort($array,"sortThis"); [/CODE] As you can see from the code above, I'm also returning 0 if negative #'s are found since all negative numbers must stay relative to where they are …

Member Avatar
Member Avatar
+0 forum 15

Hi! So I have this program that will read from a file of responses to a survey. The ratings are 1-10 and there are over 250 responses. I have found the average response and also the standard deviation but I also want to find the Median response. To do this I was going to create a method to sort the array. This is my code: [CODE]import java.io.*; import java.util.*; import java.lang.*; import java.text.*; public class Assignment4 { public static void main(String[] args) { try { FileReader reader = new FileReader("StudentResponses.txt"); Scanner in = new Scanner(reader); FileWriter writer = new FileWriter("FinishedSurvey.out"); …

Member Avatar
Member Avatar
+0 forum 5

This is my instructions [ATTACH]17319[/ATTACH] [ATTACH]17320[/ATTACH] and i am using Dev-C++ 4.9.9.2 and i am using the Mingw compiler i am a beginner. and this is my code. [CODE]#include <iostream> #include <iomanip> using namespace std; void everything(); int main() { everything(); system("pause"); return 0; } void everything() { int a,b,k,sum; bool flag; cout<<"Please enter the amount of students taking COSC 208"<<endl; cin>>a; int cosc208[a]; int Intersection[a]; cout<<"Please enter the ID's for all the students who are taking COSC 208 and press enter"<<endl; for (int i=0; i<a; i++) cin>>cosc208[i]; cout<<"Please enter the amount of studnts whose major is CTEC."<<endl; cin>>b; int …

Member Avatar
Member Avatar
+0 forum 17

Hi. I'm relatively new to VB and I have a question that needs an immediate response.Can anybody help me with this.... Suppose a sequential file contains the information shown below. I need help to write a program to use the file and produce a new list where the teams are in descending order by the percentage of games won,and also displaying the winning percentage [B]Team[/B] [B]Won Lost[/B] Baltimore 69 93 Boston 96 66 new York 94 68 Tampa Bay 66 96 Toronto 83 79

Member Avatar
Member Avatar
+0 forum 2

The End.