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

17 16 14 14 13 8 8 8 7 7
Member Avatar
I'm trying to Add a method to create a random size and position rectangle and add it to the Python list created in my constructor, The colour of the rectangles are based on the rainbow colours (‘red’, ‘orange’ ‘yellow’ ‘green’, ‘blue’ and ‘purple’) this is the current code I have, …
by rey619 in Computer Science ()
Member Avatar
Hello. We're going into Constructora and super, using extends, subclasses etc. I have this code: ... and there is a compilation error in the subclasses. i understand that UndergradStudent inherits the private fields of Student but cannot do anything with it because its private, would that cause the error? Could …
by nadiam in Computer Science ()
Member Avatar
Hello all hope all is well, Im new to c# and new to the site so bare with a noob :). any way I have an assignment and Im running in to a problem where I don't know how to have c# read a text file and turn the numbers …
by Adam_28 in Computer Science ()
Member Avatar
I really want to learn Java but I have no idea how to study it. I just keep reading the books yet have no idea how to program. :(
by Shellie_1 in Computer Science ()
Member Avatar
I am using Visual Studio 13 and programming in visual basic for a intro CSCi class. I need to write a program to calculate weekly pay using a textbox to enter the number of hours via click event, a listbox showing the hours entered, then a text box for hourly …
by Scott_14 in Computer Science ()
Member Avatar
Write a program to generate a pair of private and public keys. You program should also be able to encrypt and decrypt messages using the public and private keys. here is my program: ...
by EB0111 in Computer Science ()
Member Avatar
Assignment Overview1 This assignment focuses on the design, implementation and testing of a Python program which uses file processing, lists and strings to solve the problem described below. Program Specifications: The New York Times newspaper has published “best seller” lists since 1942. Book sales are tracked nationwide, leading to a …
by Aries_Child in Computer Science ()
Member Avatar
Can someone check if I got these correct please?? I'm pretty sure I missed almost half of these so I really need help on these. If someone can explain too, that would be really nice. a: 5 b: address of location of x (0x....) c: address of value x (0x...) …
by DS9596 in Computer Science ()
Member Avatar
Hi every one, I had implemented Karatsuba algorithm in C++, but I have been stuck for 2 days. First problem is the function give incorrect answer, second problem is it oftens crash when run (runtime error). I try to debug but cannot understand how it's not work. I hope someone …
by Gà_1 in Computer Science ()
Member Avatar
Test Scores #2 Modify the program of Programming Challenge 2 to allow the user to enter name-score pairs using two parralell arrays. For each student taking a test, the user types the student’s name followed by the student’s integer test score. Modify the sorting function so it takes an array …
by crazyninja247 in Computer Science ()
Member Avatar
using 'strcpy_s' error c2660
by crazyninja247 in Computer Science ()
Member Avatar
using 'strcpy_s' error c2660 ...
by crazyninja247 in Computer Science ()
Member Avatar
Hi fellas I'm reading "Teach yourself C++" book by Herbert Schildt to learn C++. there is an example in chapter 10 which is tough to me. this is the code I'm talking about: ... This is alone tough code that I've seen so far in this book. now the questions: …
by rob2 in Computer Science ()
c++
Member Avatar
so the program needs to dynamically allocate an array large enough to hold a user=defined number of test scores. once all scores are entered, the array should be passed to a function that sorts them in ascending order. another function should be called that calculates the average score. the program …
by Kenny_1 in Computer Science ()
Member Avatar
Write a program to find the integer square root of a given number.That is the largest integer whose square is less than or equal to the given number.
by Muhammad Arslan_1 in Computer Science ()
c++
Member Avatar
Need help fixing python program: I keep getting the following when I try to add students to the list: line 72, in add_student entry = students_lab10.Students(name, idn, gpa, grade, hours) NameError: name 'students_lab10' is not defined # Create a class named Student that holds the following data about a student: …
by jodytj in Computer Science ()
Member Avatar
Please see attachment. Any help is appreciated! :D
by programmer12 in Computer Science ()
Member Avatar
I wrote this code : ... Why is a 8 characters long and set to integer equal to 8, but c and d are both equal to 7, but they too are 8 characters in length ?
by CodyOebel -2 in Computer Science ()
c
Member Avatar
hello, i have this assignment but i got stuck on number 2. Question 1: Create a 3x3 array, each filled with a digit 1-9 so that the array resembles a num pad. Use for loops and construct 3 different, correct ways to print the elements of this array. Question 2: …
by paula12 in Computer Science ()
Member Avatar
... this is what i have so far but the program won't run due to an indention error or an error related to the break.
by btp06b in Computer Science ()
Member Avatar
I'm still getting one error not sure why? ... Thanks. ...
by DS9596 in Computer Science ()
Member Avatar
write a pseudocode algorithm to accept a group of numbers and print there product and average the program must end when user enter 999
by Thee Anointed -3 in Computer Science ()
Member Avatar
Hi there. I must create a NDFA which accepts the language ((0|1)(10))*. The problem is i've done only few exercises about NDFA and i'm confused. Does this language means that: 010 or 11*0 -> many times? Do you know if this one is fine?? [img= It's too difficult for me …
by kantze in Computer Science ()
Member Avatar
Another common statistical measure is the standard deviation, which provides an indication of how the indivdual values in the distribution differ from the mean. to calculate the standard dev. whose element are x1, x2.....xn you need to perform the ff steps a. calculate the mean of the distribution b. go …
by michael_51 in Computer Science ()
Member Avatar
Write a C++ program that reads in two partially filled arrays. One array contains student IDs (with int type) and the other contains GPAs (with double type). The program will sort the two arrays according to the student ID and print out the results.
by Noureldin_1 in Computer Science ()
Member Avatar
Hello to all! I had a folder named "Myprogs" in partition E, which contained more than 300 C++ programs. I don't know when, but I have permanently deleted my folder by mistake. Please tell me if there is any method by which I can recover my folder. I will be …
by Saboor Siddique -3 in Computer Science ()
Member Avatar
if you can help please text me @ ... ... if you can help please text me @ ... ...
by ravikishorerk19 in Computer Science ()
Member Avatar
I need some help with an assignment. It's already done, however my teacher made specific comments thatneeds to be addressed before I can resubmit it. - I have the wrong implementation in insertFront() and removeRear() methods. - I am missing a wrap-around in my peek() methods. - I did not …
by rhaylee in Computer Science ()
Chat Log Latest Posts