|
|
#76 |
|
|
0
|
|
|
#77 | |
|
Quote:
Code:
CAD = (0.98 * USD);
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
||
|
|
0
|
|
|
#78 |
|
|
0
|
|
|
#79 |
|
How do you convert CAD into USD?
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
|
|
|
0
|
|
|
#80 |
|
|
0
|
|
|
#81 |
|
And so if I gave you 100 CAD, how would you convert that into USD?
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
|
|
|
0
|
|
|
#82 |
|
|
0
|
|
|
#83 |
|
Yes, so in code you'd want to take the number of CAD multiply by 0.98 and store the result in a new variable. How would you write that in code?
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
|
|
|
0
|
|
|
#84 |
|
|
0
|
|
|
#85 | |
|
Quote:
Code:
5 = x;
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
||
|
|
0
|
|
|
#86 |
|
Code:
double USD = 0, CAD = 0; cin >> CAD; CAD = (0.98 * USD); Then you assign the result back into CAD with: CAD = (.98 * USD) ... or ... CAD = (.98 * 0) ... resulting in ... CAD = 0 A little Algerbra should allow you to figure this out. |
|
|
|
0
|
|
|
#87 | ||
|
Quote:
---------- Quote:
can i set it so that USD > 0? is it possible to just replace the equals sign with >? SO CONFUSING |
|||
|
|
0
|
|
|
#88 |
|
Yes, so you assign a value to a variable by putting the variable on the left and the value on the right.
Now you've read in the number of canadian dollars and stored it in CAD. You know that to convert to us dollars you need to multiply CAD by 0.98. So you want to take that result and store it in your USD variable. So, convert my words into code. You know how to do it!
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
|
|
|
0
|
|
|
#89 | |
|
Quote:
my life sucks---------- sweet baby jesus i think i got it. ---------- Code:
#include <iostream>
using namespace std;
#include <iomanip>
using std::setprecision;
int main ()
{
double USD, CAD;
cout << setprecision (2) << fixed;
cout << "Enter the amount of CAD: ";
cin >> CAD;
while (USD != 0)
CAD = 0.98 * USD;
USD = 0.98 *CAD;
cout << "$" << CAD << " CAD is equal to $" << USD << " USD" << endl;
return 0;
}
|
||
|
|
0
|
|
|
#90 | |
|
Yes you do. You have written
Code:
CAD = (0.98 * USD); ---------- Quote:
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
||
|
|
0
|
|
|
#91 | |
|
Quote:
aw yay! thank you so much for your help i cant believe i was being that dumb. |
||
|
|
0
|
|
|
#92 | |
|
Quote:
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
||
|
|
0
|
|
|
#93 | |
|
its literally like learning a whole new language!
im going to ask you a quick question while youre here.. the problem says "Write a C++ program to display the following sum: 4 + 8 + 12 + 16 + 20 + 24 +...+ 404 i dont understand how to get it to output as that, this is as close as i came: Code:
#include <iostream>
using namespace std;
int main ()
{
int x = 4;
while ( x <=404 )
{
cout << x << endl;
x += 4;
}
return 0;
}
---------- Quote:
Code:
#include <iostream>
using namespace std;
int main()
{
int sum = 0;
for (int x = 4; x<=404; x+=4)
sum += x;
cout << "Sum equals " << sum << endl;
return 0;
}
|
||
|
|
0
|
|
|
#94 | |
|
Quote:
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
||
|
|
1
|
|
|
#95 |
|
yayyyyyy
|
|
|
|
3
|
|
|
#96 |
|
Programming takes practice and dedication, but it'll come with time. Who knows maybe you'll end up really liking it and become a computer programmer
__________________
Macbook Air 13inch Ultimate
Hexcore MacPro 3.33ghz - 24 gigs ram - ATI 5870 - Dual 27inch ACD's |
|
|
|
1
|
|
|
#97 |
|
mmm im unsure about that, but you never know! haha i just like the moment of glory when i run something and theres 0 errors and it actually does what i want
|
|
|
|
1
|
|
|
#98 |
|
Hehehe, welcome to programming!
__________________
Of crimes---none is greater than having things that one desires; Of disasters---none is greater than not knowing when one has enough. Of defects---none brings more sorrow than the desire to attain. |
|
|
|
1
|
|
|
#99 | |
|
Quote:
One of the comments by you earlier was that you were "not good at algebra". Just realize this is a justification for not trying or giving up. You have just proven to yourself (and us) that you DID NOT GIVE UP. All of us on this thread can attest that we have been in the same exact position you were just in earlier in our careers. We too did not give up. And we too came up with justifications to give up. "It's too hard." "I suck at writing." "I hate math." "I am an artist." "I am a lover not a fighter." "I hate it." etc... Hang in there. With time and the effort you just showed, it will get easier. |
||
|
|
1
|
|
|
#100 |
|
I remember when I was learning my biggest issue was with classes. I was so confused by them! The syntax was weird, I didn't get what purpose they served, and the example I was given was awful.
After some digging I found a tutorial on them that didn't try and impress the reader by showing all kinds of bells and whistles but instead showed a basic class, then it clicked and now I can't imagine never creating classes. You will run in to many scenarios like that in programming but with a bit of digging you'll find examples that work for you and whatever you are trying to understand will click and you'll be on your way to the next concept.
__________________
Macbook Air 13inch Ultimate
Hexcore MacPro 3.33ghz - 24 gigs ram - ATI 5870 - Dual 27inch ACD's |
|
|
|
1
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| Importing Outlook for Mac 2011 Calendar to iCal | cycocelica | Mac Applications and Mac App Store | 7 | May 13, 2013 01:55 PM |
| Help with port forwarding for Security software? | PPFee | Mac Applications and Mac App Store | 1 | Dec 11, 2011 03:34 PM |
| Twitter for Mac Sucks | rdowns | Mac Applications and Mac App Store | 63 | Oct 20, 2011 10:08 AM |
| Excel 11 for Mac on a 27" iMac | Crotonmark | Mac Applications and Mac App Store | 2 | Sep 12, 2011 02:00 PM |
| Office for Mac, Page or Microsoft set from my pc? | Politis | MacBook Pro | 3 | Jan 20, 2011 02:55 PM |
All times are GMT -5. The time now is 12:24 PM.







my life sucks
Linear Mode

