zandiago 115 Nearly a Posting Maven Featured Poster

welcome....hope you'll enjoy it here and that you're enjoying sunny florida...where about there in FL are you from?

zandiago 115 Nearly a Posting Maven Featured Poster

Please post you latest code

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

Sorry to hear about your dilema. Try a few things:
1. Well...after you get the problem resolved...do a registry repair. Do a scan of viruses and other malwares.
2. Try to boot from CD.
3. Please describe the sequence of the beep, how loud...ect...how rapid is it....
4. Is it overheating by any chance?
5. does it shutdown after it beeps?
6. I do recommend you to read the description of BIOS beep codes you can easily find on the web/laptop manual. Just type "BIOS beep codes" on GOOGLE then browse through the results. That should give you an idea of what is going on.
7. Fan not working properly?
8. Driver corruption

zandiago 115 Nearly a Posting Maven Featured Poster

Can you please be more detailed about your assignment?

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here... cheer up m8.

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here... however, i recommend that you take a look at FAQ and rules. If you have specific questions about either of these programing languages...please post them their respective forums.

zandiago 115 Nearly a Posting Maven Featured Poster

hhhhmmmm....could someone give me a jumpstart? thx

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

Hold up...........why are all these people double posting.....or is there a bug on my PC?...thought i just answered the question.....

zandiago 115 Nearly a Posting Maven Featured Poster

don't think he's reached functions yet. Your errors are syntax. Look at something like this:

#include <iostream>
#include <cstdlib>
#include <cmath>
#include <ctime>
#include <string>
using namespace std;


int main()
{
	srand ( static_cast<unsigned int> ( time ( 0 ) ) );

  int randNum = rand() % 100 + 1;
  int num = 0;
  int GuessLow=0;    
  int GuessHigh = 0;
  int guess=0;
  string uname;
  
  cout<<"Please enter your name: ";
  getline ( cin, uname );
  cout<< uname <<'\n';
  cout<<"Welcome to the Random Number Guessing Game!!\n";

  
    {
        do
        {
            // Loops until user finds the number
            
            cout <<uname<<" "<<"please enter a number between (#1 - 100): ";
            cin >> num; // User's input of guessed number
			guess++;
			            
            if (num < randNum) // If num is < than the random number, inform player to try again.

               cout <<uname<<" "<<"I'm sorry-your number was too low-please try again!";GuessLow++;
			   
			 else
            
            if (num > randNum) // If num is > than the random number, inform player to try again.
               cout<<uname<<" "<<"I'm sorry-your number was too high-please try again!";GuessHigh++;
			
				
			
            else
            
            break;
            
        } while (num != randNum);
		
		
		
    
    
        cout<<uname<<endl;
        cout<<" "<< "Excellent Job!! You guessed correctly!!"<< endl;//Informs if the player is successfull
        cout << "Guessed too high: " << GuessHigh;//Display the user's score at the end of the program
		cout << "Guessed too low: " << GuessLow;//Display the user's score at the end of the program
		cout<<  "Total number of guesses: "<<guess;//Display the # of guesses by user
        } 


	return 0;
}

This ought to work...there may be a …

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard. With regards to your variable, you may want to use 'double'. As for the formating of your number to a specific decimal point and to make the digits show, you use smething like this:

cout<<fixed<<showpoint<<setprecision(2)<<number<<endl;

The above will print the variable number (a double type) to two decimal places and forces the compiler not to show it in scientific notation. Hope this helps. hhhmmm.....why are double posting the same question??? Read the rules about the forum. You only need to ask your questions once.

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard. A few things additionally. This is an outline:

<Your headers>

using namespace std;

int main ()
{
1. declare a few variables...int, float...
2. cout<<"enter two numbers to get the average"<<endl;//ask the user ro input two digits.
3. cin>>num1>>num2;//makes the user enter two numbers
4. You get the total of the numbers and then divide by the amt of numbers/digits.
5. You can figure out the rest. Hope this helps.
zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard. With regards to your variable, you may want to use 'double'. As for the formating of your number to a specific decimal point and to make the digits show, you use smething like this:

cout<<fixed<<showpoint<<setprecision(2)<<number<<endl;

The above will print the variable number (a double type) to two decimal places and forces the compiler not to show it in scientific notation. Hope this helps.

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

You may need to use the windows CD that came with the computer to reinstall the corrrupt/missing file...please proved the spec details about you computer and how long after you had the computer did the problem arise?

zandiago 115 Nearly a Posting Maven Featured Poster

welcome aboard....please post what you've got so that w can guide you. Here is some pointers:
1. start with your headers, you'll need to figure out which ones you'll need:

#include<iostream>

2. You need:

using namespace std; 

int main()

3. you need to declare some variables:

int num;

4. Ask the user to input a number:

cout << "Enter an integer: ";

5.Allow the user to input:

cin >> num;

6. For the actual calculation, we use the modulos (%) operator. From basic math/algebra, you ought to know theoretically, how to calculate even and odd numbers....do they have remainders....if they do...what's the remainder.
7.

if (expression)
	statement1
else
	statement2

The above test to see if the number is odd or not...if it is, do something...if it's not....do something.
8. Then you'll need output statements (answers to provide) to you professor:

cout << num << " is an odd number" << endl;

In the future....search the internet(GOOGLE)...or the frum to see if the problem has been covered already.
10. most importantly...to be successful in c++ you'll simply have to do the work....and practice...
Hope this helps...have a good day!

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

welcome...hope you'll enjoy it here...

zandiago 115 Nearly a Posting Maven Featured Poster

tsnatikaji = ?

zandiago 115 Nearly a Posting Maven Featured Poster

sndau..get this?

zandiago 115 Nearly a Posting Maven Featured Poster

Ok....thanx...Nick...this helps...our professor said there shoukd be multiple answers...so i'm checking something with him. Thx again. Prob solved, time to move on to my very last and final c++ assignment.

zandiago 115 Nearly a Posting Maven Featured Poster

Thanks for your feedback....i was actually thinking about something like this:

float N = 3(3(3(39+1)+1)1)1 < 500;//total of gold bars
double N1= (N/3);
double N2 = (N1/3);
double N3 = (N2/3);

Your input is appreciated. ithelp...with your method tho...i just tried something....your format is a type of function?

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard...hope you'll enjoy it here.

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard...hope you'll enjoy it here....$49/hr???

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard...hope you'll enjoy it here.

zandiago 115 Nearly a Posting Maven Featured Poster

Thanks for your replies guys.....i've never even heard of string apis. I'll be posting what i come up with.