199,114 Archived Topics
Remove Filter ![]() | |
Colafone Corp, an internet service provider has just started operations in Fiji. They require a program that calculates and prints the bill for Colafone Corp’s clients. As such the Corporation has come to you to create such a program. The corporation offers two types of services plan: Broadband Lite and … | |
hey guys need help... Declare an enumeration type consisting of the nine planets in their order by distance from the Sun (Mercury first, Pluto last). Write a value-returning function that converts the name of a planet of the enumeration type declared in Step 1 into the corresponding string. The planet … | |
Hey! so my teacher is forgin, as i am and i'm having trouble understanding what he says... here is an assignment i got and im not sure what exactly it's asking. Would be big help if any of you guys could figure out what the question is wanting me to … | |
I m new.I am not getting any result for Number of A Number of B Numbers of C Number of D number of F for A,B,C,D,F i always get 0. [CODE]import java.util.Scanner; public class ExamScores1 { public static void main (String[]args) { String a; int count= 0; int grade=0; // … ![]() | |
I am trying to read a file using a string input as the filename. For example, if the filename is datafile.txt then if the input is "datafile.txt" and there is a file of that name in the directory, how do I read it? Here is my initial code: [CODE]Scanner kbd … | |
Hi all, Does anyone know how to read a .doc file with reader in java? Is it possible to read a doc file the same way you read a txt file? Thanks in advance ![]() | |
it says can not find symbol.... [CODE]import java.util.Scanner; public class wage2 { private static Scanner Reader= new Scanner (System.in); // private static double OverTimeRate=1.5; public static void main(String[] args) { //constants double person_Name; double hourly_wage; double regular_hours; double overtime_hour; double regularpay; double overtimepay; double totalpay; person_Name=InputPersonName(); hourly_wage=InputhourlyWage(); regular_hours=InputRegularHours(); overtime_hour=InputOvertimeHours(); regularpay=regular_hours … ![]() | |
Hello Daniweb, I am writing an App that uses two buttons, two radiobuttons, and a textbox to use the Windows shell command to print the "getmac" command to a text file: i.e. "getmac /v >> whatever.txt" I want to save the "wireless" MAC addresses to a text file from a … | |
I am developing an application that involves serial port communication (using an FTDI device) and an operation which takes 3 minutes on an XP box, takes 9.5 minutes on a Windows 7 box. The application should handle data at a rate of about 11 kilobytes/second. I know my application is … | |
Hi there, I've never done any work with ASP .NET files before so I apologise for a probably basic question. I have a HTML file and a ASPX file. I need the HTML file to run the ASPX file and display it's contents. The idea is that the ASPX file … | |
I am designing an application which communicates with another device via a serial port. My application buffers the received binary data until the data is valid/of known format, does some processing and then writes back a response. I understand this model is known as the consumer/producer model. The issue I … | |
[COLOR="Red"]First off let me just say i don't want anyone to do my homework for me. I get a greater sense of satisfaction knowing that I did the work. with that being said I'm looking for some way to start or some input on what measures I should take while … | |
I can't get the object array in lab9 class (named "thelist") to be populated with objects from the Foreign class. please see line 35 in lab9 class. I've tried using toString, useing a Foreign type variable as a parameter in a addData(), a addData() method ect... I am really really … | |
Hi all, I have 2 multidimensional arrays which i have to print simultaneously and one of them will not have same number of elements at some times. So i check them using empty() function. As it is not possible to check every single element, i wrote a function which has … ![]() | |
[CODE]----------------------------------------------------------- chan1 |chan2 |chan3 | captureTime |id ----------------------------------------------------------- 20 |21 |25 | 2011-10-11 00:00:00 |1 ----------------------------------------------------------- 21 |18 |19 | 2011-10-11 00:01:00 |1 ----------------------------------------------------------- .... .... .... ----------------------------------------------------------- 20 |25 |21 | 2011-10-11 00:15:00 |1 ----------------------------------------------------------- 21 |18 |14 | 2011-10-11 00:16:00 |1 .... .... .... ----------------------------------------------------------- 15 |26 |23 … | |
I am new to Java and I am having trouble knowing if my array is populating when I click the enter button and printing out the data into the text area when I click the run reports button. When I put data in the text boxes the boxes are being … | |
very new to database and mysql, i would like to know if it is possible to create a drop down box using just mysql within the database and if so how is it down. | |
Ok so my problem should have a fairly simple fix. My program takes the number of families and their income and prints the families that make less than 10% of the maximum income. Below is a sample run. Please enter the number of families: 5 Enter an income: 8500 Enter … | |
My problem is in the guessing method, I am not sure if the way I set up playing the game again works, (don't know if entering yes will work) and I'm not sure on how to call the main method to play again, and also I'm suppose to give the … | |
I'm a complete beginner to c++ so this may be a really stupid question... Basically so far i have this: [CODE]s1Textbox->AppendText( gcnew String(ss.str().c_str()));[/CODE] Obviously the text being displayed keeps appending. I looked at all of the methods for text boxes on the API but couldn't find anything to set the … | |
Hi! I am building a simple blog website and am stuck when I get to the posting comments part. I write my comment to post and when I hit post comment I get the error message: Parse error: syntax error, unexpected T_ELSE in C:\xampp\htdocs\simple_blog\inc\update.inc.php on line 90 Here is my … ![]() | |
i have written a code on assembler... when we enter the mnemonics it will give opcode... when i use %x in the printf it is giving correct opcode.. but when i use %c or %s it is printing some different characters.. but what i want is if i use %s … | |
![]() | Hi, I really need help with my c++ assignments. Thank's to everyone who can help! Create a grading program that reads a file exam grades and computes the Average grade and the letter grade for each of 5 students. Each student has 4 exam grades. Letter grade: A => 90 … |
No I know that in order to compare a String you have to call its method .equals but how I check if a String is NOT equal to something? Will it be something like if ("hello" != String.equal())?? or is there a special method? I know I'm being dumb here … | |
I'm getting Error: `<identifier>` expected and not sure why, any tips? public class BioCalc { // instance variables private Date myToday;//Date object today private Date myBday;//Date object birthday private int myDaysAlive;//birthday-today private final int PCYCLE=23;//physical length private final int ECYCLE=28;//emotional length private final int ICYCLE=33;//intellectual length /** * Constructor for … | |
[CODE] package primecdesc; import java.util.Scanner; public class Primecdesc { public static void main(String[] args) { Scanner myScanner = new Scanner (System.in); int a,b=0,ctr=0, ktr=1; System.out.print("Enter a number: "); a = myScanner.nextInt(); while(b>=1001) { if (a%b==0) b++; ctr--; } /*for(b=1;b<=1001;b++) { if(a%b==0) ctr--; }*/ if(ctr==1) { System.out.println(a + " is a … | |
Hello. I'm attempting to start a Caesar cipher program and can't get the program to display the output key[1]. Here is my code: [CODE]import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Caesar { private String[] key = new String[26]; public static void main(String[] args){ Scanner kbd = new Scanner(System.in); String … | |
[B][/B]char c "GATE2011"; char *p =c; printf "%s", p+p 3 p 1 ;   = [B][/B] the output is 2011 can any one explain how? | |
Hi, I have a rather simple problem, and I hope the solution is just as simple, but I just can't seem to find anything about this specific situation on the internet. I created [URL="http://www.bosal.rs/dizajnirajte"]this web application[/URL] which allows for custom door creation. What I would like to do is to … | |
I am trying to code the hangman game.. i have the game running but i need to attach it to graphics.py. please help it needs to be done by midnight. here is my code so far the last parts just the ideas to atach it to graphics. [CODE]from graphics import* … | |
Help with this code, I have to do a cafeteria survey with 20 students, see code and errors I get, thanks Dim studentRate(20) As Integer Dim counter As Integer Dim starCounter As Integer Dim frequencies(20) As String Dim phrase As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As … | |
So the teacher told me to combine the two functions from the first code and i tried but it wont give me the correct answers. I cant seem to find the problem on it.. I cant seem to call the function on the second code.. thanks in advance. [CODE] #include … | |
Can anyone develop the Ideal height calculator with following specifications? The picture of required software is attached Write the ideal weight calculator so that height in inches is entered by using a slider. Use the approximate formula: W = H2 / 30 , for female W = H2 / 28 … | |
I have a sql query with that adds numerical values from different table to find total for a shipment. When I execute this query, it works fine for the first record but rest of the records show null value when I know there are records present. SQL pros please take … | |
i am trying to put this together so it opens a file sorts the data saves a file and appends a file i have got my self so confused. can any one help???? this is the code Ive got so far. [code]import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import … | |
Is it pasible to find all occurrences of strings "North" and "North-East" in some txt file and save number of occurrences in some variable?? | |
Hi everyone I have an exam coming up soon, and now is the time for review. I have some questions regarding this review, I will only ask the ones I am so unclear about. [CODE]How many times will the following do-while loop be executed? int x = 11; do { … | |
[CODE]public List<EventEntity> GetCurrentUpComingEventsByEstate(string estName) { EventDBModelDataContext context = new EventDBModelDataContext(); var res = from e in context.EventEntities where e.estateName==estName && e.eventDate >= DateTime.Now select e; return res.ToList(); } [/CODE] [CODE] [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetCurrentUpComingEventsByEstate?estateName={estName}", RequestFormat = WebMessageFormat.Xml, ResponseFormat = WebMessageFormat.Xml)] List<EventEntity> GetCurrentUpComingEventsByEstate(string estName); [/CODE] Hi guys, may … | |
hi guy's i need some help. my project is an ATM simulator, to handle screen design i used panel for withdrawal, pin verification, balance etc. to explain further i have 1 panel for withdrawal a panel for pin verification etc. now idont know how to control those panel like if … | |
Hi! I have to write something like a multisim-like ([URL="http://www.ni.com/multisim/whatis.htm"]http://www.ni.com/multisim/whatis.htm[/URL]) software in VB.NET. My task is to make several custom controls, which the user can combine in order to create a circuit and test it after that. The problem is that I don't know how to make a control, looking … | |
Hi, ive been trying to get this code to work, but the calculations just doesnt work. it gives me something like 1de00067 something like that. I seriously dont see the error :/ Any help is appreciated. P.S. is it something about: "Initializing the lenth and the width?" i dont remember … | |
Hello, so I recently started reading on arrays and I have an assignment to make a program that removes the necessary elements from an array of integers so that the array consists only of increasing integers, for example, transform {2,3,5,1,6,2,3} to {2,3,5,6}. Now, I do not know of any possible … | |
I want to develop report engine in C++. Frankly I don't know any thing now about reporting engine. I know some of C++ features only (up to File handling). Can anyone guide me to develop report engine in C++? My display engine will ask my report engine to send some … | |
Could you please help me on this. i tried but i am getting segmantation fault. void qsort(char *v[], int left, int right){ int i, last; void swap(char *v[],int i,int j); if(left>=right) return ; swap(v,left,(left+right)/2); last = left; for(i=left+1;i<=right;i++) if(strcmp(v,v)<0) swap(v,++last,i); swap(v,left,last); qsort(v,left,last-1); qsort(v,last+1,right); } void swap(char *v[],int i,int j){ '... … | |
According to "modern c++ design", "effective c++", boost and loki. I believe that policy based design is very powerful(not mentioning about TMP yet). The idea of policy is pretty straight forward and easy, you don't need to be a template wizard or know TMP very well before you could use … | |
Hi I am doing an assignment and my professor gave us the code for a copy function for a doubly linked list. The function should copy list into another empty list and if the list being copied is empty it should just return and exit. Here is the code my … | |
We are developing a email web site.but we are facing problem in receiving and validating the mail.i have the following doubts.can you please help me in clarifying these??? one more important thing is we are not using squrrelmail, qmail etc. how do we receive emails for users in email web … | |
Hi guys, I've got the following, very basic, working DHTML; [CODE] <HTML> <HEAD> <SCRIPT TYPE="TEXT/JAVASCRIPT"> function setup(ans) { lit = '' if (ans == 'anim') { lit = '<br><br>How many legs? ' lit = lit + '<SELECT NAME="q2" ONCHANGE="alert(document.quest.q2.value)">' lit = lit + '<OPTION VALUE="">- Please select -</OPTION>' lit = … | |
please tell me how to remove the error of iota undeclared as shown in attachment file | |
i studied c++ before c guess that was my mistake... i try to read from a file a set of strings and put them in the new allocated array, i do not understand what is the main thing this code isnt working. i get segmentation fault... and even trying to … |
The End.