- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
8 Posted Topics
Hi, Im trying to filter a user number entered by the user so that it is between 3 and 31 and odd. I also want the prompt to enter the user number to loop if the user number entered does not meet the requirements. This is what i have: [code] … | |
I am trying to filter an array with different elements in using an if statement. So far i have if ( a[i] < 0.001 ) a[i] = 0 which works but i have minus values in the array which i wish to keep. Therefore it would be ideal to have … | |
Hi, Would anybody know a way to repeat a program, for example the user has reached the end and a prompt is shown on screen Would you like to try again? Press y, n. I have managed to do this using goto command but this as ive read is a … | |
Hi, I have an array with elements filled with values such as 36.0119. I am trying to find a way of rounding each value to the nearest whole number E.G. 36. To show i have attempted this i have used cout with the array and set precision which is ok … | |
Hi, I am trying to set up a program to allow the user to enter an odd number between 3 and 31. The program will then divide 360 between 1 and the user input-1. For example say the user enters 7, the program should divide 360 to each value 1, … | |
**MY QUESTION IS BASED ON A COURSEWORK** I am trying to produce a sin wave using *'s to represent sample values for 1 cycle of the wave. For example when the user enters 7 the output should look like this: .........................................................* ..........................................................................* ..........................................................................* .........................................................* .......................................* .......................................* .........................................................* please ignore the … | |
Hello, i am trying to count from 0 - 7 and storing the values in an array. I have been trying to do this solidly for 2 weeks :'( my attempt: ************************************** int a[20]; int x; for ( x=0 ; x<=7 ; x++ ) { a[1] = x; cout << … |
The End.