Jump to content

I have got a question


KevinG

Recommended Posts

Hello, im new to php and trying to learn. I have tried lots of stuff.

 

I have got 2 questions.

 

Write and test PHP code to calculate the cost of carpet in a room 5.5 metres x 4.0 metres and the cost of carpet at $90 per square metre. Format correctly using the printf function.

 

 

Write and test PHP code that will convert letter "X" to ASCII and convert the ASCII value 88 to the letter it represents.

 

Can someone please tell me the code for these 2 little questions ?

 

Thank you.

 

Link to comment
https://forums.phpfreaks.com/topic/52916-i-have-got-a-question/
Share on other sites

Why are you trying to take on things you aren't ready for? You need to read on how to do the basics that will lead you up to being able to do those problems. There is no point in asking for the answer for everything you can't do...you will never learn that way. So my advice to you  would be to find some beginner tutorials and start reading/practicing.

Link to comment
https://forums.phpfreaks.com/topic/52916-i-have-got-a-question/#findComment-261327
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.