Question: Write a web-based application that allows a player to create a game character and purchase some experience, health, and supplies before the game begins. The

Write a web-based application that allows a player to create a game character and purchase some experience, health, and supplies before the game begins. The page provided by game-intro.html should ask for a character name, character type, the number of experience tokens to be purchased, number of health tokens to be purchased, and the number of supply tokens to be purchased. These inputs will be submitted to game-intro.php for processing.

This program should calculate the cost pf the purchases in gold pieces. Every 10 health tokens costs 1 gold piece. Every 2 experience tokens cost 1 gold piece. Every 25 supply tokens cost 1 gold piece. For, now, don't worry about the total evaluating to a fractional number of gold pieces (for example the total may be 8.5 gold pieces). The program sholuld display the character's name and type, the number of each token ourchased, and the total cost.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!