Question: MITIR3 - Introduction to Programming Logic Version 2 Test 1 - Part B (Total 50 points) Name: Student Number Instructions: Using JavaScript and HTML, write


MITIR3 - Introduction to Programming Logic Version 2 Test 1 - Part B (Total 50 points) Name: Student Number Instructions: Using JavaScript and HTML, write statements that satisfy the requirements / output the specific results Be careful with all words in your code, take care with capital and small letters, syntax punctuations, end of statement semicolon etc. Comment where possible to explain what you are doing Part B: Programming in Javascript The program you are designing will help calculate the cost of spitting a restaurant bill. You are asked to create a program that will evenly split a restaurant bill between four people. Your job is to use JavaScript to convert the following pseudocode into a working program. It will take in the price for each person's meal and then it will display how much each person has to pay if the entire tab was split evenly. Your program will display the results to look like this: Welcome to the MIT153 - Evenly Split Calculator! The total till came to $400.00 Each person owes: $100.00 Thank you for using the Evenly Split Calculator. Do not do more than what is asked. Ensure that the output that is displayed matches the output shown above, Download the blank HTML document located in the content folder to use as a starting point for your project when you have completed the task Save this file as your FirstName Your tastname EvenSplichtml 32 marks Zip files and submit using the test submission point You MUST submit the files in this manner and verify that the flies have been properly received prior to shutting down your computers //Comments Part // your detalls goes here Start J/Declare variables and constants Declare Numeric meals, meal2, meal3, meal4 Declare Numeric total Declare Numeric avg Declare Constant NUM_MEALS 4 I/Display a welcome message 7/Request user input Display "Enter the the price of the first meal" Input meali Display "Enter the price of the second meal" Input mealz Display "Enter the price of the third mear Input meals Display Enter the price of the fourth meal Input meal 4 i/calculations for finding cost and average go here Display "total bill comes to:"+total Display "Each person owes:$"+avg //Display end of program message Display "Thank you for using the Evenly Split Calculator" Stop Display / Display customer's name and their purchase. Must have the cost of each individually and the total cost and average/
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
