Question: Complete the form below - filling in the fields based on the output of your program. Check it is working correctly, then answer the questions.

Complete the form below - filling in the fields based on the output of your program. Check it is working correctly, then answer the questions.

Complete the form below - filling in the fields based on the

output of your program. Check it is working correctly, then answer the

Complete the form below - filling in the fields based an the output af your program. Check it is working carrectly, then answer the questions. Desk Check Task: Calculate Bill Total Required Varishles: Pseudocode: Read the value of appetizar_priee Read the value of nain_priee Read the value of deasert_price tota1_priee = appatizex_price + naln_price + desaert_priee 5 Print 'S' then the value of tatal_priee to the terninal ahowing two decinal places. Test Data: Expected Result: Order the sequence of the input and output as expected Hint: Drag and drop each sentence in the correct order from the input bax to the output box. Fallaw the logic above in the Pseudacode section ntinne Solution Fil the bowes in by completing the missing code in bill_total.rb and then run it with the test data above: The values can be faund in the test data and expected data First Pass Fead the value of appetizer_price Fead the value of main_price 34.0U Fead the value of dessert_price 8.50 Calculate the total_price 52.80 Canvert to dollars tatal _price $52.80 "hint to convert to the dallar, add the $ sign before the tatal Output the total $52.80 vhint: the tatal should contain the $ sign and the total number Fill this in by completing the missing code in bill_tatalub and then run it with the test data above: Second Pass Fead the value of appetizer_price 1240 Fead the value of main price 41.00 Fead the value of dessert _price 9.80 Calculate the total_price 63.20 Canvert to dollars tatal_price 963.20 *hint to convert to the dallar, add the $ sign before the tatal Output the total 963.20 "hint: the tatal should contain the $ sign and the total number Focus in the following on using the correct computing terminology. Af Here are scme terms that may help you: Assignment, evaluate, increment, Using a few sentences explain why it may be important to ewecute statements in the correct sequence. (eg: what might happen if the last statement in Program 2 was executed earlier) Walue a will always be 0 if a statement ike " a=0 " is placed after the statement "a =a+1, " as they repeatedy reset the laop to 0 . This does nat mean that if a=0 occurred inside the loop, a will always be 0 . The code main_price =10 is an example of which kind of programming statement? This is an ???? statement. What actions does the computer perform when it executes a=a+b ? The computer first ???? Then it ???? How would the value of the variable i change in statement i=i+1 ? The value of I will be ??? What sort of types will Ruby use to stare the following variables (given the assaciated variable values)? Note: possible types indude: Integer, String, Flaat, Bodean A person's name e.g: "Fred Smith" Number of students in a class e.g: 23 The average age of a group of pecple e.g: 23.5 A temperature in Celsius eg: 45.7 True ar false e.g: 1==2 Variables have a scope - what are two different scapes variables can have in fuby? See the lesson materials for help with Question 6. You could alsa see

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!