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 Popy_1

#include <iostream> #include <iomanip> using namespace std; enum sizes{small, medium, large, jumbo}; sizes options(int drinkSize, int popcornSize); void printTotal(sizes price); int main() { int popcornSize, drinkSize; cout<<"Please pick the size of your popcorn: "<<endl; cout<<"1. Small"<<endl;cout<<"2. Medium"<<endl;cout<<"3. Large"<<endl;cout<<"4. Jumbo"<<endl; cin>>popcornSize; cout<<"Please pick the size of your Soda: "<<endl; cout<<"1. Small"<<endl;cout<<"2. …

Computer Science c++
Member Avatar for Popy_1
0
212
Member Avatar for jkon

Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a …

Computer Science c c++ software-architecture
Member Avatar for jkon
0
298
Member Avatar for joe97

guys i have this assignment about luhns algorithm and i cant seem to know where to start (i am very weak in functions and arrays) , if anyone can help me out with the start of the i would be very thankful then later on i will be disscussing my …

Computer Science algorithm-pseudocode c
Member Avatar for joe97
0
5K
Member Avatar for Isaac_9

Hey guys, Am Isaac from Nigeria. My final Year Project is solving timetable problem using genetic algorithm. The problem is I don't know how to accept population from my php script... Someone please help

Computer Science php
Member Avatar for Isaac_9
0
201
Member Avatar for hadisur_rahman

# How many different ranks are possible in an exam with 10 students if ties are allowed ??? #

Computer Science mathematics
Member Avatar for rproffitt
0
145
Member Avatar for nlanka

public class NaveenSingleton { private String name; private String [] names; private static NaveenSingleton uniqueInstance; private NaveenSingleton() { } public static NaveenSingleton getInstance() { if(uniqueInstance == null) { uniqueInstance = new NaveenSingleton(); } return uniqueInstance; } public void setName(String n) { name = n; //Search for duplicate name here, before …

Computer Science java
Member Avatar for nlanka
0
199
Member Avatar for Lgie

How will I determine the rep for repInvariant? and How to write an abstract function?

Computer Science
Member Avatar for darkagn
0
145
Member Avatar for katie6580

I am creating a program that takes two english words from the command line and prints one out vertical and the other horizontal and sees how many times the words cross. If they don't cross it then prints out an error message. Here is what I have so far for …

Computer Science java
Member Avatar for JamesCherrill
0
425
Member Avatar for ravi_14

**Bold Text Here**I am trying to make a generic linked list . below is the code for linkedlist . #ifndef GenericLinkedList_h #define GenericLinkedList_h #include <iostream> #include "GenericLinkNode.h" //class GenericLinkedList; template <typename T> class GenericLinkedList { private : GenericLinkNode<T> *head; public: GenericLinkedList(); void traverse(); bool isEmpty() { return head == NULL …

Computer Science c++ linked-list
0
201
Member Avatar for esoul12

Hi this is my code for computing the payment of my system, But there have a problem in my codes ? Because, there have something wrong my codes, i try to fix the error but i can't, this is the error " Conversation from type 'DBNul' to type 'Integer' is …

Member Avatar for Taywin
0
105
Member Avatar for Mayo_1

one way of finding the square root of a certain number N is by using newtons method repetedly untill the absolute value 2 successive new guess is less than 10 raise to power -6

Computer Science c++
Member Avatar for gusano79
0
168
Member Avatar for shamas195

if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x] if top=0 write:"stack is empty" else top__ push(stack,N,top,x) if top=N write:"stack is full" else settop:=top+1 set:stack top[x]

Computer Science data-structure
0
150
Member Avatar for chubbyy.putto

I know I should have try it first but I dont understand what is this asking about. My english is my very bad. Can you please telling in easy english. PLus this is very confusing. Please help me out Write a BNF grammar for the for statement of C. Assume …

Computer Science
Member Avatar for sepp2k
0
720
Member Avatar for happygeek

If you don't know who [Alan Turing](http://en.wikipedia.org/wiki/Alan_Turing) was, then shame on you. The British code breaker, mathematics genius and father of both computer science and artificial intelligence is rightly credited with helping to bring the second world war to an end. Turing was also gay, and that's where the shame …

Member Avatar for Lifei_1
8
776
Member Avatar for vegaseat

The Swift computer language is the brainchild of a number of Apple associates. In my humble opinion it shows some nice features, but also some warts. Part 1 (constants, variables, strings, tuples, arrays) explores a number of the features to give you a taste of the language. I hope I …

Computer Science ide mac-software:ios
Member Avatar for vegaseat
2
1K
Member Avatar for playagain

Please help me to build a list of examples of stack and queue in real life situation... Conditions: The object concerned must only one object. And the object must be tangible. Example: Queue (FIFO): The bullet in a machine gun..(you cannot fire 2 bullets at the same time) Stack (LIFO): …

Computer Science data-structure queue
Member Avatar for priya..
-2
12K
Member Avatar for cppgangster

Hi there, I hope I could find help about plotting graphs. My problem is I have a device which alows me collect some data and transfer it throught USB. Then I will interpret that data using c or c++. I would like to plot such data on a window on …

Computer Science c c++ data-visualization
Member Avatar for cppgangster
0
215
Member Avatar for Sphinx'LostNose

Can you use any compiler, assembler, etc to output code directly for the processor and not for an executable file specific to an OS? How do you determine if you are outputting for an executable for an OS or directly for a processor? Are the instructions/code part in an exe …

Computer Science assembly operating-system
Member Avatar for rubberman
0
248
Member Avatar for furalise

Hi I'm using C++ and have a question regarding the use of fonts in programming. What I am doing is parsing files like pdf's and other files and wanting to transfer the extracted data to another file or command line screen. I'm able to work out metrics such as character …

Computer Science c++ pdf
Member Avatar for Rashakil Fol
0
286
Member Avatar for vegaseat

Part 2 of exploring/tasting the Swift language takes a look at dictionaries; process flow controls like loops, if/else and switch/case; functions and sorting. I hope I can follow this up with part 3, a closer look at class operations.

Computer Science
Member Avatar for Lardmeister
2
547
Member Avatar for vegaseat

In part 4 of tasting Swift, we explore structures. Swift has added some interesting features to structures like defaults, methods, multiple init(). This way struct objects come close to class objects with a little less overhead. As an option, methods can be added externally too. Take a look! Down the …

Computer Science
Member Avatar for vegaseat
1
314
Member Avatar for vegaseat

Like most modern languages Swift has sets and set operations. Here is a quick look. Coming in the fall of 2015 ... Swift2 replaces println() with just print() that has a newline default. The sort of thing that Python3 did to print(). There are some other syntax changes. Good news, …

Computer Science
Member Avatar for vegaseat
1
297
Member Avatar for Mr.M

Hi Dw. Is it possible to permanently burn a file to a re-writable CD/DVD but the files bytes be able to be updates/modified while the file/Media(CD/DVD) is not formattable or the files even formatting a media be un-removed from the media? Thank you.

Computer Science storage
Member Avatar for Mr.M
0
203
Member Avatar for Siberian

I have a question about programming/scripting in general, which I'm still driving over rocky terrian trying to learn. The compiler, regardless what it is; reads though code from top to bottom, does it read though all the lines of code first, or does it stop at functions etc and continue …

Computer Science
Member Avatar for Rashakil Fol
0
364
Member Avatar for vegaseat

Part 3 of the taste of Swift explores class objects in Apple's Swift language. A class allows you to group methods (class functions) together that belong together. Class Person groups some information of people working in an office. Class Pay inherits class Person and adds pay information. Class File groups …

Computer Science mac-software:ios
Member Avatar for ddanbe
1
392
Member Avatar for ddanbe

Hi all. Would it be a good idea to have a polar coordinate class and derive from it spherical and cylindrical coordinate classes? Or should I keep 3 separate classes?

Computer Science c++ object-oriented-programming
Member Avatar for ddanbe
0
181
Member Avatar for Slavi

Hey guys, i am wondering, if you load a file in basically any language, how much memory does the file occupy. Like there's the case that usually more memory is used rather than the actual size of the file because the data of the file is mapped to data types …

Computer Science c c++
Member Avatar for vegaseat
0
128
Member Avatar for hertzzz

hi guys! Im hertz.. s computer science student from the philippines.. and this is my final year, so ive gotta start my thesis... ^^ I need ur help! Im interested in making research/implementation about mobile computing, multimedia, and Artificial Intelligence.. Im hoping that u can give me some possible thesis …

Member Avatar for Rhay_1
0
1K
Member Avatar for Zianne

Recently in an interview I was asked to design a "send invitation for an appointment to multiple contacts in a company". (Something similar to creating an Appointment in Outlook) Here is what I came up with, I would really appreciate some feedback, suggestions, questions. So, after asking few questions, the …

Computer Science database-design
0
152
Member Avatar for Elizabeth_6

I hope you can help me with the below exercise. I am trying to get through a programming class and it is getting tough,can you help? The Daily Trumpet newspaper accepts classified advertisements in 15 categories such as Apartments for Rent and Pets for Sale. Develop the logic for a …

Computer Science python
Member Avatar for vegaseat
0
207
Member Avatar for Xhesika

Will somebody please help me solve this algorithm? it says: 2+2x4+2x4x6+2x4x6x8+...+2x4x6x...x20

Computer Science algorithm-pseudocode
Member Avatar for JamesCherrill
0
174
Member Avatar for G_S

Hello everyone. I am modeling a simple dictionary application using the presentation-business logic-data layer pattern. I already have the design but am not sure it is correct: My presentatioon layer is a simple GUI where users insert their queries. They have a form for entering new words and their definitiom …

Computer Science microsoft:sql-server perl
Member Avatar for JamesCherrill
0
319
Member Avatar for mgold

I've been learning a lot about machine learning (mostly clustering and regressions), but when I've looked into programming libraries/environments, I've found "production ready" ones to be few and far between. What I mean by "production ready" is that it could be incorperated into a product, not just used a tool …

Member Avatar for thaifoodlover
0
388
Member Avatar for thaifoodlover

Dear DaniWeb community, I am not from computer science background (math guy) but I am interested in machine learning and apache mahout. I have used Mahout CLI and recently looked at development environment and wanted to ask you: while running mahout CLI, we do not have dependencies but in development …

Computer Science apache machine-learning
0
147
Member Avatar for hadisur_rahman

# Which book are best for Algorithm and Data structure #

Member Avatar for hadisur_rahman
0
145
Member Avatar for shannon_92

i am a final year computer science student and im trying to develop a voice based email system for the blind as my final year project,which means the user can operate all the functionalities of an email with voice.what i need to know is what languages should i use in …

Member Avatar for vegaseat
-1
441
Member Avatar for vegaseat

A little experiment with custom sorting the result of a word frequency count using Google's Go language.

Computer Science golang
Member Avatar for vegaseat
2
3K
Member Avatar for hefaz

Hi guys! i think this is usefull, a lot of the users have problems with .Net Framework installation, Error code: HRESULT 0xc8000222 Do these to solve: a: Click Start > Run. b: Type cmd and press Enter. Please run the following command in the opened window. net stop WuAuServ c: …

Computer Science .net microsoft:windows
1
174
Member Avatar for Summers9

I am a BTech student in Computer Science. And interested in computers, software, programming languages etc. I have learnt HTML,C,C++. But there are so many things out there....it's confusing what to learn and where. I wanna learn more and achieve more. Like really get good at it..but I lack motivation …

Computer Science c c++
Member Avatar for Transcendent
0
212
Member Avatar for Transcendent

I have a video meeting with a professor who possibility could give me an assistantship for graduate school and I need some advice. Any advice?

Computer Science off-topic video
Member Avatar for jwenting
0
119
Member Avatar for vuquanghoang

In my mind, using linked list is somehow abstract. Despite reading posts with similar topic, I still cannot understand how to apply it in to real problem. My teacher gives my this exercise. In spite of not being mandatory, I want do is to understand the problem: Addition/subtraction /multiplication.. . …

Computer Science linked-list
Member Avatar for Smita_1
0
949
Member Avatar for Baalla

What are the differences between NP vs NP-Complete vs NP-Hard ? I am aware of many resources all over the web. I'd like to read your explanations to undrestand better

Member Avatar for Schol-R-LEA
0
301
Member Avatar for vegaseat

Just a couple of number tricks to check Go's mathematical abilities. If you have more, let's show them here.

Computer Science golang mathematics
Member Avatar for vegaseat
2
473
Member Avatar for samyakonline01

Hi all I have designed a website on the java and now I am facing many problems of designing and setting the layout. So suggest me the language to be used to designe a website which is more flexible and easyly modification can be done. I selected java on the …

Computer Science java web-design
Member Avatar for vegaseat
-1
319
Member Avatar for vegaseat

The story has it that a few hundred years ago the ruler of a big country wanted to reward the creator of the chess game. The creator of the game simply wanted one grain of rice put on the first square of the chessboard, two grains on the second, then …

Computer Science golang
Member Avatar for vegaseat
2
964
Member Avatar for vegaseat

Another little adventure into Go coding. This time a slice (a Go open ended array) of structures is used as a record for some data processing. For those who miss the ; at the end of a line of code, you can use them, but the lexer of the compiler …

Computer Science golang
Member Avatar for vegaseat
1
3K
Member Avatar for vegaseat

Another translation of one of my Python snippets. This function will return a slice of consecutive prime numbers from 2 to a given value limit. In Go the 'int' type (int32) will go as high as 2147483647, but you can replace 'int' with 'uint64' and go as high as 18446744073709551615.

Computer Science golang python
1
1K
Member Avatar for vegaseat

This Go snippet calculates the minimum number of bills or coins needed for a given amount of money (change) requested. The program also gives the denomination and number. US curency is used in this example, but can be changed to another currency.

Computer Science finance golang
1
506
Member Avatar for vegaseat

Generators are rather familiar objects in Python. Generators supply data on demand. Using Go you can create a generator with a goroutine and a channel. Here the goroutine is an anonymous function within a function, simple to implement.

Computer Science golang
Member Avatar for vegaseat
0
1K
Member Avatar for vegaseat

Some folks go on vacation around the Easter holidays, so it would be nice to know when Easter happens in the years ahead. I had this as a Python snippet in my "oldies, but goodies" file and translated it to Go. It was actually quite easy in this case, and …

Computer Science golang ide
Member Avatar for vegaseat
0
996

The End.