Status: Complete ✔️
Academic work carried out in the discipline of web programming. Used to introduce the php language.
Technogies | PHP | WampServer |
Version | 7.3.12 | 3.2.0 |
-
Exercise 01:
Enter a number and inform if it is divisible by 10, 5, 2 or none of them.
-
Exercise 02:
Make a program that receives two numbers, the first will be the number to be calculated and the second will be the end of the multiplication table, in this case there will also be an operator that the user will inform to show the result.
-
Exercise 03:
Draw up a program that calculates what should be paid for a product considering the normal label price and the choice of payment terms. Use the codes in the table below to read which payment term you have chosen and make the appropriate calculation. Use the Switch command.
- Cod 1 - Cash, receive 10% discount;
- Cod 2 - cash on the card, receive 5%;
- Cod 3 - In 2 times, normal price;
- Cod 4 - In 3 times, normal price plus 10% interest.
-
Exercise 04:
Make a program that receives 3 numbers. Inform which is the largest and the smallest of the three. If the result of the sum of the two (largest and smallest) is greater than 100, the program should present its result by multiplying the largest with the smallest. IF/ELSE
-
Exercise 05:
Make a program that receives two numbers. One will be the starting value and the other will be the end. Using the range () function of php display the list of these numbers (initial to the end) through a foreach.
# clone repository
git clone https://github.com/DiegoAdrianoMendes/TrabalhoPHP
- Install the Wampserver in wampserver
- Move the TrabalhoPHP folder to C:\wamp\www
- Start wampserver
- Open your browser and type localhost/TrabalhoPHP
Diego Mendes