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 vegaseat

Again, calculate the minimum number of bills or coins required for a given amount of money (change). This time we will use a Go map instead of a csv string converted to a structure.

Computer Science finance golang
0
460
Member Avatar for vegaseat

This time just a simple example of grading scores (0 - 100) with letters (A - F). Two approaches are presented, one using switch/case in an "on the fly" function, and the other uses the score as an index to a string of letters F through A.

Computer Science golang
Member Avatar for vegaseat
1
868
Member Avatar for vegaseat

Reading the content of a web page with a given URL is pretty simple with Go. Here we defer the closing of the response body (at an early point, so we won't later forget) until the program exits.

Computer Science golang http-protocol
0
22K
Member Avatar for hadisur_rahman

# Is {(1,1), (2,2), (3,3)} symmetric? transitive? Yes! Yes! ## Why is R = {(1,2), (2,3), (1,3), (2,1)} not transitive? Because (1,1) and (2,2) are missing. ## #

Computer Science mathematics
Member Avatar for sepp2k
0
179
Member Avatar for Member #690149

Aside from the Assembly Language, what is the most powerful language?

Computer Science assembly
Member Avatar for vegaseat
-1
4K
Member Avatar for vegaseat

Use Google's modern Go language (aka. golang) to convert a denary number (base 10) to a roman numeral. Just a good exercise to explore Go's map, slice, sort and for loop features. Note that in Go the **:=** is shorthand for assigning a type (by inference) and a value to …

Computer Science golang mathematics
2
635
Member Avatar for sciwizeh

I'm porting some code from a book about ray tracing from C++ to Java, because I like java better and it seems like a decent way to learn how the code works. I ported the code for the Torus Primitive and all seemed well, until I tried to view it …

Computer Science c++ java
0
392
Member Avatar for vishnus

Hello everyone, this is my first post in the community. Im doing my 3rd year in Software Engineering. We have a semester project coming up. We are 3 people in one team. I am looking for a good project idea which can be implemented by us in a time frame …

Computer Science engineering web-design
Member Avatar for Future Engr.
0
3K
Member Avatar for jemdev03

I am planning to create a program with some graphical representation of data from SQL database. What language to use to create graphs?

Member Avatar for jemdev03
0
2K
Member Avatar for Transcendent
Member Avatar for Ene Uran
0
259
Member Avatar for saifN

Hi, What is the time complixity of the following code: Can you please give rules to follow , I couldn't figure it out! func(n) s←0; for i←n to n^3 do j←1; while j < i^2 do j←j×2; s←s+j−i; return(s); Thanks

Computer Science algorithm-pseudocode
Member Avatar for Ene Uran
0
185
Member Avatar for Bartosz

How can I use maxOccurs correctly in my code ?? I am getting error of repeating child. Thank you in advance <xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> <xs:element type="nameType" name="name"/> <xs:element type="nameType" name="surname"/> <xs:element type="nameType" …

Computer Science xml
Member Avatar for rubberman
0
162
Member Avatar for Brandon_7

I've been studying computer science and computer programming for years now in high school. I've been accepted to universities that offer two different kinds of degrees. One is Computer Science and one is Software Engineering. I could go either way for which degree I get, I was just wondering if …

Computer Science engineering school-education
Member Avatar for rubberman
0
583
Member Avatar for london-G

From what I understand a DBMS is a software that manupulates a database. I am developing a retail checkout system which is link to a SQL database. Is that consideres as a DBMS?

Member Avatar for london-G
0
276
Member Avatar for Ralph_3

I need to be able to generate random graphs (both general and bipartite). I require that the generated graph have a specified number of vertices and edges (in the bipartite case the number of vertices on each side is specified). My particular problem is that I also require that the …

Member Avatar for Ralph_3
0
1K
Member Avatar for Biaa

what is the Running time of the given code? #include<stdio.h> int main(){ char str[100]; int i=0,j=-1,flag=0; printf("Enter a string: "); scanf("%s",str); while(str[++j]!='\0'); j--; while(i<j) if(str[i++] != str[j--]){ flag=1; break; } if(flag == 0) printf("The string is a palindrome"); else printf("The string is not a palindrome"); return 0; }

Computer Science algorithm-pseudocode c
Member Avatar for Schol-R-LEA
0
175
Member Avatar for Ghost0s

hey i want to start learning software engeneering from home but ihave a question should i learn to code first imean learn a language or should i start by the other theorical things (OS's,microprocessors Arch ....)

Computer Science software-architecture
Member Avatar for Ghost0s
0
223
Member Avatar for Member #46692

Hi Guys, So this thread is going to be a tutorial on cross platform GUI programming the easy way. In this tutorial I'll be exploring all Operating systems, mainly, windows 7, mac os x and the most popular linux distro at the moment (Ubuntu). However, I won't be using the …

Member Avatar for Member #46692
0
536
Member Avatar for OrangeNaa

[B]I'm totally stuck on this problem for homework::[/B] *** [I]Write pseudocode to represent the logic of a program that allows the user to enter values that represent the radius of a Circle. The Program calculates the Diameter (by multiplying the Radius by 2) and then calculates the Circumference (by multiplying …

Computer Science algorithm-pseudocode
Member Avatar for channasrey7
0
2K
Member Avatar for Tom_11

I am working on a small project, creating a calendar based booking system which includes the following features: 1) A color coded key for Booked days, Available, Partly Booked, Off Days 2) Clickable days which open up a form with available time slots 3) When time slots selected another form …

Computer Science mysql php
Member Avatar for suresh43
0
208
Member Avatar for Ghost0s

how to be good or lets say what should i do to be able to edit programs from hexadecimal

Computer Science
Member Avatar for Ghost0s
0
153
Member Avatar for Mister17

Hi, I want to learn either java, vb.net or web development. Also I want to create my own movie database. Question is what is the appropriate language to do a movie database? If you have other language in mind. please feel free to let me know and why you think …

Computer Science .net:vb.net java
Member Avatar for JamesCherrill
0
263
Member Avatar for omegaprime

I am new here. I am taking an entry-level programming class and this is my code but i wanted to know if there are any errors in this code and if there are can you please explain to me what they are. And also having problem putting in a raptor …

Computer Science python
Member Avatar for rubberman
-1
1K
Member Avatar for RikTelner

Recently I opened game with "hex editor". You know, it's kind of program for newbies that makes it able to read program in hexadecimal code and make it able to turn, or rather read code and try to reverse engineer it by turning hexa's into Assembler commands(?). And then I …

Computer Science
Member Avatar for gusano79
0
254
Member Avatar for mjsv

i need a topic proposal for my thesis.. Please give any suggestion

Computer Science off-topic
Member Avatar for Schol-R-LEA
0
91
Member Avatar for sami saba

hey there i find it difficult to write pseudocode of two stacks that sum two binary numbers and print the answer i can use a third stack for help. for example S1 is 11001110 and S2 101010 the answer will print 11111000 please help me with that

Computer Science python
Member Avatar for Taywin
0
248
Member Avatar for david.nicely.393

i have my algorithm but i can't get the flowchart to come out. Main() Declare Sticker_Price as Real Declare Discount_Percent as Real Declare Tax_Percent as Real Declare Tag_Color as Character Declare Answer as Character Declare Final_Price as Real Set Tax_ Percent = 0.07 Final_Price = 0.00 Repeat Process Get_Price(Sticker_Price) Process …

Computer Science algorithm-pseudocode c++
Member Avatar for patrick.sylvester.90
0
190
Member Avatar for rayan22

Cant calculate the weighted average score for each category and the total score for the student or assign a letter grade. package teacher_grade; import java.util.Scanner; public class teacher { public static void main (String[] args) { //Scanner objective Scanner Scanner = new Scanner (System.in); double assignmentScore; double quizScore; double midtermScore; …

Computer Science java objective-c
Member Avatar for Taywin
0
165
Member Avatar for jigglymig

This is not an assignment, teacher wants us to do this as a prereq for an assignment and his instructions are not clear enough for me to follow. I am using C: instead of E: I made the directory C:\sql and coppied the cmd.exe and pasted it. When I right …

Computer Science oracle
Member Avatar for deceptikon
0
162
Member Avatar for zeedote

Let a be any positive number. Show that a^n = o(n!). I am a beginner at this course and nead a head start. can anyone please help me solving this problem?

Computer Science mathematics
Member Avatar for sepp2k
0
234
Member Avatar for Hijaz Aslam

I just don't understand the whole concept of Boolean Algebra. Why do we use them? How do they work? And another specific question - What are canonical forms (max terms, min terms etc.). What do they do with the canonical expression?

Computer Science mathematics
Member Avatar for ddanbe
0
227
Member Avatar for Muhammad_69

i would like to know of any good revision guides for Computer science as i am in the second year of the 2 year course and really need one.

Computer Science off-topic
Member Avatar for Stuugie
0
158
Member Avatar for mvd3

I have a big dilemma, so I need some additional info. I need to choose a specialization, so I have two main candidates : Artificial Intelligence and Data Science. I like both of the degrees, but If you could help me by writting from your experience what are the positive, …

Member Avatar for kemal.eksi.7393
0
244
Member Avatar for ToucheAmore

Im new at programming i started learning Visual Basic today to start things off because i plan on going to college for this type of thing. I was just curious, which type of coding/language do you use to write and create Smart-phone apps in my case Blackberry apps. I know …

Computer Science google:android visual-basic
Member Avatar for priyaspageo
0
591
Member Avatar for wherrelz

I find a lot of students studying computer science or BSc IT who realize they have a project to submit in their final year and are clueless what to do and how to go about it. Surely there are people who can help guide in this, however a comprehensive list …

Computer Science engineering school-education
Member Avatar for wherrelz
0
223
Member Avatar for Caroline_2

Hello All, Nice to meet you all, find this website. I am just 5 weeks into my final year of my BSc Honors Degree in Computing and am rather overwhelmed by the amount of work I have to do, and the intensity and level of the assignments I have to …

Computer Science java
Member Avatar for mike_2000_17
0
193
Member Avatar for Slavi

Hey guys, i am facing a small problem here, perhaps you could give me any hints with it. In one of my courses (Program analysis) we are using a language called "The While language" , it is simplified and I think only for education purposes. I am asked to make …

Computer Science java
Member Avatar for Slavi
0
189
Member Avatar for mgold

I'd like to find an algorithm book that's either meant to be or good to use as a reference. By "reference" I mean that it contains all the basic algorithms (machine-learning algorithms especially) like QuickSort, Logistical Regression, Clustering. Preferably, including both the mathimicatical definition as well as psuedo code, or …

Computer Science algorithm-pseudocode java python
Member Avatar for StefanijaV93
0
486
Member Avatar for Member #870755

Please I need some ideas for a HCI paper I am currently working on, I am not asking for the answer but just general ideas that I can work on and further improve on my own. The topic is: Crossing: Appropriating Technologies for New Cultures • enabling people from different …

Computer Science
Member Avatar for SalmiSoft
0
186
Member Avatar for tony75

Hi I need you recommendation to know about which crypto algorithm is good for protecting files which is stored in the DropBox?

Member Avatar for tony75
0
118
Member Avatar for daino

Hi I have found several articles on the web about data compression and encoding. My interest in learning this is to decompress, compressed data in files such as PDF etc which are encoded in one way or another. I'm probably asking the wrong question here. I'm wondering how someone goes …

Computer Science pdf
Member Avatar for Ghost0s
1
220
Member Avatar for christinetom

Hi there everybody. I hope you are all well. I have a question about planning and designing computer programs. Can someone tell me how someone going about a large program would go about this. There would be allot of classes, functions, modules etc. I want to learn how to do …

Computer Science software-architecture
Member Avatar for Bunny Slimer
0
285
Member Avatar for ayfa.selina

hello friends i am doing my pre final year b.e in computer stream. i jus need some innovative ideas for my new project to be done in d following year. pls let me knw sum new ideas

Computer Science off-topic
Member Avatar for DonnSchwartz
0
222
Member Avatar for Ghost0s

Hi everybody im a little bit confused about how routers (ethernet and wireless) and data cables such as RJ45 could handle and manage the huge data and requests at same time thank u for answering ^^ !

Computer Science wifi
Member Avatar for L7Sqr
0
210
Member Avatar for Darkzero45

So, I've wanted to learn how to program for a while now. Like 10 years. I have gotten nowhere with my endeavors. I haven't been able to go to college yet(working on that for the Spring semester) and I haven't been able to teach myself how to program. I work …

Computer Science career
Member Avatar for DonnSchwartz
0
141
Member Avatar for bnscafe

Research code of conduct "cambridgekipp" An Ethical Code for Research Preamble 1. It attaches considerable importance to the maintenance of high ethical standards in the research undertaken by its academic and research staff and students, whether supported directly by it or funded from external sources. It is our obligation to …

Computer Science legal storage:data-protection
0
107
Member Avatar for christinetom

Hello there everybody.. I am just trying to understand something in relation to bitshift operations. With reference to the small program below. I have tried to keep this as simple as possible. I understand that by doing this (integer << x), a temporary variable is formed to contain the result …

Computer Science c c++
Member Avatar for rubberman
0
459
Member Avatar for Curious Gorge

So I'm taking a Public Speaking course as part of my CS program, at a community college before I head off to a large university in a year to major in Computer Science. For the first graded speech of the class I must make a speech about a "process". Since …

Computer Science algorithm-pseudocode
Member Avatar for Curious Gorge
0
272
Member Avatar for Mike Askew

Doing some revision for a university exam being sat at the end of the week. Got my head around most of the BigO stuff I think apart from calculating the BigO equations like the below. T(n) = 1000040 T(n) = 45n^2 + 3n/1000 + 18(log n) Could anyone explain the …

Member Avatar for Hiroshe
0
295
Member Avatar for BMutev

Hello people from Daniweb, nice to meet you! I am a student and registered today, but I am familiar with these type of sites. Now to the point of this post. As I stated I am student, and have an assignment for my AI discipline.(Because of some circumstances i was …

Computer Science puzzle
Member Avatar for BMutev
0
339

The End.