132,726 Archived Topics
Remove Filter ![]() | |
Silly question I am sure, and I'm almost positive I know the answer to this, but, if I have a static method that has a return type that is a non-static class type, when the static method is executing and after the method has initialized the class to return (but … Software Development | |
i need help to write a code for the folllowing question. A realtor wishes to track her commissions of house sales. The information that she collects is as follows: house address a string house type a string ( split level, bungalow, etc.) sale price a double She wishes to calculate … Software Development java | |
#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of … Software Development python | |
New concepts to be applied for this assignment Lists File input and output Exceptions Generating random numbers Debugging flags/messages (Note: style requirements from previous assignments e.g., functional decomposition must also be applied). Introduction Write a fitness simulation whereby a single runner is traveling a fixed distance. The runner only has … Software Development operating-system python | |
I'm sort of a begginer in classes. I must implement a simple problem: chosing a phone. I thought that I should make a program in which a user can select some conditions, like must have wifi or not, android or other, etc. and return a list with the phones that … | |
Write a Python program which will read data for several students from a text file and create a list of lists to store that data. The data must be read from a text file named “Lab11.txt”. Each line in the text file contains the first name, last name, techid, number … Software Development data-structure python | |
Hi, I am working on an exercise in a book and have difficulty with it. I have completed the first part of the exercise which was to create a guessing game where the the player attempts to guess a secret number randomly generated. Suggestions such as to guess Lower and … Software Development python | |
Hello everyone In my app i'm using the counter and timer, But im stuck with resetting the counter My code is: If Timer2.Enabled = True Then counter = counter + 1 Label1.Text = counter If Label1.Text = "180" Then Timer2.Enabled = false Timer3.Enabled = true End If End If End … Software Development vb.net | |
Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am … Software Development c c# c++ ios machine-learning mathematics objective-c | |
I have a created a small user interface in C++ using Graphics. Now i want to extend it. Such as i want to make it bootable, or how can it act as an Operating System? Software Development c++ operating-system user-interface | |
Hi, I was creating clone of breakout and got the game working correctly. But after setting up menu my keyboard doesnt respond anymore. But if I launch game directly without Menu class keys are working perfectly. Where the problem might be? Here is the full source code. VBreakOut.java package net.viped; … Software Development apple java java-swing macos | |
The code below compares three numbers and it prints out the Maximum and Minimum value, let me hope it will rescue somebody :) import java.util.Scanner; public class MaxMin { public static void main(String args[]) { int w,x, y; System.out.println("\n\nTHE PROGRAM BELOW CALCULATES AND OUT PUTS THE MAXIMUM AND MINIMUM OF … Software Development java | |
![]() | Hello, I need a code that will check if a certain text exist. This is how it's now: If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text + Environment.NewLine + ("It's") + DateTime.Now End If and I want to make something like this If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text … Software Development vb.net |
Hello, I'm in a pickle. (Please observe the code) In the actionPerformed method, I don't know how I can get the value of the variable 'minutes'. I can get 'hours' by e.getActionCommand(), but can't do minutes that way. I need to get both 'hours' and 'minutes' at the same action. … Software Development java java-swing | |
i am using the url = "https://prd.aps.net/cm/json/login.json?username=aps@aps.com&pass=ca4433$$&apikey=1dd80ss107s3ad9593c857cc6d14d3a3" Note:: if iam using the http as a protocol it just grab the values in a few seconds(3 to 4) but using https its a big issue around 40 sec it takes when i am calling curl_easy_perform(curl) why so? please take a part … Software Development c++ http-protocol json | |
Hello Community, I was wondering if there is a way to make a program that will copy text from an excel spreatsheet and place it in another using visualbasic.net not vba? Please Help Software Development asp.net microsoft-office office-suite vb.net | |
I am trying to read data from a file in a loop. The file looks like this: X Joe Scholtz 437-4798 A Tim Wade 768-7658 X Sara Jobs 326-7857 ! Jaynce Bee 354-8678 (The X in front is for preferred or not preferred.) I am getting the first and last … Software Development c++ file-system | |
Hello , i was kinda getting interested in a keylogger so can anyone maybe copy paste a keylogger code just an easy 1 . If you type something it just has to appear in a textbox if you can help me , please do it! thx Software Development vb.net | |
Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance Software Development c | |
hi it 's working but the Grid view not disp.lay the details Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & "Data Source=D:\Task_one_one\TaskNew\TaskNew\App_Data\db1.mdb") cn.Open() Try Dim myTable As DataTable = New DataTable("MyTable") 'Dim ds As DataSet = New DataSet myTable.Columns.Add(New DataColumn("Emp Id")) myTable.Columns.Add(New DataColumn("Start Time")) myTable.Columns.Add(New DataColumn("End Time")) myTable.Columns.Add(New DataColumn("Hours")) myTable.Columns.Add(New … Software Development dataset open-source vb.net | |
Consider the following: for (int counter = 1; counter < 1; counter -) How many times will the loop execute? Software Development java | |
I want to move/ delete not os.remove files or folder recycle bin on windows or trash in other OSes using standard lib available in python .. is it possible ? Software Development python | |
I have a Java class called Term holding polynomials like below public Term(int c, int e) throws NegativeExponent { if (e < 0) throw new NegativeExponent(); coef = c; expo = (coef == 0) ? 1 : e; } I also have an equals method in the same class like … Software Development java mathematics | |
Hey all! I'm trying to write a program that simulates a student database. From the user, it takes the number of students there are, their names, student ID's, and majors. I'm having a runtime problem with the code I have and was curious to know if anyone can help. It … Software Development c++ | |
Hi, I'm having some trouble writing a method to sort a LinkedQueue ADT. I find it difficult to keep track of the order things when sorting is concerned (ha ha ha). I'm trying to pull the values out of a Queue which store objects of type PrinterItem. Those objects in … | |
> The game of Rush Hour is played in a 6x6 grid. The goal is to drive your vehicle out of the maze as quickly as possible. You may move each vehicle one square at a time, but only in the direction (up-down or left-right) that is oriented. You may … | |
How to manipulate .doc files using c++ ??? I'm working on a project which needs this manipulation.. But, I feel that it is not possible to manipulate .doc files :/ can anyone help me out here?? Software Development c++ | |
so im trying to make a very basic multiplayer game that gets a players x y from a server then displays the player. the script works fine when there is only one user in the database but when more users are added the script wont display the right player. i … | |
Error 4 error C2504: 'CYodaGeneralAuditListCtrl' : base class undefined c:\teamyoda\mainline\yoda\accounting\yodaaccountingauditlistctrl.h 15 i am recieving this erro can any one help me in solving it Software Development c++ | |
can i make an operating system with vb.net ? Software Development operating-system vb.net | |
Here's what I'm working with. #include <windows.h> #include "iostream" void SendText(char* message, int size) { int lc=0; do{ keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_EXTENDEDKEY,0); keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_KEYUP,0); lc=lc+1; } while(lc<size); keybd_event(VK_RETURN,0,KEYEVENTF_EXTENDEDKEY,0); //Presses Return keybd_event(VK_RETURN,0,KEYEVENTF_KEYUP,0); //Presses Return } int main() { Sleep(5000); char a=98; SendText("a", strlen("a")); } I think this is a noobish question but, how would I … Software Development c++ | |
Ok, the code button is not working for me today, so I'kk be brief. This is homework, but it's been turned in and graded (A). My question is how do I make it so pressing enter clicks my button? for example: private void computeButton_Click(object sender, EventArgs e) { double hoursWorked … Software Development gui | |
![]() | Credit card numbers follow certain patterns. A credit card number must have between 13 and 19 digits. It must start with for example: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards So, this here is the code thats identify either a … |
I am making a project using hashtables. I have to use a linked list to handle duplicate hashcodes. The Objects that I am turning into hash tables are State objects with just a String name. I have debugged and tested my entire project and cannot figure out why it is … Software Development java motherboards-cpu-ram seo | |
#include "stdafx.h" #include <stdio.h> #include <math.h> #include <iostream> using namespace std; int main() { int a; int b; int c; double X1; double X2; double D; cout<<"a="; cin>>a>>endl; cout<<"b="; cin>>b>>endl; cout<<"c="; cin>>c>>endl; X1 = (-b+sqrt((b*b)-(4*a*c)))/(2(a)); X2 = (-b-sqrt((b*b)-(4*a*c)))/(2(a)); D =(b*b)-(4*a*c)); if (D >= 0) { cout<<"..."<<X1<<X2<<endl; } if (D < … Software Development c++ | |
How do you padd textboxes in cgi. I have 2 colums of textboxes but would like to more spacing in column and rows. print $q->Tr( $q->td('Semester:'), $q->td( $q->checkbox_group( -name => 'semester', -values => ['Spring 2012', 'Summer 2012', 'Fall 2013 ', 'Spring 2013', 'Summer 2013', 'Fall 2013', 'Spring 2014', 'Summer 2014'], … Software Development perl | |
* Hey ppl! i was wondering if anyone could get me started with a project in VB.NET 10. the project i wanna create is a program lik outlook 2010. its prob a long shot but i want it to be in *COMPLETELY* VB. i have VS 10 .net and u … | |
Hey Everybody! I'm totally new to this and ligit just signed up here. This is also my first post. I want to create the card game war as my first project in C#. I have Visual Studio.Net 2010 and am a total noob. plz make instructions simple. thx! Software Development c# visual-studio | |
Hi all - I need to read a text file using a scanner class that has the following format: 5 5 5 5 5 5 5 0 0 0 0 5 5 5 0 5 5 5 0 0 0 5 5 5 5 0 0 2 0 The first … Software Development file-system java | |
Rewrote this a few times heres the meat and potatoes. Has a few issues such as flashing when moving in different directions quickly. Thinking of trying to clamp a few values to try to stop the diagonal movement,flashing and smoothing out the sprite. Something along these lines might update this … | |
This script is supposed to ssh to the server, which it does and then it supposed to say "case is correct" on the name of the server that the person entered if the case is correct (upper or lowercase). However, it works except that it never returns a servername. I … Software Development shell-scripting | |
Hi, I need some help to count the number of values between some range. var listSource = new List<double>(); listSource.Add(10); listSource.Add(15); listSource.Add(22); listSource.Add(30); listSource.Add(35); listSource.Add(40); listSource.Add(42); listSource.Add(45); //number of classes -> in this case will be 3 int nClasses = Convert.ToInt16(Math.Round(Math.Sqrt(listSource.Count))); //retrieve max and min values double minValue = listSource.Min(); … Software Development | |
Hi I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently. Software Development c | |
Hi, I am creating a simple game and I my game thread and my player2 thread seem to be executing twice each time the Thread.Sleep() expires. This is the output: Starting game: Player 2 thread Game thread Starting game: Player 2 thread Game thread Player 2 thread This is the … | |
I am currently working on a program for a higher or lower card game. I have my game set up and in place, however I am having trouble keeping track of the cards that have already been drawn from the deck. I am only playing with one deck and need … Software Development vb.net | |
#include<iostream> #include<string> int strlength(&a); using namespace std; int main() { string s1,s2; cout<<"Enter the strings u want to check length::"; cin>>s1>>s2; strlength(s1); strlength(s2); return 0; } int strlength(&a) { for(int i=0;str[i]!='\0';i++) { int count++; } cout<<"The length of string is::"<<count; } Software Development c++ | |
May i know how to create textbox using code and store the design in window form, next time i open the form that must be same as previous i designed. Software Development | |
I am a beginner in C++ programming and I badly need help. I just need some tips for programming a tic tac toe game that asks the user how many times they want to play, and should track how many times they win. Also, this program should not use arrays. … Software Development c++ | |
Hello Community, I was wondering if there is a way to replace a cell value from one excel spreadsheet and save it as another spreadsheet but with the replaced cell value. Please Help Software Development microsoft-office vb.net visual-basic |
The End.