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 Toni_7

i have 2 sperate projects which i am trying to run together as a shared project but i am failing hard……. Basically, first project does infix to postfix notation and the second projects does postfix evaluation. tried to run all that in 1 project but i keep getting all sorts …

Computer Science c++
Member Avatar for Toni_7
0
726
Member Avatar for Toni_7

Hello, I am building a calculator in c++ windows application form, i want the calculator to handle multiple operator precedence (for example, 2+4*5/3). but i am not sure how to write the following code on my windows form project. Any suggestions would appreciated . #include <iostream> #include <conio.h> using namespace …

Computer Science c++
Member Avatar for rproffitt
0
2K
Member Avatar for Ojelabi

Please i need your suggestions on how to design a system that will diagnose malaria or typhoid by accessing a number of symptoms.

Computer Science c++
Member Avatar for Ojelabi
0
816
Member Avatar for shameen_1

I am trying to understand leader clustering algorithm and overlapping clustering algorithm , but not able to get proper documents and explanations. Can someone please help me understand these clustering algorithms that what are the key differences between both (leader clustering and overlapping clustering) algorithms, and if applicable, which algorithm …

Computer Science algorithm-pseudocode
Member Avatar for JamesCherrill
0
445
Member Avatar for rahulrajcse

How to solve monkey and banana problem using best-first search algorithm? Anyone having ideas? I know we have to choose a heuristic function 'h(n)' for performing distance related calculations. But can anyone elaborate this problem ? (algorithm and complexity analysis much appreciated)

Computer Science algorithm-pseudocode
Member Avatar for Adarsh_4
0
6K
Member Avatar for Mar. Na.

https://stackoverflow.com/questions/49183518/independent-paths-of-power-number

Member Avatar for Mar. Na.
-3
353
Member Avatar for Blank_1

Hello, I'm trying to create a character array that would find the absolute value of each value. Ex. Candadite: 111111 / Target: 444444. abs(1-4)(1-4)(1-4)(1-4)(1-4)(1-4) answer: 333333. I have the code running, but I get a consistant answer of 700, even when I move to a new Target set. If anyone …

Computer Science c++
Member Avatar for kes166
0
685
Member Avatar for Member #1144325

Hello. I got one question, when i want to streamplot this, i got eror: "raise ValueError("The columns of 'y' must be equal")", i can't figure it out. :/ Thank you for your time. this is entire code: import matplotlib.pyplot as plt import numpy as np # discretization of domain x_start, …

Computer Science python
Member Avatar for rproffitt
0
445
Member Avatar for Member #1144158

Im not really familiar with this kind stuff I really need help with this: develop an algorithm pseudo-code that will accept the names of each sales staff members and their total sales for the month. The algorithm must calculate the commission at 4 % of their total sales amount. It …

Computer Science algorithm-pseudocode python
Member Avatar for john_111
0
402
Member Avatar for RafaelNinja13

I am supposed to write a program that takes a person's whole name and returns the name's numerical value. The numerical value is found by the values of the letters in the name (with a=1, b=2...z=26). This is what I have so far: def main (): name = input("What is …

Computer Science python
Member Avatar for woooee
0
2K
Member Avatar for sahilmohile15

Hello, I am confused when we have array in python why should we use set or lists they work almost similarly right? and array are bit faster that lists. I am using numpy arrays but a friend of mine uses sets and lists. I am confused please explain what to …

Computer Science python
Member Avatar for JasonHippy
0
334
Member Avatar for Ashwini_6

Want to clear how to write a program to store the given telephone details in dictionary and print all the number whose name starts with e. Data =('Einstein':1234567896),('newton':2478965782),('Alexander':9876543216)

Computer Science python
Member Avatar for sahilmohile15
0
248
Member Avatar for Rose Aashii

Plz tell me how I would calculate time complexity of the program: int i = N; while (i > 0) { int Sum = 0; int j; for (j = 0; j < i; j++) Sum++; cout << Sum << endl; i--; } thnx in advance

Computer Science algorithm-pseudocode
Member Avatar for Ali_84
0
2K
Member Avatar for dpaula

i am doing a project, its a database system and i need to use fingerprint scanner.i am using php and i am new to it. is ther a way that i can use fingerprint scanner?

Computer Science php
Member Avatar for Sunil_24
0
9K
Member Avatar for Usama_9

I declare an integer and input value from user when i check this program i give the value 40,000 its a overflow but program generate no any type of error why?

Computer Science c++
Member Avatar for JamesCherrill
0
285
Member Avatar for Jack_30

I need a function that will create and store usernames and passwords for different students. Their programme should ask the user for their name and age and a username should be created, consisted of their name and age eg. Jack16. They then can make up their own password which then …

Computer Science python
Member Avatar for benanamen
0
593
Member Avatar for send_1

Hi everyone! Please help me to find a thesis title that should be related in computer science about the theory. Your suggestion is very helpful for me since I will be graduating in senior highschool PS: any suggestions would do :)

Computer Science off-topic
Member Avatar for Reverend Jim
-2
276
Member Avatar for KING_9
Member Avatar for Anil2447

Hi...! In Design of Algorithm. I think it is used to calculate the time complexity.... What is meant by STEP-COUNT METHOD? What is the procedure in that to calculate? I want brief explination. ....

Computer Science algorithm-pseudocode
Member Avatar for arina_1
1
15K
Member Avatar for Mario_6

I was making this score calculator to take user input so they can add as many numbers as they want, entering the score works fine and so does adding, displaying the score total, displaying the score count, displaying the average, the last thing I have to do is find the …

Computer Science .net:c#
Member Avatar for peter_62
0
410
Member Avatar for Stefce

Hello all, is there some python code or program to crawl instagram? I would like to get the user Username, Bio and 5-6 random pics. - Thank you

Computer Science python seo
Member Avatar for peter_62
0
693
Member Avatar for Dhelandel

Is it possible to integrate Perfect Circles of the Golden ratio geometry in designing logo based on these link ( https://goo.gl/images/7eYZoG ) to recognize flower.. What do you think guys? Im planning to have a research on this.

Computer Science computer-vision python
Member Avatar for rproffitt
0
318
Member Avatar for musa B

I'm a master's student preparing for my master thesis I'm interrsting to be software engineer I need help for topics that will reflect my dream goal as software engineer although my supervisor gave my task to write proposal in natural language processing I dont know if is a good area …

Member Avatar for Reverend Jim
0
440
Member Avatar for Curious Gorge

Hey so I am trying to finish up a lab that I did not finish during a class this summer. The goal is to have the computer navigate an ASCII maze on its own. We use left/right hand rule to find our way through the maze. IE. you have your …

Computer Science data-structure java linked-list
Member Avatar for JamesCherrill
0
691
Member Avatar for Lebohang_1

Hi, I'm trying to convert the timebetween into a decimal, so i can calculate salary. `var TLogIn: TextFile; sLine, sTIn, sTOut,sUser,sTimeOut,sTimeIn,YourHMStr: string; iPosHash, iPosComma, iLength, iTimeIn,iTOut, iWage,iTimeOut:integer; TimeOut,dtDiff,TimeIn:TTime; rTime: real; d1, d2 : TDatetime; Begin //d2 := StrToTime(time()); TimeOut:= Time(); AssignFile(TLogIn,'LogInTime.txt'); reset(TLogIn); while NOT eof(TLogIn) do begin Readln(TLogIn,sLine); iPosHash:= Pos('#',sLine); …

Computer Science pascal python
Member Avatar for Bhavik_3
1
224
Member Avatar for happygeek

What has Schrodinger got to do with the complex and paradoxical concept of quantum computing? The answer is that both Erwin and his hypothetical cat relate directly to this subatomic world. In fact, Schrodinger is often referred to as the father of quantum mechanics. ## Erwin who? ## [Erwin Schrodinger](https://en.wikipedia.org/wiki/Erwin_Schr%C3%B6dinger) …

Computer Science encryption
Member Avatar for dkary555
4
2K
Member Avatar for Haranadh

I would like to know Which are the python data structures uses divide and concur algorithm? Please explain me?

Computer Science data-structure python
Member Avatar for rproffitt
0
353
Member Avatar for gajen007

Hi Friends, Recently I've experienced an issue in my (following) code. I've designed an array-stack and checked the values pushed in to it. It works well when pushing but when popping it doesn't display the whole popped values. E.g: If I pushed the values "zero to nine" in to the …

Computer Science c
Member Avatar for rproffitt
0
354
Member Avatar for secrect

i get this error when i try executing it, no match for the operator == now i understand you can't compare a string with a char, so i tried other method like strcmp, covert a to char, but none worked. note: coverting d to string is not an option. #include …

Computer Science c++ daniweb-bug
Member Avatar for AssertNull
0
428
Member Avatar for CS_GUY1234

// Also attached to this question is the assignment sheet. Need help pls. import java.util.*; import java.awt.*; import java.applet.*; public class Lab15st extends Applet { private int numBars; // number of bars to be sorted private int barHeight[]; // array of bar heights private int sortDelay; // delay between comparison …

Computer Science java
Member Avatar for CS_GUY1234
0
539
Member Avatar for it@61@sec

I have an outcome (O) which could have three states: octal 4, octal 2 or octal 1. With three such outcomes I have 27 combinations. The challenge is to find an algorithm which gives me the minimum number of combinations (NK) which always gives me minimum 2 of 3 states …

Computer Science algorithm-pseudocode
Member Avatar for AssertNull
0
1K
Member Avatar for CS_GUY1234

// FInished isPal but need help with other few. public class Lab14st { public static void main (String args[]) { System.out.println("Lab 14, 80 Point Version"); System.out.println(); System.out.println("The Palindrome Program"); System.out.println(); System.out.println("By: Arjun Desai"); // Substitute your own name here. System.out.println("\n===========================\n"); boolean finished = false; do { System.out.print("Enter a string ===>> …

Computer Science java
Member Avatar for rproffitt
0
385
Member Avatar for omprakash_1

# Split a dataset based on an attribute and an attribute value def t_split(x, y, z): l, r = list(), list() for row in z: if row[x] < y: l.append(row) else: r.append(row) return l, r # Calculate the Gini index for a split dataset def gini_index(grp, class_values): gini = 0.0 …

Computer Science java python
Member Avatar for rproffitt
0
339
Member Avatar for Sabik

I want to do a software project regarding barcode scanning. Basically I want to take an image of a 1D barcode then process the picture file and Decode the barcode.I am not a great programmer but I know the basics. I want to develop my skills through it. I want …

Computer Science c++ computer-vision java
Member Avatar for vini_1
1
406
Member Avatar for rupali

How to calculate time complexity of any algorithm or program .... need help on this..

Computer Science algorithm-pseudocode
Member Avatar for jamie_13
2
50K
Member Avatar for Noname_1

Hi all, I have to solve a tripple sudoku. The program is supposed to solve the enlarged sudoku. We load 21 rows, each with 9 integers in the range <0.9>. Rows 1-9 (numbered so that the first line is numbered 1, etc.), 7-15 and 13-21 are to create a classic …

Computer Science algorithm-pseudocode c++
Member Avatar for Reverend Jim
0
525
Member Avatar for Curious Gorge

So I have a phone screening for an intern position coming up on Wednesday. I had a moment this weekend when I realized that I know more about procedural programming (and problem solving) than I do about OOP, though I do consider myself a strong programmer. For someone who has …

Computer Science object-oriented-programming
Member Avatar for AssertNull
0
315
Member Avatar for Naveen_20

I was just wondering if there are any books to learn how to analyze and debugging code of any programming language in general Thanks in advance for the help

Computer Science off-topic
Member Avatar for ddanbe
0
345
Member Avatar for noname_5

Hi there, I am stuck with a problem, and don't know where to start. I need to calculate the closest pair of points on the Earth using a divide and conquer method. I know I should calculate the orthodromic distance (or in other words the great-circle distance) but I don't …

Computer Science algorithm-pseudocode c++
Member Avatar for AssertNull
0
987
Member Avatar for Sherwin_4

Below is my code: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> using namespace std; ///////////////////////////////////////////////////////////////////////// /* // struct Edge // Represent one edge in the graph. Fields contain // two vertex numbers and a weight. */ struct Edge { int vertex_1, vertex_2, weight; }; //////////////////////////////////////////////////////////////////////// /* // struct Graph …

Computer Science c++
Member Avatar for Seif_2
0
405
Member Avatar for nadiam

Hello. I'm taking subject compiler construction. and there is a question and the answer that i don't anderstand. if it was digit -> [0 - 9] then it would be ->0->1->2->3->4->5->6->7->8->9 final state digits -> digit+ then it would be ->digit->digit->digit loop final state but this question i dont understand …

Computer Science
Member Avatar for rubberman
0
498
Member Avatar for Sam_20

Hello, I have to create a program that uses the ‘new’ operator to create a dynamic array in heap of the program. The program creates and populates its dynamic array one (int) elements at a time for each input data (cin). Key parts of the assignment. Hello, I have to …

Computer Science c++ microsoft:visual-studio
Member Avatar for rubberman
0
423
Member Avatar for moin ali khan

In a system implementing paged segmentation, the size of logical address is 42-bit where aprocess can have maximum 128 segments and the page size is 512-bytes. Page table entry size is 4-Byte. Physical address space of the system is 128KB. Compute : i.Maximum number of pages per process ii.Size of …

Computer Science operating-system
Member Avatar for rproffitt
0
307
Member Avatar for Dhelandel

How to implement bucket sort in C using Linkedlist.. Or any weblinks please share...

Computer Science c data-structure
Member Avatar for JamesCherrill
0
288
Member Avatar for nadiam

Hi. I have this Semantic Network exercise with no answer and i just want to check if i am correct. Please check this image: http://imgur.com/a/iC0dW The exercise: Kassim is a 45 year old man who has 2 wives and 7 kids. He workds as a surgeon in a private hospital …

Computer Science data-structure
Member Avatar for nadiam
0
211
Member Avatar for kes166

Hello, I've been working on learning VBScript to make a few useful scripts to work with WinNT and make a more user friendly interface when searching for users on a domain. While doing so, I discovered something interesting about arrays and I'm hoping someone could explain if it's just the …

Computer Science visual-basic:vbscript
Member Avatar for Reverend Jim
0
340
Member Avatar for Jeah_1

Help me create a code that will ask the user the guess the randomly generated integer by the computer using recursive function. Thanks!

Computer Science python
Member Avatar for slate
0
190
Member Avatar for Eugene_8

hi guys im new to c++ can i have some assist ? The manager of a football stadium wants you to write a program that calculates the total ticket sales after each game. There are four types of tickets box, sideline, premium, and general admission. After each game, data is …

Computer Science c++
Member Avatar for rproffitt
0
639
Member Avatar for komal_5

write an assembly language code that will: Read a character (ASCII code) from keyboard using a BIOS interrupt. then have to print that ASCII character in binary number system using DOS interrupt. and have to invert that ASCII code and have to transmit it to a parallel port using a …

Computer Science assembly
Member Avatar for rproffitt
0
195
Member Avatar for DeanMSands3

Hi, Daniweb. I have this hobby project I'm playing with where I need to generate data for a MonteCarlo simulation. The data needs to fit within a bell-curve around a given mean with a standard-deviation. I'm trying to figure out which random distribution system I need to use and how …

Computer Science c++ mathematics
Member Avatar for DeanMSands3
0
428

The End.