I do not like this idea any better than the rest of you.. But would you not rather know the truth than a lie that makes you feel better?
well, my lie has cured cancer... has your truth done that yet?
I do not like this idea any better than the rest of you.. But would you not rather know the truth than a lie that makes you feel better?
well, my lie has cured cancer... has your truth done that yet?
With that said, yes, it is hypothetically possible that every other species will evolve to the human species, but is extremely unlikely.
why is this unlikely, but not in the single case of the human evolving from what would seem to be a ludacris species or organism at one point? How is human evolution from one species more likely than that of another; why is it not considered extremely unlikely now?
hah i better stop myself be4 I go off on some tangent talking about how illogical it is to have a single creator that is both omnipotent and who created a world in which free will exists... infinity is not really, nothing is immortal.
you would rather believe we came from a single organism than a loving creator?
Created by the same source? Well, we all evolved from one organism.. And about what you said earlier, how can you believe in microevolution, but not macroevolution?
If humans have slightly evolved (become stronger, faster, etc., then why couldn't that same thing have happened to monkeys millions of years ago. They gradually get faster, smarter,.. until they are actually a new species.) Macro and micro evolution are linked.
If we all evolved from one organism, then that would mean every species has the potential to evolve into a human... surely you do not believe this?
another thought...
if what you say is in fact true josh, that the DNA copared to other species is only 2% difference.. then why wouldn't that lead you to believe that they were created by the same source?
I have no doubt that we may have evolved as humans... though I do believe it started at creation. I'm sure people back then couldn't run as fast as us or jump as high, which proves at least moderate evolution... though I refuse to believe it to be the factor of life as we know it.
just so everyone is aware... the Bible isn't meant to be proven... that's where faith comes in.
no matter how much evidence we find, faith is always the main factor.
I do not think you fully understand how to historically research a work of literature. Please, take a look at the document I've attached to see the reasearch method used when dealing with a subject like this.
I brought up the other works to compare the two; you can't prove a work one way or the other without being able to apply the same variables to another work of literature
I have attached a report I did on this subject... read it, and then tell me what flaws you find.
I assure you my documentation is historically correct, though feel free to google it as you say.
How has evolution been proven true over and over? Have you any evidence of monks magically transforming into human beings? If you do, by all means...
If the bible is not intended to be litteral then neither is Ceasar Agustus's Galic Wars or Thucydides, one of the greatest of ancient Greek historians and the author of The History of the Peloponnesian War, which is the first record of a political and moral analysis of a nations war policies. Even though his works are available from just eight manuscripts, dated 900 A.D (almost 1300 years after he wrote), his works are considered to be accurate. Look at Aristotle's works, coming from a mere five manuscripts. Would you dare question the validity of these historical writers? Never! If, in contrast, you compare the number of manuscripts of The New Testament alone, there are over twenty-thousand! Second to the New Testament is the Illiad with about 640 manuscripts.
Note* Here, manuscripts are refereing to original documents.
More evidence exists proving the reliability of the Bible, than any ten works of historical literature combined.
I could go on if you would like...
WEP is a security feature which can be enabled on wireless APs/routers.
Assuming your internet is going through a router you will need to logon to the routers configuration page.
right-click on your network connection (start->settings->network connections) and click on status. Then click the support tab and write down the default gateway IP.
Next, open IE or FireFox and type: http://192.168.1.1 or whatever your default gateway IP is.
Once connected to the router you will get a login page. If you do not know the username and password the following are typical default settings:
un: admin
pw: (blank)
un: administrator
pw: (blank)
un: admin
pw: admin
un: admin
pw: password
un: (blank)
pw: (blank)
If none of these work, you may be prohibited from accessing this routers configuration settings; is this your router?
Once logged into the router go to the routers wireless settings page; there should be a link that says wireless settings or or something to that effect. Once here you will see WEP (if it is enabled) in a drop down box, and you will need to change the option from WEP to None.
Warning* this will disable wireless security on your router.
If you need more assistance, just post again and someone will get to you. Hope this helps.
Usually when I've recieved this error, I'ved noticed my function prototype's formal parameters don't match my function's actual parameters.
Just an update, thanks to everyone who helped. Here's the finalized code. This one is solved :D
/*****************************************************
* COSC 230 - Structured Programming
* Chapter 7: Programming Exercise 1
* Apr. 4, 2007
*
* Discription:
* blah
******************************************************/
//header files
#include <iostream>
#include <iomanip>
using namespace std ;
//function prototypes
void initialize ( int& , int& , char& ) ;
void getHoursRate ( double& , double& ) ;
double payCheck ( double& , double& ) ;
void printCheck ( double , double, double ) ;
void funcOne ( double, int, int ) ;
void nextChar ( char ) ;
int main()
{
int x ;
int y ;
int w ;
char z ;
double rate ;
double hours ;
double amount ;
initialize( x , y , z ) ; //test initialize-func.
getHoursRate(hours, rate) ; //test initialize-func.
amount = payCheck( hours, rate ) ; //initialize amount to paycheck-func.
cout << "*** Inside payCheck-function ***" << endl << payCheck( hours , rate ) << endl ; //test payCheck-func.
printCheck( hours, rate, amount ) ; //test printCheck-func.
funcOne( w, x, y ) ; //test funcOne-func.
nextChar ( z ) ; //test nextChar-func.
}
void initialize ( int& x, int& y, char& z )
{
x = y = 0 ;
z = ' ' ;
cout << "*** Inside initialize-function ***" << endl ;
cout << "The values of 'x' and 'y', respectively are: " << x << " and " << y << endl ;
cout << …
As for part 1, I believe the instructions are referring to c-strings...how much do you know about c-strings?
i don't =/
Ok, I've modified my code, and am getting an error that says:
[I]error C2563: mismatch in formal parameter list[/I]
This is at the same line with the comment [B]//error is here[/B]
I've called the void functions outside of a cout, and have put cout statements inside of the function to test them. What am I doing wrong? =/
#include <iostream>
#include <iomanip>
using namespace std ;
void initialize ( int& , int& , char& ) ;
void getHoursRate ( double& , double& ) ;
double payCheck ( double& , double& ) ;
void printCheck ( double , double, double ) ;
void funcOne ( doulbe, int, int ) ;
void nextChar ( char ) ;
int main()
{
int x ;
int y ;
int w ;
char z ;
double rate ;
double hours ;
double amount ;
initialize( x , y , z ) << endl ; //error is here
getHoursRate() << endl ;
cout << payCheck( hours , rate ) << endl ;
printCheck( hours, rate, amount ) << endl ;
funcOne( w, x, y ) ; //confusion starts here
nextChar ( z ) ;
}
void initialize ( int& x, int& y, char& z )
{
x = y = 0 ;
z = ' ' ;
cout << "Inside initialize-function: " << endl ;
cout << "The values of 'x', 'y' and 'z', respectively are: " x << "\t" << y << "\t" << z << endl << endl ;
}
void getHoursRate ( …
word... this took longer than it should have. =/ who would think sata drives still require the use of an FDD??
now get back into ffxi and PL me. :D
Hey everyone, this is a big one.
The question has asked that I define functions and then write the function main to test the functions I wrote. I keep getting the following error at my first cout in main:
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'void' (or there is no acceptable conversion)
I'm not sure what this is saying.
In addition, I need help with defining two of my functions and writing code to test them. They are as follows:
Write the definition of the function nextChar that sets the value of z to the next character stored in z.
Write the definition of the function funcOne that prompts the user to input a number. The function then changes the value of x to 2 times the old value of x plus the value of y minus the value entered by the user.
Now, with #2 I'm pretty sure I have the function defined right, though I don't know how to test it. #1 though, I have no clue how to define that function, though I did attempt it =/.
Could someone look through my code, and let me know if they notice any huge mistakes? This is our second chapter on user-defined functions, so I'm still learning about call by reference and whatnot. I have commented my code minimaly to assist you in finding the parts I'm having a tough time with.
Thanks guys! :mrgreen:
code:
#include …
oh wow, i've been multiplying 2*v*z. sheesh
thanks
hmm. is it 52?
Hey all,
I'm doing hw, and I did a desk-check for this program and got completely different answers than that of the computer when the program was put into the compiler.
The question says to consider the function defaultParam
void defaultParam ( int u , int v = 5 , double z = 3.2 )
{
int a ;
u = u + static_cast<int>( 2 * v + z ) ;
a = u + v * z ;
cout << "a = " << a << endl ;
}
What is the output of the following function calls?
defaultParam(6) ;
defaultParam(3, 4) ;
defaultParam(3, 0, 2.8) ;
Here is my code:
#include <iostream>
using namespace std ;
void defaultParam ( int u , int v = 5 , double z = 3.2 ) ;
int main ()
{
defaultParam(6) ;
defaultParam(3 , 4) ;
defaultParam(3 , 0 , 2.8) ;
return 0 ;
}
void defaultParam ( int u , int v , double z )
{
int a ;
u = u + static_cast<int>( 2 * v + z ) ;
a = u + v * z ;
cout << "a = " << a << endl ;
}
My output from this code is:
a = 35
a = 26
a = 5
Press any key to continue . . .
but when I did the desk-checking I got:
50
54.2
3
Is my program setup to give me the correct results? Or am I right? Or neither :mrgreen:?
Do you have a wireless card in your PC? If not, run to Wal-Mart and grab a patch cable (not a crossover cable). When you get the cable, just hook it from your modem to your PC. Hope this is specific enough.
Hey everyone,
My brother was playing a game the other day and his computer just shut off. When he rebooted it said missing/corrupt SYSTEM file. It's not his HDD, because he can boot into knopix and view his files. When we try to use a windows disk to boot from it says the drives cannot be found, even with pressing F6 for special drives. He has two SATA drives in his computer that are not being recognized. No working floppy drive is available.
I tried to copy my SYSTEM file for him, but since it's in use it won't let me copy it.
Is there any way to fix this? We want to avoid reformating, though if needed it is an option. He was able to transfer all of his important files to my computer.
his rig:
Windows XP Pro
SATA HDD x2
Thanks for any help! As you know, losing your computer is like loosing one of your best friends... =(
Hey everyone, thought I would post the things I have to sell before I put it up on eBay and see if anyone has what I need.
*FREE SHIPPING*
Have:
Brand New - CD-Rom drive ($15)
Brand New - 128MB PCIe x16 nVidia Quadro NVS 285, Dual DVI or Dual VGA Capable ($95)
Need:
Digital Camera - 8Mp+
:mrgreen::mrgreen::mrgreen:
I would so buy it... I have no digi-cam :(
looks b-e-a-utiful. I'll get christina to bring over her digi-cam and upload some pictures sometime this week.
*wish i had a 1.2Gp camera*
so i got my computer today and updated the 'my rig' section of my profile a little while back.
I ran the ffxi benchmark3 and got a 8340... i love it.
heh, fun thread. :D
How high do you have to get before you can make your own posting title thing?
Hey everyone,
I just got my GeForce 7950GT KO in today, and I noticed it says HDCP Enabled. What is this?
yeah, what I'm really wondering is how difficult is it to configure the IOS on the cisco routers to make the offices talk?
Does anyone have a recommendation of some software I could purchase to simulate cisco routers?
I'm in the netacad and am looking for something that will allow me to setup networks to test or with give me practice labs built in.
thanks
Haha Duki, isn't it embarrassing when your girlfriend has nearly twice as many posts as you have, and she's only been here for like a month? :cheesy:
actually i think it's quite sexy ;)
Quoted by Duki:
.
Congrats on #300 and #400!!
Now your shooting for 500!!
Thanks! Should only take 4x the time it would take christina :mrgreen:
Great, thanks everyone. Program is working fine now.
Finalized code:
/*****************************************************
* COSC 230 - Structured Programming
* Chapter 6: Programming Exercise 7
* Mar. 20, 2007
*
* Discription:
* Determine population growth rate
* Determine population after 'n' years
******************************************************/
//headerfiles
#include <iostream>
#include <string>
using namespace std ;
//function prototypes
double growthRate ( double, double ) ;
int estimatedPopulation ( double, int, int ) ;
int main()
{
int population ;
int cPopulation ;
double birthRate ;
double deathRate ;
int n ;
cout << "Enter the current population: " << flush ;
cin >> cPopulation ;
if (cPopulation < 2)
{
cout << "You have no hope. Current population must be at least two for natural human evolution. " << endl ;
return 1 ;
}
cout << "Enter the birth rate: " << flush ;
cin >> birthRate ;
cout << "Enter the death rate: " << flush ;
cin >> deathRate ;
cout << "Enter the number of years to calculate: " << flush ;
cin >> n ;
cout << "Computing..." << endl << endl ;
if ( (birthRate < 0) || (deathRate < 0) || (deathRate > 1) || (n < 0) )
{
cout << "Birth rate, death rate, and years must be greater than 0. Death rate can not exceed 100%." << endl << endl ;
return 1 ;
}
/*x = growthRate( birthRate , deathRate ) ;*/
population = estimatedPopulation ( growthRate(birthRate , deathRate), cPopulation, n ) ; …
Not sure what you're asking, but if it is about the growthRate, that was another part of the problem. The equation they gave for that was B-D
hey that sounds sweet to me... i'll try it and let you know. I bet the book didn't even account for the compounding growth.
The books equation: P + (B*P/100 - D*P/100)
four-hundred posts.
cool thanks! it's working great now! :D
Well the good news is the program is compiling, thanks to the help I've received. Now I have a math error somewhere >.<. Could someone give me a hand?
Sample Output:
Enter the current population: 1000
Enter the birth rate: 100
Enter the death rate: 50
Enter the number of years to calculate: 2
Estimated population after 2 years: 2500
Press any key to continue . . .
/*****************************************************
* COSC 230 - Structured Programming
* Chapter 6: Programming Exercise 7
* Mar. 20, 2007
*
* Discription:
* Determine population growth rate
* Determine population after 'n' years
******************************************************/
//headerfiles
#include <iostream>
#include <string>
using namespace std ;
//function prototypes
int growthRate ( int, int ) ;
int estimatedPopulation ( int, int, int ) ;
int main()
{
int population ;
int cPopulation ;
int birthRate ;
int deathRate ;
int n ;
cout << "Enter the current population: " << flush ;
cin >> cPopulation ;
cout << "Enter the birth rate: " << flush ;
cin >> birthRate ;
cout << "Enter the death rate: " << flush ;
cin >> deathRate ;
cout << "Enter the number of years to calculate: " << flush ;
cin >> n ;
/*x = growthRate( birthRate , deathRate ) ;*/
population = estimatedPopulation ( growthRate(birthRate , deathRate), cPopulation, n ) ;
cout << "Estimated population after " << n << " years: " << population << endl ;
return 0 ;
} …
wow that's sweet looking... i almost got a dell. I really love the height adjustments/usb ports
gj!
ok this is my code, but i keep getting 0 vowels.
int isVowel ( string msg )
{
char ch ;
int vowel ;
cout << msg ;
string line ;
getline ( cin, line ) ;
int length = line.length () ;
for (int i = 0; i < length; ++i)
//while ( ch != '.' ) //'.' delimeter
{
/*ch = tolower(ch) ;*/
if ((ch == 'a') || (ch == 'e') || (ch == 'i') || (ch == 'o') || (ch == 'u') || (ch == 'A') || (ch == 'E') || (ch == 'I') || (ch == 'O') || (ch == 'U') )
value++
}
return value ;
} //end 'isVowel' function
I just got my 226 in today and it's sweet looking. Can't wait to get my computer in so I can test it out. I'll post pictures when everything comes in... woo
I rewrote my a lot of my code. Here is the revised version.
I don't understand the equations they're giving me. I'm also getting an error that says
error C2664: 'estimatedPopulation' : cannot convert parameter 1 from 'int (__cdecl *)(int,int)' to 'int'
at line 28
What does this mean?
I stopped after the growthRate function, because I can't seem to get that one working let alone the other. I'm not sure how input the equations the book is giving; could someone explain what the equations are saying?
#include <iostream>
#include <string>
using namespace std ;
int growthRate ( int, int ) ;
int estimatedPopulation ( int, int, int ) ;
int main()
{
int x ;
int population ;
int cPopulation ;
int birthRate ;
int deathRate ;
int n ;
cout << "Enter the current population: " << flush ;
cin >> cPopulation ;
cout << "Enter the birth rate: " << flush ;
cin >> birthRate ;
cout << "Enter the death rate: " << flush ;
cin >> deathRate ;
cout << "Enter the number of years to calculate: " << flush ;
cin >> n ;
x = growthRate( birthRate , deathRate ) ;
population = estimatedPopulation ( growthRate , cPopulation, n ) ;
cout << "Estimated population after " << n << " years: " << population << endl ;
return 0 ;
}
int growthRate (int birthRate, int deathRate)
{
int growthRate ;
if ( ( birthRate < 0 ) || ( …
hm, it says str undeclared identifier
Hey guys, I'm stuck again.
The program is supposed to get the estimated population after n years using the equation P + (BP/100)-(DP/100) and the growth rate using B-D.
Here is what I have so far, but I can see I'm going to be getting stuck.
How can I set my parameters for estimatedPopulation to grab the values from growthRate in addition to the current population and number of years?
#include <iostream>
#include <string>
using namespace std ;
int main()
{
int x ;
int population ;
population = estimatedPopulation(growthRate()) ;
cout << "Estimated population after " << n << " years: " << population << endl ;
return 0 ;
}
int growthRate ()
{
int birthRate ;
int deathRate ;
int growthRate ;
cout << "Enter the birth and death rates per year, seperated by a space: " << flush ;
cin >> birthRate, deathRate ;
if ( ( birthRate < 0 ) || ( deathRate < 0 ) )
{
cout << "You can't have negative death/birth rates, dumbie!" << endl ;
return 0 ;
}
growthRate = birthRate - deathRate ;
return growthRate ;
}
int estimatedPopulation ()
{
int cPopulation ;
int population ;
int n ;
cout << "Enter the current population: " << flush ;
cin >> cPopulation ;
cout << "Enter the number of years to calculate: " << flush ;
cin >> n ;
}
Why restrict the user by asking him to enter a "period" after the sentence ? Replace your while loop with a for loop, something like this:
int length = str.length (); for (int i = 0; i < length; ++i) { // do processing }
Accept the whole sentence from the user in the form of a string and pass the string to this function, which will loop through each character and find the vowel count.
hmm, i haven't learned about str.length, but I will put it in there and maybe impress the prof ;) ty
is there a better way to write my program?
I assume you want user to enter a sentence to be evaluated for vowels and send that entire sentence to the function. Your program doesn't do that. Your program excepts input char by char. To input a sentence the user would have to push the enter key after each letter they typed. I'm almost postive that isn't what you want.
Lerner, thank you for your replies. I'm not getting the errors you're describing. After declaring 'value' and including <string> the program looks to be working fine.
you missed my post -- read it again and you will find the answer.
you missed my post as well ;)
thanks!
You may need to use preposser commands like :
#include <string>
using namespace std;Line 11 : You're sending a literal string to itsVowel, not a string entered by the user. In fact there is no way for a user to enter a string in this program.
Line 22: The string sent to isVowel() doesn't have a period at the end.
Line 24: This asks user to input a char. This is wrong. You want to access each char of the string input by the user.
Line 26: You're only counting lower case vowels, not upper case vowels, which are also vowels.
Thanks Drag and Lerner
Line 11, 22, 26: These work fine in the program tests, though I may be missing your point. Could you elaborate?
Line 26: Good point. though if I put ch = tolower(ch) after cin >> ch ; i get an infinite loop =o
For someone with almost 400 posts, you should have known better to explain what is going wrong (like post error messages), rather than just ask for help. If you compiled this program, you would have found that the variable
vowel
is not defined. Define it, initialize it to0
, and the program should work.
Thanks for the reply
sorry for not explaining my code, my mistake. I should have known better, you're right.
When I compile it, at line 20 I get the following error:
error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
What am I doing wrong?
Hey everyone,
we're going over functions now and I am supposed to write a program that counts the number of vowels in string of characters. I'm not sure what I'm doing wrong... could someone help?
#include <iostream>
using namespace std ;
int isVowel ( string ) ;
int main()
{
int y ;
y = isVowel ("Enter a string of characters followed by a period: ") ;
cout << y ;
}
int isVowel ( string msg )
{
char ch ;
cout << msg ;
while ( ch != '.' )
{
cin >> ch ;
if ((ch == 'a') || (ch == 'e') || (ch == 'i') || (ch == 'o') || (ch == 'u'))
vowel++ ;
}
return vowel ;
}