781 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for @jassmine97

hello, i barely know how to use python and i need to write a cubic spline interpolation code in python for my programming assignment . I have C++ code but i know nothing about c++ so can someone help me to convert that code to python code? this is a …

Software Development c++ python
Member Avatar for rproffitt
0
202
Member Avatar for priyamtheone

I'd like to know how the following programme on pointer written in C can be written in C#, especially how to use the keywords in the C programme like &i and \*p in C#. Please clarify. #include <stdio.h> void f(int *p, int *q) { p = q; *p = 2; …

Software Development c c# c++
Member Avatar for JamesCherrill
0
118
Member Avatar for Nymphalys08

Hi Experts, I have a question. I have an object and want to insert in a text file. Before inserting, I want to check if it is duplicate. If no duplicate is found, I will insert the object. If yes, will not insert an object? Do I need a collection …

Software Development java
Member Avatar for Naheedmir
0
49
Member Avatar for AmerJamil

i have a question that. is it not possible that main do not return any value, and the returning value of main is void, why returning value of main should always be int, when we write [code] void main() { } [/code] mostly people here on DANIWEB ask to write …

Software Development c++
Member Avatar for EricStens
0
2K
Member Avatar for vegaseat

For those who are afraid of lycanthropes and full moons, here is a way to figure out the phase of the moon.

Software Development python
Member Avatar for Sichen
2
6K
Member Avatar for oggiemc

Can someone please tell me how to send data from my program to excel. I have a loop which is iteratively printing values to the console: [code=c]printf("16 Bit:\n\n"); for (n=0;n<numberOfValues;n++){ printf("%.4x\n",rand16()); }[/code] but i need to send them to excel for analysis!! Please help

Software Development c
Member Avatar for Mohd Iszamir
0
6K
Member Avatar for Deadshot_1

Write a program that asks the user to guess the next roll of a six sided die. Each guess costs $ 1. If they guess correctly, they get $ 10.00. The player will start out with a $10.00 bank. Each time he (or she) guesses incorrectly you will subtract $1.00 …

Software Development assembly
Member Avatar for rproffitt
0
264
Member Avatar for shiv.manoj23

I have a very little approach with coding in C# in asp.net please help converting this python code into c#. # Python example - Fourier transform using numpy.fft method import numpy as np import matplotlib.pyplot as plotter # How many time points are needed i,e., Sampling Frequency samplingFrequency = 100; …

Software Development asp.net c# python
Member Avatar for rproffitt
0
202
Member Avatar for Saboor880

Hi! I have been developing and distributing Standalone Java Products in my local market for 4 years. My products include, POS Softwares for Retail and whole Sale Businesses and for Food Businesses such as Restaurants and cafes. I use Apache Derby Database which is also known as 'JavaDB' as database …

Software Development apache java
Member Avatar for Saboor880
0
187
Member Avatar for Damien_6

Hello, I hope someone can help because I am really confused :( I have some code that I am ruuning on an Arduino to start a race - Take your marks, Get set, Go - type of thing and some LED's that act in a very similar way to the …

Software Development c++
Member Avatar for Rahul_111
0
123
Member Avatar for Deadshot_1

INCLUDE asmLib.inc .data Bank DWORD 10 rNum DWORD ? welcomeMsg BYTE "Welcome to the dice guess game. it costs $1.00 to play. " , 0dh, 0ah, 0 contMsg BYTE "Would you like to continue? (y/n)", 0dh, 0ah, 0 prompt1 BYTE "Please enter your guess for the next roll. It only …

Software Development assembly
Member Avatar for rproffitt
0
113
Member Avatar for Nymphalys08

Hi, I would like to ask regarding File Handling in Java. I am creating a program for my school project and we should use file handling only (.txt) not database. When I add a product (with product code, product name, price, etc), I want to save it in a file. …

Software Development java
Member Avatar for rproffitt
0
51
Member Avatar for Ding_1

Dear friends: I need to develop a numerical computation software with a GUI interface like the attachment. I have tried tkinter package, but it seems that it can not resolve this mission. Could you please give me some suggestions about which package should i use to obtain this goal. Regards …

Software Development python
Member Avatar for Reverend Jim
0
50
Member Avatar for pags920

My assignment in my class is to create a palindrome program for any given string. The main function is supposed to call an integer function named InputString that reads the characters of length n and it needs to determine if its a non-zero length. If this is so, another function …

Software Development c++
Member Avatar for gravity_1
0
2K
Member Avatar for dearbhla_mcd

I have a form with dropdowns. Based on that form input you should be able to view the details of multiple employee's in another JSP. I cannot get this to work and when testing, the arraylist employeesList size returns zero. My code is below - can anyone see where I …

Software Development java
Member Avatar for HKold
0
298
Member Avatar for rex_2

I'm trying to convert a Java code into Python. I could adapt most of the code, however, it is difficult to me to link all the functions. The java code is used in Weka. I would like a stand-alone python code. The algorithm in the code is presented in this …

Software Development java python
Member Avatar for Reverend Jim
0
248
Member Avatar for joshi1984

hi, I got a string and it look like : "test : this is a test. for me." How can I remove the first charakters? At this example I want to remove the characters "test : ". How can I do this? I know how to delete from the end, …

Software Development vb.net visual-basic
Member Avatar for rproffitt
1
59
Member Avatar for pritaeas

I'm looking for a .NET tool/component I can use in WinForms that works like [mermaid](https://mermaid-js.github.io/mermaid/#/) but does not require a browser component. Something that generates an image is preferred.

Software Development asp.net
Member Avatar for pritaeas
0
271
Member Avatar for wandie

I used to this code for a splash screen but doesn't run. Please could someone assist. Or help with a link I can check Tkinter splash screens. [code] from Tkinter import * try: from PIL import Image, ImageTk except ImportError: import Image, ImageTk class SplashScreen(Toplevel): def __init__(self, master, image=None, timeout=1000): …

Software Development python
Member Avatar for Roja_3
0
671
Member Avatar for Xozz

Hello. I'm new to the whole Linux thing and I have something for a topic. In Windows you can produce characters with accents via a shortcut. For example: " followed by e brings forth ë. I miss this in Linux. Somebody told me that I should ask for help writing …

Software Development
Member Avatar for Xozz
0
153
Member Avatar for Tombezlar

Hi! I need a suggestion for learning Java programming in a best and easiest way.

Software Development java
Member Avatar for Reverend Jim
0
127
Member Avatar for paulinakos22

I am a beginner currently working on an assignment that has C++ open a text file containing data such as : [253, 676, 114] [527, 160, 277] [364, 193, 169] [246, 651, 378] [536, 479, 695] [569, 548, 83] [117, 387, 543] [294, 753, 702] [651, 296, 284] [600, 498, …

Software Development c++
Member Avatar for cedricowen
0
181
Member Avatar for harkw002_UniSA

Unable to open file with fstream. it always seems to jump to the else statement and gives me the error message "Error: can't open input file ". I have included in the header file [CODE]#include <iostream> #include <fstream> #include <sstream>[/CODE] and in the class file i have the following code …

Software Development c++
Member Avatar for Sandy_9
0
11K
Member Avatar for gabby_1

#include <iostream> using namespace std; int rankfun(double left, double right){ int rank; if(left < right){ rank =-1; } else if(left > right){ rank = 1; } else{ rank = 0; } return rank; } int main(){ double number1 = 1.7; double number2 = 2.3; int result; result = rankfun(number1,number2); cout …

Software Development c++
Member Avatar for Khalil Cooper
0
2K
Member Avatar for Dervish1

I'm trying to learn how to do some simple things with MFC - I'm not used to the toolkit. I want to load a png image from disk and display it at a chosen location in the program's window, but am getting a debug assertion error: atlimage.h Line: 1624 Expression: …

Software Development c++
Member Avatar for rproffitt
0
240
Member Avatar for VileMuse

I have a 2D array that displays a table of numbers ![character_classes.jpg](https://static.daniweb.com/attachments/4/11ba79ae030c495ae58da00424d49b94.jpg) I'm trying to populate a my 2D array using these coordinates. ![numbers_for_array.png](https://static.daniweb.com/attachments/4/1de60e26cac1c600e0e56ccb793db787.png) My goal is to place place the number 1 at each of the coordinates. I'm trying to use a hasNext() method to read the txt file …

Software Development
Member Avatar for JamesCherrill
0
185
Member Avatar for Luka_1

I have never learn python and i need to write one small program in it. I have C++ code so can someone convert that code to python code ? code: #include <stdio.h> int N; struct { int y, x1, x2; } platforme[100]; int spusti(double x, int y) { int rez …

Software Development c c++ python
Member Avatar for Adina_2
0
72K
Member Avatar for Phoeboo

Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@, #include<stdio.h> #include<conio.h> #include<iostream.h> float choice2(); float choice3(); float ball[11]={1000,1000,1000,1000,1000,1000,1000,1000,1000,1000,1000}; float mypin; float withdraw, deposit; int transaction, myaccount; char transaction1; main() { pin:{ system("cls"); printf("Enter pin …

Software Development c++
Member Avatar for Mexxyy028
0
6K
Member Avatar for Coder Smurf

I am very new to VB.NET. That said, I have developed a windows form that utilizes an SQL Server back end. I am developing using Visual Studio 2008 and the 3.5 Framework. The SQL server is 2005. I do not have any warnings or errors, and the project compiles without …

Software Development vb.net
Member Avatar for ngozijesus
0
1K
Member Avatar for Dimal

Hi there! This is a simple pascal program I wrote for a cashier. Please note that this is only a basic level program code and can't actually be used for commercial use. Thanks for reading!

Software Development pascal
Member Avatar for wwwalker
0
812

The End.