- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
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 … |
|
Re:
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 … |
|
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, … |
|
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 … |
|
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 … |