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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started