344 Topics

Member Avatar for
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 …

Member Avatar for Reverend Jim
0
31
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

Member Avatar for rproffitt
0
149
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 …

Member Avatar for rproffitt
0
57
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!!!

Member Avatar for Naheedmir
0
85
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 …

Member Avatar for Prasad_9
0
50
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 …

Member Avatar for Juan_23
0
232
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.

Member Avatar for rproffitt
0
23
Member Avatar for John_285

i need help on : we sum the balances of all of the Accounts ?? print the total sum. print the owners of all the Accounts that have balances < 100 ? Danny is generous – and wants to deposit 72 into all accounts with balances < 100 How many …

Member Avatar for JamesCherrill
0
182
Member Avatar for Shahira_1

Write a program that asks a user for a character and then displays a message whether the parity of the character is odd or even. For calculating the parity, instead of testing the parity flag directly, use a loop that shifts each bit into the carry flag and accumulates a …

Member Avatar for rproffitt
0
33
Member Avatar for manasrathore43

Hi, I have created a two player board game url deleted - rule 2.7 Thes problem is that AI is easily beatable. I used heuristics to find best move for the AI. The rules of game are as follows 1) 9 by 9 grid is divided into 9 grids of …

Member Avatar for rproffitt
1
64
Member Avatar for juniorm_28

// This program will calculate the highest and the lowest, // variable out of a set of numbers. Also, it is going to give // the sum and the average out of this set. #include <iostream> #include <cmath> using namespace std; int main() { int number, average, amount, sum; int …

Member Avatar for Dani
0
320
Member Avatar for sky_xxxx4_

I have to make my sample run look like this . I cannot seem to get it right. Sample run Welcome to Vending Machine capable of deep frying twinkies Please insert coin: Enter D or d for Dollar Enter Q or q for Quarer Enter M or m for Dime …

Member Avatar for rproffitt
0
147
Member Avatar for mahir.1
Member Avatar for ZombieKnight93

So I have a poker type program where it should shuffle and deal a deck of cards using arrays of pointers. I have to write a function that uses a pointer(s) to determine if the hand contains an Ace. If I can understand this one, I'd be able to do …

Member Avatar for tinstaafl
0
1K
Member Avatar for gonzi.p12

hey guys, Can any body tell me how shall i start with the project. I will be using Java and C together(JNI) in netbeans for coding. I will be embedding the C code in Java(Interface). First i want to read the wav file in C and sample it and apply …

Member Avatar for iranano
0
2K
Member Avatar for SkateX

Greetings, Can anyone tell me why my loop does not actually add anything for interest? I'm thinking it is because of the way my interestRate variable is setup as a class variable (static). Here is the code snippets /**************************************************************************************** HNUnit4Ch13Investor.java xx All variables should be declared private Declare a class …

Member Avatar for SkateX
0
890
Member Avatar for SkateX

Greetings, I have been trying to figure this out for hours with no avail. Basically I need to print out user input as Initial value, ASCII(char), ASCII(int), and Hex. I can get everything to work however I am not supposed to have the char values print if its a digit, …

Member Avatar for SkateX
0
353
Member Avatar for Sherwin_4

Good morning everyone, The library will be home, 0800 till 2100. I've been working on trying my loops in my hailstone sequence into recursions. It seem recursion can easrier to do, instead of creating loops. I say seem, because now I have come to halt on my progress. The halt …

Member Avatar for JamesCherrill
0
781
Member Avatar for rhaylee

Hello! I am looking for some assistance with adding code to my program for handling non numeric data/user input, specifically letters. The program is coded in java. import java.util.*; public class AnArray { public static void main (String [] args) { // creates an array of interegers between 0 and …

Member Avatar for FC Jamison
0
381
Member Avatar for akshaydixi

im studying in class 12 and i need a project for my school assessment. im not looking for those boring library management,hotel management and stuff but something interseting which will force me to think. i know a little bit of graphics to the extent that ive made program to draw …

Member Avatar for Darackht
-2
3K
Member Avatar for SkateX

Greetings, I'm having problems with my output. Essentially I am just trying to print out any Cat who is over 3 years old and has Claws. But my output keeps printing out either nothing at all or the 3rd cat 3 times. I've struggled with this for hours trying to …

Member Avatar for JamesCherrill
0
295
Member Avatar for cufisa

I have been trying to fix this since two eeks and I have no clue what I am doing wrong. I have gotten the program to work so that it can tell if a number is prime or not, but the problem I am having is showing at the end …

Member Avatar for rajii93
0
411
Member Avatar for Szabi Zsoldos

**This is intented for learning purposes, feel free to study the code** Create a drawing that looks like this (pyramid) The number should be incremented with the modulus.

Member Avatar for Szabi Zsoldos
-1
518
Member Avatar for lfcoats

I am having a problem completing my program. I am sure it is a simple mistake. My results look something like this How many students do you have? 2 How many Exam grades do you have? 4 Enter a score for student number: 1 98 Enter a score for student …

Member Avatar for lfcoats
0
1K
Member Avatar for joseph.suanino

#include <stdio.h> #include <math.h> #include <conio.h> #include <process.h> #include <string.h> void main() { int i, n, diff; int x = rand() % 100; int bMoveHigher = 0; int bGuessedCorrectly = 0; printf("Welcome to Guess a Word Program\n"); for (i = 1; i <= 5; i++) { printf("ATTEMPT %d: Enter the …

Member Avatar for Schol-R-LEA
0
222
Member Avatar for blue_Student

Hi, i have this project where the size, 2d array of size n is scanned from a file; asks for the vertex pairs from the command prompt until the user decides to stop inputting them. There is something wrong with my code because it skips the scanning of int variables …

Member Avatar for Ancient Dragon
0
507
Member Avatar for simplysach

in my i.t lesson we were intoduced to 'raspberry pi' within 'Python' and for my homework i have to explain what we did in the lesson. It says i have to include what 'input' is when coding a programme. Please help and reply as soon as possible and keep in …

Member Avatar for Schol-R-LEA
0
321
Member Avatar for E J

Can anyone help me with this homework assignment. Im so confused!!! Create a very simple four function integer calculator with buttons for Add, Subtract, Multiply, and Divide, and with two text-type input fields. When the user enters two numbers and clicks one of the buttons, the answer is displayed where …

Member Avatar for urtrivedi
0
191
Member Avatar for theashman88

![3a451fbd93eb17f84f06c7ac648bdcab](/attachments/small/2/3a451fbd93eb17f84f06c7ac648bdcab.PNG "align-left") I need to create this program for class. I'm not looking for the answer. I'm simply confused on how to create a batch file where I input a number and it gives me an option. Would I use the IF command if so how would I do it. …

Member Avatar for brooks.johnson.54
0
371
Member Avatar for lobnaallam

****Hi everyone! I have to make a pig latin translator for cs hwk. I've made my code and everything works up until i put it together. I need to debug it, but can't figure out the if statement in the main. The assignment is "Here's how to translate the English …

Member Avatar for lobnaallam
0
1K

The End.