3,777 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for Amenda_1

Question 1: a) Determine which of the following sets have valid / invalid alphabets: Σ1 = {a, ab, b, d, ae} Σ2 = {a, ba, c, d} b) Consider Σ = {ab, baa, c, db} to find the length of the string s=abbaaabdbbaa by tokenizing. Give its reverse Rev (s). …

Computer Science engineering
Member Avatar for Dani
0
50
Member Avatar for london-G

Hello, I am not sure if this is the correct place to post this... I would like your general opinions on this: When testing a software with different functionalities, is it a good thing to state the number of test case to be prepared initially for each functions? Like we …

Computer Science
Member Avatar for phinisdo
0
234
Member Avatar for beaverseed

Any programming language or software that can help in database design and manipulation

Computer Science python
Member Avatar for rproffitt
0
44
Member Avatar for manasrathore43

21 year old female here. Just wondering if anyone can tell me their experiences please and hopefully provide some tips. I'm currently in cc right now and never heard of this major until now. I heard it is challenging, but I'm up for it! Coding definitely sounds interesting (and it …

Computer Science career
Member Avatar for Lisa_20
0
136
Member Avatar for omar90

i want write a code in C without using OpenCV library to code a Sobel operator to calculate the magnitude and direction of the gradient of an image then use pseudo color to display them using intensity for magnitude and hue for direction display input and output images

Computer Science c c++
Member Avatar for rproffitt
0
64
Member Avatar for omar90

how to write a function of image rotation by using the following f is the input image, (x0,y0) is the rotating center & a is the rotating angle. Return value is the output image (using IM & Bilinear interpolation);

Computer Science c++
Member Avatar for rproffitt
0
79
Member Avatar for omar90

how to rotate image using c-- following this byte[,] rotation(byte[,]f, float x0,float y0,float a); f is the input image, (x0,y0) is the rotating center & a is the rotating angle. Return value is the output image (using IM & Bilinear interpolation);

Computer Science c c++
Member Avatar for rproffitt
0
98
Member Avatar for Ashton21

![Screenshot_2021-10-02_134648.png](https://static.daniweb.com/attachments/4/fa8e4c345dd089410fa7414ea44ac516.png)

Computer Science c++
Member Avatar for rproffitt
-1
60
Member Avatar for Ashton21

#include <iostream> #include <cstdlib> #include <time.h> using namespace std; int main() { srand(static_cast<int>(time(0))); int secret = rand() % 10 + 1; int guess; cout << "Guess a number between 1 and 10." << endl; cin >> guess while (guess != secret) { if (guess < secret) { cout << "Too …

Computer Science c++
Member Avatar for rproffitt
0
40
Member Avatar for elissanicole

Struggle with MARIE Assembly. Needing to write a code that has x=3 and y=5, is x>y then it needs to output 1, if x<y it needs to output one, I have the start but don't know how to do if else statements in MARIE LOAD X SUBT Y SKIPCOND 800 …

Computer Science
Member Avatar for rproffitt
0
34
Member Avatar for Shubham_29

Create a class date with day, month and year as its members, Accept the date from the user and display it. Overload the increment and decrement operators for displaying the next and previous date for the given date

Computer Science c++
Member Avatar for rproffitt
0
36
Member Avatar for Rishabh_8

I have learning this from youtube,php quiz using ajax. I am facing problem when click on next button after last question it is not redirecting on final page. Please help me to fix this. I think responseText not working. Question.php page to where i display question <script type="text/javascript"> var questionno="1"; …

Computer Science php sql xml
0
92
Member Avatar for liye_wu
Member Avatar for Atahladte19

Hi Guys, Will AGI take all jobs that are currently done by humans? Maybe it will eliminate most jobs that don't have a technical background or most low-medium skilled jobs? I am not talking about A.I as it is today or ASI but in the future lets say 2060 Or …

Computer Science career
Member Avatar for JamesCherrill
0
102
Member Avatar for ajmeel

Hello everyone, Hope you are doing , I am too much confuse to buy a gaming laptop for my younger brother, Someone suggest a website like https://pcmag.com, https://cartvela.com, and Techradar but there are too much content, I can't make a decision.

Computer Science
Member Avatar for Antone_1
3
4K
Member Avatar for Mihir_2
Member Avatar for MUHAMMAD FAHAD_3
Member Avatar for DUNCAN_4

Define a class Pairs with two integer data members, f and s, where f represents the first value in the ordered pair and s represents the second value in an ordered pair. Objects of type Pairs can be used in any situation where ordered pairs are needed. This class has: …

Computer Science c++
Member Avatar for Schol-R-LEA
0
106
Member Avatar for john_326

The Question A Bank charges $10 per month plus the following cheque fees for a commercial checking account: $ 12 for each fewer than 25 cheques $ 15 each for 26-40 cheques $ 18 each for 41-59 cheques $ 20 each for 60 or more cheques The bank also charge …

Computer Science c
Member Avatar for rproffitt
0
50
Member Avatar for sravan_3

#include<bits/stdc++.h> using namespace std; struct date int day; int month; int year; int main() struct date input[5]; for(int i=0; i<5; i++) cin>>input[i].day; cin>>input[i].month; cin>>input[i].year; for (int i=0; i<4; i++) for (int j=i+1; j<5; j++) if (input[i].year > input[j].year) struct date temp = input[i]; input[i] = input[j]; input[j] = temp; else …

Computer Science c c++
Member Avatar for rproffitt
0
69
Member Avatar for Ahmed_191

#include <iostream> using namespace std; void func1(); void func2(); int count; int main() { int i; for(i=0; i<10; i++) { count = i * 2; func1(); } return 0; } void func1() { cout << "count: " << count; cout << '\n'; func2(); } void func2() { int count; for(count=0; …

Computer Science c++
Member Avatar for Schol-R-LEA
0
35
Member Avatar for Arsh_2
Member Avatar for Dani
0
658
Member Avatar for Skill_2
Member Avatar for Dani
0
79
Member Avatar for Athar_3

Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm.

Computer Science c++ java
Member Avatar for rproffitt
0
46
Member Avatar for Rober

Create the following table using SQLite database The basic building block of the system. Book: Every book will have BookID, BookTitle, Author, ISBN, Publishers. Employee : Every Employee will have EmployeeID, EmployeeName, FatherName, Designation, Salary Student: Every student will have Registration, StudentName, DOB, Program, Term Create table for issue and …

Computer Science
Member Avatar for Dani
0
47
Member Avatar for Bruno_14

Write an algorithm and draw a flowchart that will calculate the roots of quadratic equation . Consider decision structures when b2 - 4ac > 0 b2 - 4ac = 0 and b2 - 4ac < 0

Computer Science c++
Member Avatar for rproffitt
0
19
Member Avatar for eman_12

[You may use arrays] Credit Card Number Validation Payment card usage in Egypt is on a steady rise. According to the CBE report there are over 22 million active debit and credit cards in Egypt. This means that vendors accepting payments through these cards need to have a way of …

Computer Science c++ seo
Member Avatar for rproffitt
0
144
Member Avatar for Tevita
Member Avatar for Reverend Jim
-2
15
Member Avatar for nec4r

You are given a file called “std” and composed of “Number, Name, Address” fields/attributes. (You can define the type of fields by yourself) Write an algorithm that makes “insert, delete, update and retrieve”, processes on the records in the file. “Number” field is the key of each record. Here is …

Computer Science engineering
Member Avatar for rproffitt
0
58
Member Avatar for Battlecode10

I am currently creating a Hangman program using Object oriented programming in C++. I tested my words class and it runs perfectly with a sample main that I was using. The classes that I need help with are Hangman and HangmanConsole. I am not sure what to do to get …

Computer Science c++
Member Avatar for Dani
0
79
Member Avatar for Jonah_4

What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )?

Computer Science c c++ python
Member Avatar for Husoski
0
147
Member Avatar for ytgaamer

I am making a tic tac toe game, and have completed it. Now I am trying to implement a library to my code and I chose ncurses, because it seems easier to add and will allow me to change the color of the input for the game. However, I can't …

Computer Science c++
Member Avatar for rproffitt
0
148
Member Avatar for Rawad_1

Write an algorithm that find the numbers and sum of all integer between 100 and 200 which are divisible by 9.

Computer Science
Member Avatar for rproffitt
0
22
Member Avatar for Firas_5

Multiply (-17) and (-5) using Booth's algorithm

Computer Science
Member Avatar for rproffitt
0
26
Member Avatar for The_real_Aadi

Hey fellow Daniweebs, I would like to present a code to you, which seems to be not working for some reason , kindly help me name = input("Enter your name: ") age = input("Enter your age: ") if type(name) != str or type(age) != int: print("PLEASE ENTER VALID CREDNTIALS", end …

Computer Science python
Member Avatar for Reverend Jim
0
34
Member Avatar for Anant_3

#include <stdio.h> #include <stdlib.h> #include <stdbool.h> #include <time.h> #include <string.h> #define WORDS 10 #define WORDLEN 40 #define CHANCE 6 bool srand_called = false; int xrand(int x){ if (!srand_called) { srand(time(NULL) << 10); srand_called = true; } return rand() % x; } char* decode(char* code){ int x = ((strlen(code) - 3) …

Computer Science c
Member Avatar for rproffitt
0
131
Member Avatar for Prajkta_2

Create a code using python of random walk where food is placed in spots on the grid. Whenever a Walker runs into the food it eats it and reproduces

Computer Science c c++ python
Member Avatar for rproffitt
0
153
Member Avatar for mirzamoneeb0
Member Avatar for rproffitt
0
29
Member Avatar for anes1

Implement in c++  Design an invoice class that has the following fields o Name, Item id , price, quantity  Support setter and getter for price and another attribute  2 constructor default one , and another one takes all the parameters  Provide 2 function o Get total …

Computer Science c++
Member Avatar for rproffitt
0
40
Member Avatar for Katie_4

Hi I am coding a raspberry Pi to light up 5 LEDS for a binary number. I am missing some code because I am not sure what to put there, and my output is not coming out correctly. My output is below How many bits? 5 Enter the pin number …

Computer Science c engineering
Member Avatar for rproffitt
0
60
Member Avatar for Prasad_9

I want to create plugin based data visualization in c language. I just want to know how to create plugin manager in c

Computer Science c gui
Member Avatar for rproffitt
0
23
Member Avatar for user56rj

I have an assignment due for my ap computer science principals class and I have no clue on how to do it. I’m willing to pay!!!

Computer Science c++
Member Avatar for Naheedmir
0
87
Member Avatar for Lonely_2

In the program i made tried to login and it does not work i am not sure what i did wrong. [[Click Here](http://www.onlinegdb.com/B15uh6kB_)](http://www.onlinegdb.com/B15uh6kB_) #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAXUSERNAME 30 #define MAXPASSWORD 20 typedef struct { char username[MAXUSERNAME]; char password[MAXPASSWORD]; } pass; int main() { char userName[MAXUSERNAME]; char …

Computer Science c
Member Avatar for Prasad_9
0
56
Member Avatar for dltang1999

Write C++ program for Elgamal Encryption. Give the results after Run the program code.

Computer Science c++
Member Avatar for rproffitt
0
49
Member Avatar for Syed_26
Member Avatar for newnew1234

how do i skip a char in filestream? i tried the ignore function but that doesnt work in filestream, i also tried using an array[i] and said if(arr[i]=="-") then i++ while outputting but that doesnt work either

Computer Science c++
Member Avatar for rproffitt
0
77
Member Avatar for A-33 Gaurav

Selection sort uses the greedy techique, do all other sorting algorithm follow greedy technique?

Computer Science
Member Avatar for rproffitt
0
47
Member Avatar for shaista jabeen

// complete the following code. // Do not use 2-D array, such as int a[2][3]; #include <iostream> #include <stdlib.h> using namespace std; // implement the functions : add, sub, mult, transpose class Matrix { public: Matrix(int row, int col); int GetData(); Matrix Transpose(); int Display(); Matrix Multiply(Matrix b); Matrix Add(Matrix …

Computer Science c++
Member Avatar for Juan_23
0
234
Member Avatar for Lonely_2

The program should add, delete and search the report generating system Include pasword and username for teachers Must include files.

Computer Science c
Member Avatar for rproffitt
0
25
Member Avatar for asutosh_1

def findMaximumPath(mat): rows = cols = len(mat) count_list = [] for i in range(rows): summ = 0 mat_index = [rows-1, cols-1] curr_index = [0, i] summ = mat[curr_index[0]][curr_index[1]] while curr_index[0] != rows-1 and curr_index[1] != cols-1: if mat[curr_index[0]][curr_index[1]+1] > mat[curr_index[0]+1][curr_index[1]]: curr_index[1] = curr_index[1] + 1 else: curr_index[0] = curr_index[0] + …

Computer Science java python
Member Avatar for JamesCherrill
0
28

The End.