Our Computer Science forum is the place for Q&A-style discussions related to software design and schema, mathematical theory, and algorithms.

1,077 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for Geanna Afera

public class BusPayment extends JFrame{ private JButton paynow; private JButton cancel; private JComboBox<String> jComboBox1; private JFrame frame; private JLabel label1, label2, label3, label4; private JPanel panel1, panel2,panel3; private JRadioButton destination1; private JRadioButton destination2; private JRadioButton destination3; private JRadioButton destination4; private JRadioButton destination5; private JRadioButton destination6; private JComboBox company; private JTextField …

Computer Science java user-interface:gui
Member Avatar for John_165
0
379
Member Avatar for Yakob Tamrat

Can any one give me snippt code for single, double and single circular linked list.

Computer Science c++ linked-list
Member Avatar for Reverend Jim
0
414
Member Avatar for Deep_9

hi all i am making a weather data program and i having a problem for bringinng my text file to the table. here i am putting all my code . and i also have to import a second output window for my code. for example when ever i enter ome …

Computer Science java:swing user-interface:gui
Member Avatar for JamesCherrill
0
381
Member Avatar for Agra_1

I try to evaluate working time of Tjuring machine, but I really don't know how to do it. I try to evaluate working time of Turing machine. I understand, I have to calculate number of steps used in every stage. My problem is: how can I know, how many steps …

Member Avatar for rproffitt
0
357
Member Avatar for GeorgeMendes

So the the longest time I had been struggling with popping and crackle when using HDMI audio on my GPU out to my TV. I've tried different cables, different graphics card drivers, new Windows installs, not using the nvidia HDMI audio drivers, uninstalling nvidia experience, even a new GPU, lots …

Member Avatar for happygeek
0
262
Member Avatar for Urfa2

Need help modifying this code to add to my code. My code creates a grid but does not check if a word exists or not yet. Also, it should be user interface, user types in word, and computer outputs yes or no. // C++ program to check if the word …

Computer Science c++ user-interface
Member Avatar for JamesCherrill
0
405
Member Avatar for Xozz

Hello. I have a question: I have a portable harddisc, with files on it. Now I want to encrypt a certain folder on it. It contains a couple of files which take some megs. What's the best way to do this? Thanks in advance, Leon

Computer Science encryption
Member Avatar for dave.anderton.2753
0
362
Member Avatar for Terry_12

I need help with the following: #Get information from user print("I'll help you determine how long you will need to save.") name = input("What's your name? ") item = input("What is your savings for? ") balance = float (input("OK, ", name, ". Please enter the cost of the ", item, …

Computer Science python
Member Avatar for Terry_12
0
291
Member Avatar for Meera_2

using an array as a subroutine, then checking if its in ascending order then finding the median

Computer Science assembly
Member Avatar for rproffitt
0
286
Member Avatar for guffadi

//With this method, I input a string and return an array that contains a sorted list of characters as per the frequency. Eg: If i input "apple", the out put should be p,a,l,e, How do I do this? public static ArrayList<Character> characterFreqDist(String statement) { char[] Array = statement.toCharArray(); int length …

Computer Science data-structure java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Abi_2

Hey, I am in desperate need of some assistance with this Baffles coding. I do not know where to begin and I am completely confused with the instructions https://www.daniweb.com/programming/software-development/threads/324780/baffle-game-c#js-quick-reply the link above is a link to the old thread as a reference. I am using the c++ language and the …

Computer Science c++ qt
Member Avatar for Alexander_17
1
2K
Member Avatar for Johannes_4

Hi, how do I sort the string in alphabetical order? find most occuring character("blablabla") remove most occuring("aaa") input: blablabla output: "aaa"

Computer Science java
Member Avatar for JamesCherrill
0
2K
Member Avatar for Harshali_1

Hello everyone, I am a learner, who found this helpful community where one's query is satisfied in so many great ways. I have one such query regarding Recursion. Can anyone help me to know about the effects of Recursion in Python? Does it cause any trouble?

Computer Science python
Member Avatar for sritaa
0
536
Member Avatar for overwraith

How do I start a MonoDevelop software program as a system service on Windows, Linux, and Mac? Windows appears to not have a system service setting. I have a WCF service that essentially runs from command line. Even if I have to run from command line, I will need to …

Member Avatar for RabidDog5150
1
2K
Member Avatar for Aaron_17

plz someone help me with this problem. i have uploaded the code file down Make a class fraction () with a numerator and a denominator. Create a constructor and overload some operators so that the code below can run on

Computer Science c++ microsoft:visual-studio
Member Avatar for Reverend Jim
0
399
Member Avatar for Jay_31

Hi guys, I was trying to solve my problem about polynomials in C. By multiplying by repeated addition. I hope someone can help me thanks so much.

Computer Science c
Member Avatar for rproffitt
0
381
Member Avatar for dukoolsharma

Is there any need for overloading operators in python?

Computer Science python
Member Avatar for Reverend Jim
0
372
Member Avatar for ammysh

Hi, im still new in c++ so i'm happy if anyone can help me Hi, is anyone know how to search two text file and the output will be - show which text file - line number - the word itself currently what i did is i need the user …

Computer Science c++ file-system
Member Avatar for AndrisP
0
372
Member Avatar for Mohan_1845

I couldn't install the tensorflow framework in my laptop.can anyone help me out in installing tensorflow for doing my project on deep learning techniques.

Computer Science python tensorflow
Member Avatar for rproffitt
0
361
Member Avatar for jjsulzer

Hi all, I am working on a project that should take all the data from file redirect and write them to a new file. Here is what I have: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include "node.h" #include "tree.h" #define TRUE 0 #define FALSE 1 #define stdin stdin …

Computer Science c file-system
Member Avatar for Reverend Jim
1
3K
Member Avatar for overwraith

Hello all, I was wondering if I could get some questions answered about how cupons work in the work place. I have an idea which involves creating a very flexible cupon service, but would require knowing the rudiments of how cupons work. The main question I have is how is …

Computer Science .net:c# legal python
Member Avatar for Schol-R-LEA
0
4K
Member Avatar for JasperLydia

International Journal of Computer Science & Information Technology (IJCSIT) ISSN: 0975-3826(online); 0975-4660 (Print) http://airccse.org/journal/ijcsit.html Scope & Topics The AIRCC’s International Journal of Computer Science and Information Technology (IJCSIT) is devoted to fields of Computer Science and Information Systems. The IJCSIT is a peer-reviewed scientific journal published in electronic form as …

0
352
Member Avatar for Aziz_6

why we used return0 in C++? shell we use retrun1 or retrun -1 in C++?

Computer Science c++
Member Avatar for Aziz_6
0
283
Member Avatar for dukoolsharma

In Java, is it possible to have Interface in Inner class?

Computer Science java
Member Avatar for JamesCherrill
0
315
Member Avatar for misstj555

I am currently studying for an "Associates in Computer Science" with the intention of tranfering to a four year collage to get either a "Bachelors of Computer Science" or a "Bachelor of Applied Computer Science" hopefully this spring. Before I can make a decision on which Bachelors I would like, …

Computer Science career
Member Avatar for misstj555
0
5K
Member Avatar for dukoolsharma

Why much time is needed to access an applet having swing components the first time?

Computer Science java:swing
Member Avatar for HimaniBansal
-1
326
Member Avatar for HimaniBansal
Member Avatar for vegaseat
2
2K
Member Avatar for Jibin_1

So, I have created a text file containing the following: 10001 General Electronics 500 20001 fACEBOOK 700 10002 Twitter 400 The records are stored in a struct containing an integer id, string company and integer number of shares variables. I want the user to enter a Id, say 20001, and …

Computer Science c++
0
301
Member Avatar for Sheetal_1

What is the difference between the term Shallow copy and Deep?

Computer Science python
Member Avatar for sritaa
0
367
Member Avatar for Allu peddinti

1. Ask user’s name and welcome them to the Christmas Gift Shop “Welcome to the Christmas Gift Shop! What is your name?” 2. Ask the user for how many people he/she wants to purchase Christmas gifts. “Hello <name>! How many people are you buying Christmas presents for?” 3. Ask the …

Computer Science python
Member Avatar for Reverend Jim
0
2K
Member Avatar for n00b321

In this examle in writer.c I am trying to generate symbols from a to z and then print them in uppercase in reader.c. **writer.c:** // C Program for Message Queue (Writer Process) #include <stdio.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> // structure for message queue struct mesg_buffer { long mesg_type; …

Computer Science c data-structure queue
Member Avatar for rproffitt
0
777
Member Avatar for Sheetal_1

What are the different file-processing modes with Python?

Computer Science python
Member Avatar for HimaniBansal
0
529
Member Avatar for HimaniBansal

Is it appropriate to say that a function not having a return statement is valid?

Computer Science python
Member Avatar for JamesCherrill
0
445
Member Avatar for dukoolsharma

what is the number of static init that I can have?

Computer Science java
Member Avatar for Sheetal_1
0
406
Member Avatar for Ashish Kumar_1

Create a text file (w/o using any C++ program) containing the names of students and their marks in the following format: **Ajay 350 Vijay 340** where name and marks are separated by either a space or a tab and end of line is a record separator. Write a program to …

Computer Science c++
Member Avatar for AS@daniweb.com
-2
726
Member Avatar for dukoolsharma

Why the part will not have add() and remove() ways whereas Jcomponent Have add() And Remove() ways?

Computer Science java
Member Avatar for JamesCherrill
0
373
Member Avatar for sony007

Implement an abstract class Shape with methods: getType() returns a string denoting type of a shape (point, line, polygon ..) area() returns area of the object, or -1 if the shape is concave, intersecting, or does not have an area circumreference() returns circumreference of the object position() returns center coordinates …

Computer Science c++
Member Avatar for Phil N DeBlanc
-3
525
Member Avatar for HimaniBansal

Can anyone help me with the process of making an executable python script in Unix?

Computer Science python unix
Member Avatar for woooee
0
514
Member Avatar for Sheetal_1

What function should I use to convert JSON into Python data?

Computer Science json python
Member Avatar for rproffitt
0
353
Member Avatar for Leem_1

java language (ArrayList) The Registrar Office at the university has asked you to help them write a Student Information System (SIS). The system can be used to store information about students, courses, and students' transcripts (courses already taken by a student). · Define a class called StudentType that holds information …

Computer Science java
Member Avatar for rproffitt
0
753
Member Avatar for teddy

Write a program to read 50 students’ marks, calculate and print the number of students who succeed and the number of students who failed (any marks below 40 should be considered failed).

Computer Science java
Member Avatar for jwenting
0
414
Member Avatar for peregrinepair

Hello, this is my first post. I need help with this assignment here, dont know where to begin! maybe I should use strstr()? The output needs to be what is shown at the bottom. I cant use the string class, only c-style functions. Any hints would be welcome thank you! …

Computer Science c
Member Avatar for Reverend Jim
0
373
Member Avatar for creeperdetonater

I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent …

Computer Science python:tkinter
Member Avatar for rproffitt
0
690
Member Avatar for overwraith

I would like to be able to open a port on windows programatically. I don't care whether is power shell, or something else, but I would like it to be a script that I can simply run as I install a software program. I have no experience in this area, …

Member Avatar for rproffitt
0
1K
Member Avatar for Mike_62

I am trying to implement a MIPS code that preforms unsigned integer divide but i couldn't figure out how. if D == 0, report an error and terminate. Q = 0 # Q is the quotient, initialized to zero R = 0 # R is the remainder, also initialized to …

Computer Science assembly
Member Avatar for rproffitt
0
1K
Member Avatar for Ati_1

Algorithm 1) Choose the time quantum and assign it for each process. 2) Allocate the CPU to the process according to the FCFS scheduling. 3) If (burst time of the process < time quantum).{Allocate the CPU to that process till it terminates.}Else {The process will occupy the CPU till the …

Computer Science algorithm-pseudocode c++ queue
Member Avatar for rproffitt
0
354
Member Avatar for mikeandike22

how would you start to make your own programming language.

Computer Science
Member Avatar for VEGETA_DTX
1
2K
Member Avatar for Member #1021832

Hi Guys, I am looking for career advice. I am currently pursuing my associate's degree in computer science here in Texas. And I wanted to know if you guys know how people with associate's degrees get a job. As an international student, I would like one year of work before …

Computer Science career java python
Member Avatar for rproffitt
0
463
Member Avatar for samaru

Just curious. Hehe, I was thinking about this the other day and now I'm wondering what all you fellow coders out there have done. So what's the HARDEST most complicated program you've written? It doesn't have to be efficient, heck, it can all be spaghetti code. The hardest thing I've …

Computer Science assembly pascal
Member Avatar for Fest3er
0
3K
Member Avatar for Mayank Singh

Hi all, Here is the code in c++ and i am new to coding world hence i need little help in converting this code into R #include <iostream> #include <cmath> #include <fstream> #include <string> using namespace std; int main(int argc, char *argv[]) { std::string protein; ifstream aa; aa.open("aa.txt"); //we are …

Computer Science c++
Member Avatar for rproffitt
0
355

The End.