Forum: C++ Oct 22nd, 2008 |
| Replies: 7 Views: 1,091 I still can't get it to tell me how many terms ><
It's still saying 1 term for each approximation. |
Forum: C++ Oct 22nd, 2008 |
| Replies: 7 Views: 1,091 |
Forum: C++ Oct 22nd, 2008 |
| Replies: 7 Views: 1,091 Thanks, I didn't even realize I used multiplication in line 37. Also, how do I round off the numbers? |
Forum: C++ Oct 21st, 2008 |
| Replies: 7 Views: 1,091 I was assigned a homework project that's starting to get annoying. I can't figure out what's going wrong with it. Here's the question:
The number Pi may be calculated using the following... |
Forum: C++ Oct 10th, 2008 |
| Replies: 4 Views: 374 Thanks, those tips helped a lot :) |
Forum: C++ Oct 10th, 2008 |
| Replies: 4 Views: 374 I had to write a program that asks the user to guess a number. The program then tells if their guess is too high or too low depending on the difference between their guess and the random number. I... |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 K, class has arrived. Thanks for the help =)
I decided to use the example with the -7777 terminating value =) |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 I haven't learned arrays yet :\
And what if the user wants to input -7777 as part of the list?
I dunno what I should do with this program :\ |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 It was giving me right answers when I checked it O.o
Is something wrong with it? |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 Nvm, I was going about it wrong. I figured it out. Here's what I have:
#include <iostream>
#include <cmath>
using namespace std;
int main()
{ |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 The question states: Write a program that reads a set of integers, and then finds and prints the sum of the even and odd integers.
I'm assuming it means positive and negative integers. Any ideas? |
Forum: C++ Oct 6th, 2008 |
| Replies: 9 Views: 2,132 As a homework assignment, I was asked to write a program in C++ that calculates the sum of the even and odd integers in a list of integers given by the user. I think I'm on the right track, but I... |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 Thanks again. One of the problems I did counted as a bonus and was actually worth more than this problem. I understand the solution now, and even though I didn't answer correctly I still scored a... |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 Thanks for the help :)
I have to get to class now. |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 But what if the user enters a number with more than 3 digits?
Oh, and I haven't learned arrays yet :\ |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 Thanks for the help, but I still can't seem to grasp how to output the digits in order. I can get them to output in reverse just fine, but when I try to get them to output in order I can't seem to... |
Forum: C++ Sep 29th, 2008 |
| Replies: 4 Views: 972 Thanks for the help! The program's running properly now :) |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 |
Forum: C++ Sep 29th, 2008 |
| Replies: 4 Views: 972 Thanks, that helped a lot :)
It'll end a telephone number at the seventh digit now, but it'll continue on a new line. Here's the execution: |
Forum: C++ Sep 29th, 2008 |
| Replies: 14 Views: 2,190 I'm working on an assignment for Computer Science 121. The assignment is to write a program that prompts a user to input an integer and then outputs both the individual digits of the number and the... |
Forum: C++ Sep 29th, 2008 |
| Replies: 4 Views: 972 I'm working on this as an assignment for Computer Science 121. I thought I had the code working, but I couldn't figure out one crucial part. The assignment is to convert phrases (such as 'GET LOAN'... |