Jump to content

Recommended Posts

Hey guys. I am a student at a local college taking a class in php right now. I have a project due on friday that I can not figure out. Actually none of the other students in can figure it out either and the instructor seems to be missing right now. Can you take a look at the files and give me a hint. There are only two. there are only three short files. the instructions were as follows

 

1. Copy the images subfolder from your project_02 folder to your project_03 folder.

 

2. Copy the default.css file from your project_02/styles folderr to your project_03/styles folder.

 

3. Copy the rednote_2_objects three php files to your project_03 folder, renaming MusicStore.php to BikeSite.php and MusicStoreTester.php to BikeSiteTester.php.

 

4. Edit each php file to replace all references (including comments) for the rednote website with appropriate references for the your evolving bluebike website.

 

5. Edit each php file to replace all references to the music store classes with appropriate references to the your bike site classes.

 

6. Add a new class property named $pass to the BikeSite class.

 

7. Modify the BikeSite class methods (as needed) to make use of $pass in ways similar to the uses made of the $pass property by the Customer class.

 

8.Modify any existing tests or add new tests to BikeSiteTester.php to accomodate the changes to the BikeSite class.

 

I have done everything except 6,7,8. I don't understand how to do those last few instructions. Any help would be greatly appreciated. Keep in mind, I have only been studying php for 3 weeks.

 

[attachment deleted by admin]

Link to comment
https://forums.phpfreaks.com/topic/177676-i-need-some-serious-help/
Share on other sites

As for number 6, that's pretty easy. If you don't know how to do it, you might want to read up on the PHP's manual entry for Class Basics.

 

As for 7 and 8, can you post the Customer class using code tags as well as the BikeSite class and BikeSiteTester.php file?

I don't have any idea. The problem is that I don't know what the end result is suppose to be. we did not write all this code. The instrutor gave it to us then said modify it to work. I could spend a month figuring out how all this works. I don't have that much time. I need to turn it in on friday. is there anything in there that you can explain?

edit. I figure for number 6. all I need to do is add

 

var $pass;

 

I figure that number 7 says to use it in similar ways as used in customer.php. Well that would mean md5. But the password already is md5. So what is this new class property suppose to do?

I wasn't asking for you to do my homework for me, but just to explain a few things. I included the zip file so that you could see what the code is doing and offer that explanation, the code is very short. I was finally able to get a hold of the instructor and we just discussed it so I am good now. Thanks for offering your help.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.