Hey guys! I made a restaurant calculator in PowerApps! It allows you to select the percentage and pay the amount and the tip. You can even split the amount depending on the number of people!
Learn how to make it yourselves step by step by referring the steps below!
Step 1: Create a welcome screen by adding labels and preferred images.
Step 2: Create a button called 'Start'.
Step 3: Create a another screen called MainScreen.
Step 4: Go back to welcome screen and under the Onselect Property of the button, type this code - Navigate(MainScreen)
Step 5: Create a slider and set the max to 50 in the properties and min to 0.
Step 6: Create 3 labels called Amount, Tip and Total.
Step 7: Add 3 text inputs. Rename them as AmountTI, TipTI and TotalTI.
Step 8: Select the TipTI and type this code - RoundDown(Slider1.Value*AmountTI.Text*.01, 2) 🔔Ensure the name of the slider is Slider1 in this case. You can add your preferred name.
Step 9: Select the TotalTI and type this code - RoundDown(TipTI.Text+AmountTI.Text, 2)
Step 10: Add a checkbox called SplitCheckbox.
Step 11: Add two labels called No. of people and Each Pays, as shown below.
Step 12: Add two text inputs called No.OfPplTI and EachPaysTI.
Step 13: Under No.OfPplTI in Default property, add this code - RoundDown(TipTI.Text+AmountTI.Text, 2)
Step 14: Under EachPaysTI in Default property, add this code -(RoundUp(TotalTI.Text/No.OfPplTI.Text, 2)
Step 15: Under the Visible properties of the labels and text inputs (No.Of people, Each Pays, No.OfPplTI and EachPaysTI), add this code - SplitCheckbox.Value = true. This helps to only show the above mentioned text inputs and labels to show only if the checkbox is clicked.
Bye!
0 Comments