zandiago 115 Nearly a Posting Maven Featured Poster

Good day folks. I just want to know what you all think about the following:
Do you think life would be better if we had start doing things the it ways years ago. Think about it...if each of us had planted our own vegetation and food in general and then trade, would it be better?
How long do you think it could last? Do you think we could gradually, become that way...or has the world become too advanced....too complexed...to greddy and too competetive to do so???...
I want your honest opinion...would you embrace such a simple lifestyle?? You think you could adjust???
Well, let me start off....personally, i wouldn't mind the use of a bicycle or an animal for travel...no gas pumps for me...
;)

zandiago 115 Nearly a Posting Maven Featured Poster

Thx again. Problem solved and program works like a charm. Thanks to all for their input and pointers/hints. See you around....Thanks again!!

zandiago 115 Nearly a Posting Maven Featured Poster

If you've got the correct answer....and the probelm is solved....please post it for the benefit of the entire community.

zandiago 115 Nearly a Posting Maven Featured Poster

I'm not talking about the formatting for your class...i'm talking about formatting the code for the forum....again...read the two announcements at the top of the page...

zandiago 115 Nearly a Posting Maven Featured Poster

Good day and welcome aboard. A few things.
You could use something like this:

int smallestIndex( int arr[], int size)
{
    int smallestIndex=0;
    int temp=arr[0];
    for(int i=0;i<size;i++)
    {
       if(arr[i]<temp)
       {
           smallestIndex = i;
           temp=arr[i];
        }
     }
   return i;
}

Hope that helps.

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard..hope you'll enjoy it here. Your formatting is horrible...please look at the two anouncements at the top of the page, so you can place your code in tags. Also, in the future, before posting, search the forums to see if someone else had the same problem/assignment. We are willing to help, but we don't want to waste time doing the same thing over and over again...here are a few links that may be able to help you:
http://www.daniweb.com/forums/showthread.php?t=51631&highlight=Fibonacci+number+series
http://www.daniweb.com/forums/showthread.php?t=94074&highlight=Fibonacci+number+series
You can search around for the others....also....Google is your friend.

zandiago 115 Nearly a Posting Maven Featured Poster

Don't expect an immediate answer...you may have to wait a bit more for your query to be addressed. Welcome aboard and hope you'll enjoy it here. Please specify your exact problem and tell us what you want your program to do?

zandiago 115 Nearly a Posting Maven Featured Poster

If your problem has been solved...please mark this thread as being solved.

zandiago 115 Nearly a Posting Maven Featured Poster

Also what would i do with the "mmenue[26]", that i currently have in that void initialize function if i didn't use the fastfood struct?Thanks for your input.

zandiago 115 Nearly a Posting Maven Featured Poster

Good day. A few points for you:
1.You need to declare a score variable and reference that in your function.
2.You need to be declaring a Stat in your main.
3.You will need a loop that will repeat your main untill a 'y' is entered in the final user input(cin).

zandiago 115 Nearly a Posting Maven Featured Poster

So let me just verify something:

struct fastfood
{
	char letter;
	string food;
	double cost;
	
};

ifstream infile("f:\\food.txt");
ofstream print("f:\\mkky.txt");
//********************************** Function Prototypes
void initialize(fastfood mmenu[26]);
void getdata(fastfood mmenu[26]);
void orderprocess(fastfood mmenu[26],double ssubtotal, double &ttotal);
void change(double ttotal);

The above shows the use of a struct...so if i din't want to use a struct, each time in my functions where I have fastfood...i'd have to replace it with:

char letter[];
	string food[];
	double cost[];

??

zandiago 115 Nearly a Posting Maven Featured Poster

Ooohhhhh!!! I get it now.....thanx for the breakdown.

zandiago 115 Nearly a Posting Maven Featured Poster

Good day folks. I have a simple question anout structs. Say for example i have the following:

struct foodmenu
{
	char letter;
	string food;
	double cost;
	
};

We just started a look at struct and it's really not too clear. So with regards to my example above...how does that replace functions or arrays?

zandiago 115 Nearly a Posting Maven Featured Poster

aissuR

zandiago 115 Nearly a Posting Maven Featured Poster

will you get the numbers from user input? Will they be stored into an array from an infile? where will you get the numbers from?

zandiago 115 Nearly a Posting Maven Featured Poster

A quick question...can it be random numbers between 100 & 150...or do they have to be incremented by 2 each time?

zandiago 115 Nearly a Posting Maven Featured Poster

Actually, the above may not work.....sorry about that..here's a simple algorithim...not sure why your professor wants you to use switch statements..

First, look at the following for 4754:

(Iteration 1)
0 * 10 + 4 = 4

(Iteration 2)
4 * 10 + 5 = 45

(Iteration 3)
45 * 10 + 7 = 457

(Iteration 4)
457 * 10 + 4 = 4574

return 4574

Do you see the pattern? The first number in the equations above is the "current sum". It always starts at 0 and is accumulated in the while loop. Each "subanswer" is the new sum to be used in the next equation.
Hope that helps.

zandiago 115 Nearly a Posting Maven Featured Poster

Good day...welcome aboard. We don't give away codes...you show some effort for us to help you...here's a jumpstart..pretty much we use the integer division and modulus operations ( / and % ). Its a rather simple assignment.:

#include <iostream>//you first need these headers
#include <iomanip>
#include <cmath>
#include <fstream>
#include <string>

using namespace std;

int main()//need your main function
{
int number;//declare a few variables you'll need
int reverse;

cout<<"Please enter a number to get it's reverse"<<endl;//ask the user to enter a number
cin>>number;//user input a number

{
	reverse =(123' ' x)*x+(123' 'x)/1x+(123)' 'x;//if i wanted the reverse of 123 do certain calculation

}
cout<<"The reverse of the number is"<<reverse<<endl;//prints out the reverse of the digits

	return 0;
}

You need to go figure what x is...you'll also need to figure out which operator(division or modulus) goes where i have the ' '
Hope this helps...no more spoon-feeding for you...

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..

zandiago 115 Nearly a Posting Maven Featured Poster

neoguru.....welcome aboard.I reccommend taking a look at the Rules & FAQ for the daniweb forum. Please do not re-open old threads....i'm pretty sure he'd get the answer before an entire year....look at the posting date of the question before you reply. Again ,welcome.

Salem commented: Yes, tell it like it is to that website spammer. +11
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…..

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…..

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…..

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…

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Does you're laptop make a sound from the hard-drive (computer) other than from the motherboard? Have you tried contacting the manufacturer?

zandiago 115 Nearly a Posting Maven Featured Poster

please post your latest code

zandiago 115 Nearly a Posting Maven Featured Poster

so pretty much you want to display the fist name last and vice versa and then calculate the total salary?

zandiago 115 Nearly a Posting Maven Featured Poster

abuC

zandiago 115 Nearly a Posting Maven Featured Poster

Also, where is your random number generator to get the numbers, or will the user input the numbers??? I doubt that the numbers will fall out of the sky and go into you're computer....try a little harder please. Again i ask....I'm also pretty sure that your professor must have given you a specific range of which to get the 1000 numbers. By that I mean...is it a range of numbers between 1 & 5 billion??? What should be the highest and the lowest number?

zandiago 115 Nearly a Posting Maven Featured Poster

Your functions don't seem too right & you may wanna have #include<cstring>

zandiago 115 Nearly a Posting Maven Featured Poster

We don't give codes away.....you must show effort for us to help you. Even just start off and we'll guide you in the right direction. Welcome aboard though.
#1
You could start off by doing a few things:

#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
#include <string>

using namespace std;

int main()
{
	int number,d1,d2,d3,d4;//variables needed for the program


	cout<<"Please enter a number to separate each digit"<<endl;//instructs the user to input the number
	cin>>number;//input a number
{
now in here use the '%' operator to see what each digit is
}
	cout<<" "<<"each digit of the number is "<<d1<<" "<<d2<<" "<<d3<<" "<<d4<<endl;
	return 0;

#2
In your second program, is it simple. Initilaize some variables....throw in a few loops and see what you can come up with.
Heres a head-start:

#include <iostream>
#include <cmath>
#include<cstring>

{
	int month = 0;//initialize a few variables
	int month2 = 0
	int day = 0;
	int day2 = 0;
	int year = 0;
	int year2 = 0;
	numofdays = 0;
	julianDate = 0;

{
Here you can use arrays to some valuable data....number of days in each month....hours per day...ect...
}
cout << "\n Calculates # of days between dates" << endl;//ask the user to enter dates
  cin >>  month >> day >> year;//user enters info
{
in here use a FOR loop to check with month...hint...not all months of th year have the same # of days. You'll also have to make exceptions if a year is …
zandiago 115 Nearly a Posting Maven Featured Poster

Hello there, if you notice that your PC is running a bit crazy, it maybe possible that computer is infected. In addition to viruses, your computer may be infected with spywares, Trojans, worms, adwares, viruses and other malwares. Also, I do recommend that you clean/restore your registry files…if these are corrupted, your PC will act crazy. The software to help you with your registry: RegCure and Regpair.

Icon Restore: http://www.majorgeeks.com/download4125.html

zandiago 115 Nearly a Posting Maven Featured Poster

This is rather simple....you spell a country, but reverse the letters.....so i'll start...
Peru=ureP
...it's that simple....i wanna see how many people mess up. Have fun and have a good day.

zandiago 115 Nearly a Posting Maven Featured Poster

With regards to Locksmith.... must it be installed on the machine with the lost password? Will you need to be logged on as another user and run the Locksmith interface, which allows you to select the broken account and reset the password? I'm not familiar with the Locksmith software....i'm familair with L0phtCrack application.

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard:
1. You could start off by declaring a few variables that you'll need.
2. You could set up some type of a loop to return greater common divisor of two long integers.
3. You then set up size for array.
4. You may create a dynamic array, assign address data.
5. Prompt the user for desired operation and then for the values.
6.You can then store the input to linked list.
7.Then determines the sign of the coefficients..ex:

if(sign=='-')                
{
do something
}

Please give it a shot and see how much of the code you can come up with on your own and then we'll try to assist you. Again, welcome aboard and hope you enjoy it here.

zandiago 115 Nearly a Posting Maven Featured Poster

husvy_123....a few things:
1. Introduce yourself in the Geek lounge.
2. If you have a specific problem-post the code(not on my thread) and the guys here will take a look at it and help you.
3. Daniweb provides tutorials on several topics. You can go to google and search for a specific topic or the tutorials here (which are good).
4. Don't post your personal code/question on someone elses thread unless it's related to the orignal question...you need to start your own thread.
5. Don't post questions and expect an answer right away or any assistance if you don't try. We're all here to help you learn (even though I don't know a lot either)..
6. I reccommend taking a look at the Rules & FAQ for the daniweb forum.

zandiago 115 Nearly a Posting Maven Featured Poster

oooopppsssss....read to fast...sorry about that. One of the things you could do:
Also, I do recommend that you clean/restore your registry files…if these are corrupted, your PC may act a bit crazy. The software to help you with your registry: RegCure and Regpair. Please use these utilities and let’s know the outcome.

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Welcome aboard…..hope you’ll enjoy it here…..well, start posting!!!

zandiago 115 Nearly a Posting Maven Featured Poster

Have you tried uninstalling and re-installing internet explorer?