How do you add x amount of different inputs? For example, if you were to code number = input("How many numbers do you have?") for x in range(number): value = input("Insert a value:") The user would decide how many values (number) they have and what the are. I would like to add every value together. How would i do that?

Member Avatar
Member Avatar
+0 forum 1

Please help I've written this code and it works until i asked it to check if the radio buttons were checked and if none of them were checked to come up with an error alert and if one of them was checked to ask the user to confirm if it was the level they wanted. Please help!! <head> <title>Exam entry</title> <script language="javascript" type="text/javascript"> var level; result = true; msg=""; function validateForm() { var result = true; msg=""; if (document.ExamEntry.name.value=="") { msg+="You must enter your name \n"; document.ExamEntry.name.focus(); document.getElementById('name').style.color="red"; result = false; } if (document.ExamEntry.subject.value=="") { msg+="You must enter the subject …

Member Avatar
Member Avatar
+0 forum 3

Hi, Please help me with home work: c# highest and lowest value of 6 inputs.

Member Avatar
Member Avatar
+0 forum 1

Can anyone help me with this? or alter the code of mine when it comes to the user Input here's the block of code of mine [CODE]public int Remove(int i, Briefcase c[], String[] m) { int nChoice = 0; System.out.print("\tPlease remove " + i + " cases: "); nChoice = input.nextInt(); if (c[nChoice] == null) { System.out.println(); System.out .println("\tYou already entered that digit choose again\n"); Remove(i, c, m); } else { System.out.println("\tI'm " + m[nChoice] + " You just removed case # " + nChoice); System.out.println("\t|" + nChoice + "| contains $" + c[nChoice].getAmount() + "\n"); } return nChoice; }[/CODE] …

Member Avatar
Member Avatar
+0 forum 29

Hey guys, I'm new to pygame, and working on a simple educational worm game project. The idea is to display a math problem every time the worm hits the apple, and then have the student answer that math question. I can't figure out a way to get the keyboard inputs to blit to the screen in real time. For example, if I wanted "15" to display on the screen, I would want it to write the '1' and then the '5.' Anyone have ideas or helpful tips? Thanks for the help.

Member Avatar
Member Avatar
+0 forum 1

hi.. I have a form that needs 10 inputs from a user.. Now my problem is, once the user have input the 10 needed information, he/she cannot input another information and there will be a message stating that he/she cannot input the information because past information have inputed. What do I need to add to check if the user have input 10 information and can no longer input after that one.. Thanks.. :D

Member Avatar
Member Avatar
+0 forum 4

I am having trouble with my inputs. I set a border for them one class has a 1px border the other has a 2 px border. It looks fine in Chrome and I have checked everything and I don't understand because someother elements show up with a border. Is this a form issue? Will be waiting for your replies thanks in advance.

Member Avatar
Member Avatar
+0 forum 6

Hi all, Could someone help with the position of text on screen in pygame. Basic structure would look something like this below. now I like the user to input the text position starting at top left and moving 1 space at a time until end of that line then onto next line and so on until it reaches bottom right hand side. any idea on how to this would be great and not Def statement ... Thanks [CODE] # Moving Text across screen import pygame a=0 class MovingText: def __init__(self,mFont,Text,top,left,speed = 3,color = (255,255,255)): self.Text = mFont.render(Text,0,color) self.pos = [a,left] …

Member Avatar
+0 forum 0

Hi guys, Could someone help me on this, the problem is: Using array, Ask for 10 integer inputs then display the frequency distribution of the inputs. say, [B]Example Output:[/B] Enter input 1: 2 Enter input 2: 2 Enter input 3: 3 Enter input 4: 4 Enter input 5: 5 Enter input 6: 6 Enter input 7: 5 Enter input 8: 4 Enter input 9: 2 Enter input 10: 1 2s - 3 3s - 1 4s - 2 5s - 2 6s - 1 1s - 1 Here's my own code: [CODE]#include<iostream.h> #include<conio.h> void print_array(int a[], int length) { cout …

Member Avatar
Member Avatar
+0 forum 1

The End.