Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~3K People Reached
Favorite Tags
Member Avatar for faizlo

I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That …

Member Avatar for Gribouillis
0
268
Member Avatar for Violet_82

Hello, me again :-). This time I need to build a small calculator-like GUI, like this: ![3c9bdedf8ee9380da461586266ce3130](/attachments/large/2/3c9bdedf8ee9380da461586266ce3130.png "3c9bdedf8ee9380da461586266ce3130") This time I thought I'd ask a few questions before I start building it! 1)In terms of layout, I was thinking to use the GridLayout again: one for the text field and …

Member Avatar for Violet_82
0
3K
Member Avatar for faizlo

Hi all I am currently learning Java (and Fortran!) on my own. I have written the following code but for some reason it does not work as it should import javax.swing.JOptionPane; class evenOdd { public static void main(String[] args) { String number, ans; int num; do { number = JOptionPane.showInputDialog(null, …

Member Avatar for JamesCherrill
0
207
Member Avatar for faizlo

Hi, I am writing a C++ code that draws a sine curve. The code is fine, but when I run it (the compiled output) I get strange characters for both x- and y- axis. They look like a small oval with a question mark in it. I tried to run …

Member Avatar for ovidiu_b13
0
129
Member Avatar for faizlo

Hi, I am doing a C++ self-study and I got stuck with this problem. I want to have a code that asks the suer to enter two numbers and then it lists the numbers between these two numbers. It has also to print a message if these two numbers are …

Member Avatar for winrycool1
0
160