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 FilterAgain, 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.
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.
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.
# 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. ## #
Aside from the Assembly Language, what is the most powerful language?
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 …
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 …
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 …
I am planning to create a program with some graphical representation of data from SQL database. What language to use to create graphs?
What skill/languages do you need to be a data science?
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
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" …
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 …
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?
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 …
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; }
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 ....)
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 …
[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 …
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 …
how to be good or lets say what should i do to be able to edit programs from hexadecimal
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 …
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 …
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 …
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
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 …
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; …
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 …
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?
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?
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.
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, …
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 …
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 …
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 …
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 …
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 …
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 …
Hi I need you recommendation to know about which crypto algorithm is good for protecting files which is stored in the DropBox?
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 …
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 …
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
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 ^^ !
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 …
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 …
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 …
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 …
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 …
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 …
The End.