# CS101 Assignment 3 Solution and Discussion

• You are required to make a bill calculator application for a fast food restaurant. The restaurant offers some foods, that can be ordered by customers. Customer can order any number of items. You should design a program to calculate bill accordingly.

Program should add 19% GST to the stated order by your customer. If the customer’s bill is greater than 1000 rupees, the restaurant will give 5% discount on complete calculated bill.

You program must show the complete order details along with GST calculations, Discount (if applicable) and final amount.

a) Pizza (Rs 999)
b) Burger (Rs 250)
c) Sandwich (Rs 150)
d) Paratha Roll (200)
2. Program must ask quantity for each item and calculate its total price.
3. Program will add 19% GST to the bill and Calculate total Bill.
4. Program will offer/give 5% discount if total bill is greater than 1000 Rs.
5. Show the payment along with all calculation (price, GST, discount) in proper format.

• Assignment 3 solution 2021

• dear zaasim can you tell me how can we make on words document please tell me the how i type on word

• @kashif-malik said in help:

You are required to make a bill calculator application for a fast food restaurant. The restaurant offers some foods, that can be ordered by customers. Customer can order any number of items. You should design a program to calculate bill accordingly.
Program should add 19% GST to the stated order by your customer. If the customer’s bill is greater than 1000 rupees, the restaurant will give 5% discount on complete calculated bill.
You program must show the complete order details along with GST calculations, Discount (if applicable) and final amount.

a) Pizza (Rs 999)
b) Burger (Rs 250)
c) Sandwich (Rs 150)
d) Paratha Roll (200)
Program must ask quantity for each item and calculate its total price.
Program will add 19% GST to the bill and Calculate total Bill.
Program will offer/give 5% discount if total bill is greater than 1000 Rs.
Show the payment along with all calculation (price, GST, discount) in proper format.

``````<html>
<title>Currency Converter</title>
<body>
<table Align="center" >
<tr>
<td  style="background:black"><h1 style="color: aliceblue"> Currency Converter </h1></td>
</tr>
<tr>
<td style="background:#2CBCFF"> Welcome to online Currency Converter </td>
</tr>
</Table>
<form name="f">
<table Align="center">
<tr>
<td><br>
PAK Currency (Rupees) :
<input id="inputcurrency" type="number" name ="rupees">
<input  type="button" name ="Convert" Value = "Convert" onclick="currencyConverter(f.rupees.value)"></td>
</tr>
</Table>
<br>
<table Align="center">
<tr>
<td> Dollar (American): </td>
<td><input id="dollar"></td>
</tr>
<tr>
<td> Yuan (China):</td>
<td><input id="yuan"></td>
</tr>
<tr>
<td> Won (Korea): </td>
<td><input id="won"></td>
</tr>
<tr>
<td> Riyal (Saudia):</td>
<td><input id="riyal"></td>
</tr>
<tr>
<td> Dinar (Kuwait): </td>
<td><input id="dinar"></td>
</tr>
<tr>
<td><input type="reset"  name="reset" Value="Reset Form"></td>
</tr>
<tr>
<td colspan="2">You Can Press Reset Button for resetting the form</td>
</tr>
</Table>
</form>
<script>
function currencyConverter(valNum) {
if(f.rupees.value <= 0)
else
{
document.getElementById("dollar").value=(valNum/158.93).toFixed(2);
document.getElementById("yuan").value=(valNum/23.12).toFixed(2);
document.getElementById("won").value=(valNum/0.14).toFixed(2);
document.getElementById("riyal").value=(valNum/42.37).toFixed(2);
document.getElementById("dinar").value=(valNum/522.21).toFixed(2);
}
}
</script>
</body>
</html>
``````

1

1

2

4

1

3

1

1
| |