Program to display information about balance in account

Assignment Help Programming Languages
Reference no: EM1368891

The purpose of this web application is to provide the head of the household with a report on the status of the family checking account. The application will simulate the process of looking up the account balance from the database, then it will place that balance in a predefined location within the web page.

* Create an ordinary text file named solution06.txt. In that file, enter the text required to create a web page which will display information about the balance contained in a family's account.
* NOTE: This text will eventually be inserted into the XHTML portion of your PHP script, so include HTML tags to format the text in an appropriate way. However, do not include the header tags - treat the text in this document as the body of the page, rather than the entire thing.
* Within the web page, use the special text string [ACCT] to mark the place where the account number will be included in the text. Use the special string [BAL] to mark the place where the balance will be displayed.
* Create an input form named solution06.html which will ask the visitor (the head of the family) to enter an account number (really a string).
* Within the script, assign a value to a variable named $balance. Note that instruction will eventually be replaced with an instruction to read information from a database.
* Within the script, add instructions which will open the text file you have created for the web page and read its contents into a variable named $pageBody.
* Use the str_replace() function to replace the special strings [ACCT] and [BAL] with the appropriate pieces of information.
* Display the resulting web page.

Reference no: EM1368891

Questions Cloud

Find out the coefficient of sliding friction : A student has two ramps, both of which are at an angle 32°. Ramp 1 is frictionless and ramp 2 has friction. The student also has two blocks, one for each ramp.
Explain type of sampling : Study to explore young people's perceptions of their neighborhoods: type of sampling - Questions for the interview were based on previous neighborhood studies by Bryant, Chawla, and Spilsbury.
Determine the industry equilibrium price combination : Demand and supply situtaions in the perfect competitive market for unskilled labor are as follows, Estimate the industry equilibrium price or output combination.
How to assume the force exerted on ball by the window : A 5.7x10^2 kg hot-air balloon takes off from rest at the surface of the earth. The wind and lift forces take the balloon up, doing +9.7 x 10^4 J of work on the balloon in the procedure. At what height above the surface of the earth does the balloo..
Program to display information about balance in account : Design an ordinary text file named solution06.txt. In that file, enter text required to make a web page that will display information about balance contained in family's account.
Show the types of power negotiation : What are the five types of power and based on your experience with a negotiation, how does having one or more of the five types of power affect the dynamics of the negotiation?
Compute the degrees of freedom associated with test : Analyze which statistical test you should use and Calculate the degrees of freedom associated with the test statistic
What is the formula for the acceleration a of the hanger : What is formula for the acceleration a of the cart in terms of the tension T, and its mass M? make use of the two equations you found above to eliminate T to give the acceleration of the cart in terms of M, m and g. Compute the numerical value for..
Manage in cross cultural environment : Effects of U.S. companies outsourcing our work to low-cost countries. As a manager, how will the cultural elements affect your managerial functions?

Reviews

Write a Review

Programming Languages Questions & Answers

  Create xml document to mark nutrition facts for cookies

Create an XML document that marks up the nutrition facts for a package of Grandma White's cookies. A package of cookies has a serving size of 1 package and the following nutritional value per serving.

  Write a program to read the data from csv file

Write a program that will read the data from the CSV file into an ArrayList of State objects where each State object stores information about all County objects for that state.

  Develop an encryption program

Your employer, SGA (Secretive government Agency) wants you to develop an encryption program. After doing some research you have two candidate algorithms.

  Complete a request for system services

Objectives Complete a Request for System Services form, which triggers the preliminary investigation phase. Analyze a user interview and extract pertinent facts, which can be used to assess project feasibility. Complete a Problem Stateme..

  Smallest and largest values in element floating-point array

Copy 11-elemts array source into first portion of 34-element array sourceCopy. Find out the smallest and largest values in 99-Element floating-point array data.

  Program-calculate power loss-transmitted-power generating

Write a program to calculate power loss in transmission line with resistance of 0.05 ohms/mile. Calculate power loss if 500 kW of power is transmitted from power generating station.

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  Create method to calculate value of product purchase

In addition, the receipt should display the value of the entire purchases. Create a method to calculate the value of the product purchases.

  Differentiating client-side and server-side scripting

Understanding difference between client-side and server-side scripting is significant when developing interactive sites. When and why should you use client-side versus server-side scripting?

  Design fraction class to represent numerator and denominator

Design a fraction class. The class should have 2 data members to represent the numerator and denominator. Both of these numbers should obviously be integers.

  Different class maintain programming programs are organized

It allows different classes to maintain programming so that programs are kept more organized. Object orientation also allows a programmer to use the same objects in different programs. Response?

  Appropriate for two classes to inherit from superclass

CDs and DVDs have several common characteristics. Would it be appropriate for these two classes to inherit from a common superclass?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd