We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Question 01:                   (Marks: 05)

 

Write a small program (Code) in PHP language which declares a variable that stores some amount and calculate the “Zakat” on this amount.

 

Note: The “Zakat” can be calculated through formula “(Amount * 2.5)/100”

 

 

Question 02:                   (Marks: 10)

 

 

The associative Array in PHP language can be define/declare through Array() function and can take any number of key-value pairs. The indices/keys of an associative array can be numeric or string.

 

Write a small program (Code) in PHP language which declares an array of five students named “Student”. The key/index of this array would be students’ roll numbers while the values would be their names. Also print students’ names on the screen.

Sample output:

                  Student 1:  Ahmed Ali

                  Student 2:  Ikram

                  Student 3:  Sumair       

                  Student 4:  Imran

                  Student 5:  Shabeer

 

 

Question 03:                   (Marks: 05)        

 

Write a small program (Code) in PHP language using for loop which prints from 1 to 100.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1079

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

PHP on Windows

PHP does not come pre-installed on Windows systems. To work with PHP on Windows, PHP will need to be manually downloaded and installed.

You can download PHP from the PHP download page at http://www.php.net/downloads.php. Download the zip package from the "Windows Binaries" section. This guide will assume the PHP version is version 5.x. 

Create a folder on your machine for PHP. For example, c:\php. Extract all of the files from the zip file to the c:\php directory. 

Copy the file called c:\php\php.ini-recommended to c:\php\php.ini 

If you want to be able to see error messages from your PHP pages, open EditRocket and open the php.ini file. Search for the line display_errors, and make sure the value is set to On.

PHP programs can be created using any text editor such as EditRocket. PHP programs and scripts typically end with the .php extension. EditRocket will automatically recognize files with the .php extension as PHP programs, and will color the syntax accordingly.

To create a PHP program, simply create a new file, such as hello.php. In the file, place the following:

<?php  echo "Hello, world!"; ?> 

The above program can be executed using the EditRocket Tools -> PHP -> Execute Program option, or you can execute it from a command prompt. To execute the script in the command prompt, use the cd command to cd to the directory where the hello.php file was saved, such as 

cd C:\Scripts 

Then type the following: 

C:\php\php.exe hello.php 

Hello World! should then be printed to the screen.

Please use the http://codepad.org/ for online compiler 

i have done assignmnt

the next one

I also done the assignment

Dear you can easily complete it by visiting that link 

http://www.w3schools.com/php/php_arrays.asp

You alos can use online editor for PHP by given link

http://phpfiddle.org/

plz share the assingment

koi to hlp kr do

Is this correct? Kindly help please 

<html>

<body>

<?php

$Amount = 5000;

echo "Zakat is:" .($Amount*2.5)/100;

?>

</body>

</html>

okey! thankew 

<?php

$Student = array("Ahmed Ali", "Ikram", "Sumair", "Imran", "Shabeer");

for($x=1;$x<=5;$x++)

{

 echo "Student ".($x).":  ".$Student[$x]."<br>";

}

?>

I am getting this error in this code. Please help

RSS

Latest Activity

+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM401 Fundamentals of Public Relations Assignment No 02 Fall 2019 Solution & Discussion in the group MCM401 Fundamentals of Public Relations
16 minutes ago
+ Drama Queen ! ! ! ! ! ! ! ! ! replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Mery pass tum ho Memes :P
19 minutes ago
+ M.Tariq Malik's discussion was featured
23 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion CS619 Final Project VIVA Preparation Notes
23 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion MCM311 Reporting and Sub-Editing Assignment No 02 Fall 2019 Solution & Discussion in the group MCM311 Reporting and Sub-Editing
23 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion MCM311 Reporting and Sub-Editing Assignment No 02 Fall 2019 Solution & Discussion
23 minutes ago
+ M.Tariq Malik added a discussion to the group CS619 Final Project
26 minutes ago
+ M.Tariq Malik added a discussion to the group MCM311 Reporting and Sub-Editing
26 minutes ago
+ "αяsαℓ " Ќąƶµяɨ •" replied to + "αяsαℓ " Ќąƶµяɨ •"'s discussion Mery pass tum ho Memes :P
27 minutes ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion BT101 Ecology, Biodiversity & Evolution-I GDB Fall 2019 Solution & Discussion in the group BT101 Ecology, Biodiversity & Evolution-I
36 minutes ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion BT101 Ecology, Biodiversity & Evolution-I GDB Fall 2019 Solution & Discussion
36 minutes ago
Profile IconSUMMAN FARRUKH, zaair, Mohsin Ali and 3 more joined Virtual University of Pakistan
36 minutes ago

Today Top Members 

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.