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 sharjeelmumtaz

Please don't laugh at my newbieness, this is an 11th grade CS assignment. Constructive feedback would be higly appreciated Ok, so I have an assignement due for next week. It's fairly straight forward. **Task 1** A school keeps records of the weights of each pupil. The weight, in kilograms, of …

Member Avatar for Reverend Jim
0
1K
Member Avatar for shubham_8
Member Avatar for Jemone_1

My application must let a nurse enter information for a number of patients about the patients' number of repetitions for various otherwise ordinary activities. The nurse gets a book in the format to enter the information. Month Date Day Activity Repetitions January 1 Monday brushed_teeth 9 January 1 Monday combed_hair …

Computer Science c++
Member Avatar for David W
1
397
Member Avatar for Zainab_4

Hi, I would like to know if it is technically possible to develop an automated internet search algorithm. Let me give you a random example of what I have in mind. For example, let’s say I am the largest disaster relief organization in the world and I want to run …

Member Avatar for pritaeas
0
455
Member Avatar for markdean1989

I am an aspiring (at the age of 27) programmer using C++. I have future undertakings including getting a refresher course at a premier University in my country. I am just interested to know in advance how it is to become a programmer. What are the regular routines that you …

Computer Science c++ career
Member Avatar for markdean1989
0
345
Member Avatar for cproger

I have a Combo box/Dropdown and when a user clicks an option I want the combo box to set the text onto a jTextField. For example: if(carsJComboBox.getSelectedIndex() == 0) { currentCarsJTextField.setText("250 Million"); } if(carsJComboBox.getSelectedIndex() == 1) { currentCarsJTextField.setText("500 Million"); } The problem is that when the program runs, it automatically …

Computer Science java
Member Avatar for JamesCherrill
0
343
Member Avatar for Member #1127951

Hi, I need help reading this [.csv file](https://drive.google.com/open?id=0B5UH8MuMzUBaR0FRYmhTWnNxdW8) into an array of vectors i created below: `vector<string> GID; // Vector holding Gift ID vector<string> DName; // Vector holding Donor Name vector<string> Phone; // Vector holding Phone Number vector<string> POC; // Vector holding point of contact vector<string> Item; // Vector holding …

Computer Science c++ python
Member Avatar for AssertNull
1
350
Member Avatar for Roger_2

**below is the problem i am given, after this i explain where i am at so far and the code i have created, **Write the following functions in Scheme: 1.a "digitinc4" -takes as input a 4-digit integer, and returns another 4-digit integer constructed of the original input integer's digits, each …

Computer Science lisp-scheme
Member Avatar for Taywin
0
485
Member Avatar for EVELYN_2

I am testing my program "Pats Auto Repair shop" that includes the mainform with menustrips for file, process and help, Splash form, About, Job information form and summary form. The process has two subs, job information with a separator for "summary", and summary form. I written all coding solutions for …

Computer Science .net:vb.net
Member Avatar for tinstaafl
0
302
Member Avatar for i.

I have this problem which says, "A programmer can use the random feature to emulate the flipping of a coin. For example, if the generator produces a number 0 or 1, the value 0 can be assigned heads and the value 1 can be assigned tails. Write a program that …

Computer Science algorithm-pseudocode
Member Avatar for AssertNull
0
571
Member Avatar for i.

I have a problem with my pseudocode: Declare Integer p1 Declare Integer p2 Declare Integer p3 For p1 = 1 To 3 For p2 = 65 To 66 For p3 = 6 To 8 Display p1, p2, p3 End For End For End For This would display 18 combinations. But, …

Computer Science c c++
Member Avatar for AssertNull
0
414
Member Avatar for mike_36

1. FCFS non-preemptive (results provided) 2. SJF non-preemptive 3. MLFQ

Computer Science c++
Member Avatar for happygeek
0
330
Member Avatar for i.

Hello! I am totally stuck. My assignment says, "At one college, the tuition for a full-time student is $6,000 per semester. It has been announced that the tuition will increase by 2% each year for the next five years. Design a program with a loop that displays the projected semester …

Computer Science python
Member Avatar for AssertNull
0
4K
Member Avatar for Bryan_5

I have a notepad that consist of two data which is the title and the name. I've declared the title using an enum. The enum contain this variables. enum Title {Miss, Mrs, Mr, Dr, Unknown}; Then in my structure, I attempted to call the variables from the enum like this …

Computer Science c++ data-structure
Member Avatar for tinstaafl
0
207
Member Avatar for Stefce

Hello i have list of football teams on every line is a new team but there are countries in brackets i want to remove all of them, here is a example of the list: Águila (El Salvador) Águilas (Costa Rica) Águilas Doradas (Colombia) Árabe Unido (Panama) Åtvidaberg (Sweden) Ñublense (Chile) …

Computer Science python
Member Avatar for cereal
0
407
Member Avatar for mariam_4

i should to move the biggest value to the last index in the array then to print the array. when i print it i get things like letters, smiles... what is the wrong in the code? .model small .stack 100h .data array db 3,8,5,3 n equ 4 b db dup …

Computer Science assembly
Member Avatar for rproffitt
0
302
Member Avatar for Lily_3

heyy, i'm having problems with this . can anyone help? i really need help to change this into a pseudocode. Age < 55 Male : 0% tax if annual income < 10 000, 10% tax if 10 000 ≤ annual income ≤ 50 000 20% tax if 50 000 < …

Computer Science algorithm-pseudocode
Member Avatar for FC Jamison
0
244
Member Avatar for Usman_10

Email not send .What is this error using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Net; using System.Windows.Forms; using System.Net.Mail; using System.Threading.Tasks; namespace send_email_new { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void existbutton_Click(object sender, EventArgs e) …

Computer Science .net:c# email
Member Avatar for cereal
0
150
Member Avatar for Member #1134035

I need an idea for cloud computing graduation project. I was thinking about security and encryption , but most of the ideas are more suitable for a research rather than an application, so I am thinking of making a cloud-based embedded system. What kind of embedded systems can benefit from …

Computer Science cloud-computing encryption
Member Avatar for jwenting
0
324
Member Avatar for Danny_15

Recently, I've been writing some sort of thesis. Mostly a study note, for helping me (and others) with architecting a program because all those confusing and complicated concepts. I'd like some peer reviews, because most of the material in the are based on ideas rather than practical experience.

Computer Science multithreading
Member Avatar for Danny_15
0
232
Member Avatar for Jerhica Kim

I need an idea for Optical Character Recognition for graduation project. I was thinking about enhancing algorithm used in OCR. In your idea, what algorithm can I enhance and focus with for better result of OCR softwares.

Member Avatar for rproffitt
0
263
Member Avatar for Member #1133599

Given a positive decimal number, we can convert the equivalent numbers in binary; in octal and in hexadecimal. Due to the hexadecimal numbers, it is better to use character arrays to store the various conversions. We propose the following structure to store the information of a number: Working on a …

Computer Science c++
Member Avatar for rubberman
1
238
Member Avatar for sam_21

Write a program in C++ to prepare a frequency distribution table of the percentage marks in Computer studies of sixty students, to be taken as inputs, into the following categories Category Marks(%) Fail 0-34 Pass 35-59 Good 60-79 Very Good 80 and above

Computer Science c++
Member Avatar for happygeek
-2
456
Member Avatar for Shellie_1

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. :(

Computer Science java
Member Avatar for Zycog
0
525
Member Avatar for Sourav_6

We need to select a foreign language out of German,Chinese,Japanese,Korean & French for our third semester of B.tech degree in computer Science,so which language should i choose???

Computer Science off-topic
Member Avatar for ddanbe
0
168
Member Avatar for Member #734854

Hello! I have to implement Adaptive Huffman Coding in C++. I can't find good source of knowledge about this algorithm. If someone know websites describing Adpative Huffman Coding in intelligible way, please post them. In addition, I prefer pseudocode, than steps/block scheme. Thanks in advance! PS. If I posted my …

Computer Science algorithm-pseudocode c++
Member Avatar for Zlatan25
0
3K
Member Avatar for se00an

Hello all, Inverting an upper (or lower) triangular matrix is a trivial algorithm, due to the nature of the matrix. I am having an issue getting a part of my upper-triangular matrix inversion function to work, and I would like to get it working soon for a personal project. From …

Computer Science algorithm-pseudocode c++
Member Avatar for Ivan_12
0
947
Member Avatar for vishalsingh1080

I want to learn java for competitive programming . I'm actually aware of all the great books on java like thinking in java , effective java etc. But those books are very detailed . i want to learn enough for competitive programming without going into too much of unnecessary details …

Member Avatar for AssertNull
0
774
Member Avatar for quatrosem

There is a problem of facility location that I solve with genetic algorithms. I can get good results. So I would like to compare my genetic algorithm complexity O(n^2) with the brute force algorithm. But I am not getting an answer. (n = number of individuals in my population, usually …

Computer Science algorithm-pseudocode
Member Avatar for Gribouillis
0
503
Member Avatar for williamsmith007
Member Avatar for happygeek
0
353
Member Avatar for williamsmith007

please suggest any software to create a video useing images

Computer Science multimedia video
Member Avatar for rproffitt
0
237
Member Avatar for sangatik

Design and implement an application that determines and prints the number of odd, even, and zero digits in an integer value read from the keyboard. (java) using for loop

Computer Science java
Member Avatar for AssertNull
-4
324
Member Avatar for cproger

I am writing a code for a user to choose numbers in a progress bar. For some reason the progress bar does not fill up or empty when the int progress is not exact. For example: The progress bar value is 5 at the moment. The user chooses 250 Million …

Computer Science algorithm-pseudocode java
Member Avatar for cproger
0
271
Member Avatar for Usman_9

#include<iostream> #include<stack> using namespace std; struct node #include<iostream> #include<stack> using namespace std; struct node { int data; node *left; node *right; }; class usman { private: node *root,*leaf; int count; public: usman(); //~usman(); bool input(); void call(); void preorder(); void postorder(); }; usman::usman() { root=leaf=NULL; count=0; } bool usman::input() { …

Computer Science c++
Member Avatar for rubberman
0
217
Member Avatar for Usman_9

hy ,i make binary tree,the input of binary tree in correct.but issues traversing of binary tree using stack ,because the result of traversing is wrong .please solve this issues. #include<iostream> #include<stack> using namespace std; struct node { int data; node *left; node *right; }; class usman { private: node *root,*leaf; …

Computer Science c++ data-structure
Member Avatar for rubberman
0
213
Member Avatar for DS9596

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 how to get an answer, that would be great. a: 5 b: address of location of x (0x....) c: address of …

Computer Science c++
Member Avatar for jacks009
0
350
Member Avatar for rey619

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, …

Computer Science python:tkinter
Member Avatar for Nether_1
0
2K
Member Avatar for Aries_Child

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 …

Computer Science python
Member Avatar for jacks009
0
622
Member Avatar for Adam_28

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 …

Computer Science .net:c# file-system
Member Avatar for jacks009
0
364
Member Avatar for jaiop

{ SumOddEven(A,n) //A is array and n is size of array { int count, sum; for(int i = 1; i<=n; i++) { sum_even=0; sum_odd=0; for(int j = i; j<=n; j++) { if (A[j] Mod 2 == 0) //check if number is even sum_even=sum_even+A[j] //Sum even numbers else sum_odd=sum_odd+A[j] //Sum odd …

Member Avatar for dannyniu
0
338
Member Avatar for Scott_14

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 …

Member Avatar for jacks009
0
321
Member Avatar for EB0111

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: import java.io.*; import java.math.*; import java.security.*; import java.security.interfaces.*; class generateKeyPair { public static void main(String[] array){ if …

Member Avatar for jacks009
0
313
Member Avatar for nadiam

Hello. We're going into Constructora and super, using extends, subclasses etc. I have this code: class Student { private String name; private String matric_no; public Student(String n, String m) { name = n; matric_no = m; } } class UndergradStudent extends Student { private String programme; public UndergradStudent(String n, String …

Member Avatar for jacks009
0
288
Member Avatar for Kenny_1

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 …

Computer Science c++
Member Avatar for Kenny_1
0
1K
Member Avatar for Gà_1

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 …

Computer Science algorithm-pseudocode c++
0
253
Member Avatar for rob2

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: #include <iostream> #include <cstdlib> #include <cctype> using namespace std; class list { public: list *head; // pointer …

Computer Science c++ queue
Member Avatar for Gribouillis
0
252
Member Avatar for crazyninja247

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 …

Computer Science c++
Member Avatar for rproffitt
-1
2K
Member Avatar for Muhammad Arslan_1

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.

Computer Science c++
Member Avatar for mabdullah4
0
230
Member Avatar for jodytj

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: …

Computer Science python
Member Avatar for hericles
0
812
Member Avatar for CodyOebel

// Example program #include <iostream> #include <string> int main() { int i=1; int x; x = ++i + ++i + ++i; std::cout<< x; return 0; } ////////Why am I getting 10 and not 9 ? /* if i starts at 1, increment operator takes precedence so that means 2 3 …

Computer Science c++
Member Avatar for AssertNull
0
513

The End.