Using Switch statement, develop application that displays the following menu for the food items available to take order from the customer: B= Burger F= French Fries P= Pizza S= Sandwiches I = Ice-cream The program inputs the type of food and quantity. It finally displays the total charges for the order according to following criteria: Burger = Rs. 220 French Fries= Rs. 50 Pizza= Rs. 300 Sandwiches= Rs. 150 Ice-cream = Rs. 90

Question

Using Switch statement, develop application that displays the following menu for the food items available to take order from the customer:

  • B= Burger
  • F= French Fries
  • P= Pizza
  • S= Sandwiches
  • I = Ice-cream

The program inputs the type of food and quantity. It finally displays the total charges for the order according to following criteria:

  • Burger = Rs. 220
  • French Fries= Rs. 50
  • Pizza= Rs. 300
  • Sandwiches= Rs. 150
  • Ice-cream = Rs. 90

Expert Answer

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: Write a function replace_head_tail that takes a string str1 and replaces the first X and last Y char...

A: Please find the answer below :  

Q: 1. Construct a E-NFA 15 or more state having E={a, b, c}. It must have at least 5 E-transitions.

A: ε-NFA is the Non-Deterministic Finite Automata, which takes ε as inputs and make null transitions. T...

Q: In this exercise, we will examine how replacement policies impact miss rate. Assume a 2-way set asso...

A: In LRU or Least Recently Used algorithm, the least recently used item is discarded first. MRU or Mos...

Q: The following are excel sheets with column headings. Select all the themes that can be gleamed from ...

A: Objective: Two spreadsheet names along with column headings are given. These spreadsheets are EQUIPM...

Q: Scope Creep is of considerable concern on many IT projects as it has the potential to lead to less t...

A: SCOPE CREEP a) Scope Creep is also known as requirement creep or even feature creep. Scope creep def...

Q: Sequential and direct access are two methods to locate data in memory. Why major devices now a days ...

A: Secondary Hard Disk Pendrive Computer Operating System Mobile Phones Tablets

Q: 1. Deveiop a UML Class diagram For Online railway reservation system. 2. Develop a UML. Class diagra...

A: 1. Use Case Diagram The use case diagram is usually referred to as a behavior diagram used to descri...

Q: I just need the answer for it

A: All the fields or comparisons are done on Track and CD table    

Q: Write the answers to the following questions. Q5.1 Write short Java code to display the following sc...

A: Java is an object oriented programming language. It has OOPS features- encapsulation, inheritance, a...

Q: Define referential integrity constraints. I need the answer in short sentences thanks

A: Introduction of Integrity Constraints: Integrity means in Database to maintain the consistency and a...

Q: You are given two dummy-headed singly-linked lists, write a method to sum theintegers represented in...

A: STEP 1:-   The linked list is a data structure. This data is store in the node and the node is divid...

Q: Draw the block level diagram of the pipelined operand fetch (OF) stage of 5-   stage pipeline(IF,OF,...

A: Pipelining is a technique which allows several instructions to overlap in time; different parts of s...

Q: Find the topology of the network if Table below is the routing table for router R1. Mask Network ...

A: the routing table for R1 is given as  Mask Network Address Next-Hop Address Interface /27      ...

Q: I need a python program to write the csv file with the data contains about reservation details of 50...

A: Define module csv Define list variable names with elements to be set as row names Define list data w...

Q: Could you help me find a complete trace of this function?

A: In order to visualize the complete output of the recession function, the recursion tree is drawn for...

Q: BbC ing 2 Heading 3 Title Homework 2 Consider Table 6-2 on P263 in the textbook. All duration estima...

A: Actually, network is a all devices communicate with each other.

Q: Develop an algorithm and implement First-In-First-Out (FIFO) page replacement algorithm using C/C++....

A: answer  given string :- 11 13 10 14 15 12 11 19 18 16 15 17 14 16 19 21  frame size = 3 (FIFO)   ...

Q: *6.7 (Financial application: compute the future investment value) Write a function that computes fut...

A: //SOURCE CODE IN JAVA import java.util.*; import java.util.Scanner; class FutureInvestmentValue { pu...

Q: What is the greatest advantage of using wireless?

A: Please find the answer below :

Q: Write an application that displays the factorial for every integer value from 1 to 10. A factorial o...

A: Program : Factorial.cpp #include <iostream.h>#include<iomanip.h> int main(){    unsigne...

Q: A dispatcher of RTOS has the following three resources, A, B, and C. A has 7 instances, B has 5 inst...

A: RESOURCE ALLOCATION TABLE: 1) Available = 1 0 2 Banker's algorithm applied:a. We check if any reque...

Q: Why Data Bus is bidirectional

A: Data bus is bidirectional :  It is a group of conducting wires which carries Data only. Data bus is ...

Q: Software Engineering instructor prepares an exam, he informs his students about the exam details suc...

A: Software engineering is a branch of computer science which includes the development and building of ...

Q: // This program demonstrates a unique_ptr pointing to a dynamically allocated array of integers. #in...

A: This program has asked to write a program to demonstrate unique_ptr pointing to a dynamically alloca...

Q: Give solution in C++ Language with secreenshoot of each step.

A: #include <iostream>using namespace std;int main(){ double number,score; string color; wh...

Q: 35 - 26 - 4 - 15 - 12 - 76 - 43 - 23 - 45 - 2 - 88 - 98 - 11 27 - 63 - 22 - 55 - 8 - 1 - 29 a) Inser...

A: While constructing a binary search tree, first, the root node is placed, Then the smaller values are...

Q: Write an 8051 C program to send letters ‘M’, ‘D’, and ‘E’ to the 16x2 LCD.

A: 8051 Microcontroller : An 8-bit microcontroller basically designed by Intel having 40 pins DIP(Dual ...

Q: Part 1: You are required to build an application to assist in the conduct of Assessments. The class ...

A: code for both the classes is in step two. please feel free to ask any follow-up questions. in case y...

Q: write a c code for this code While travelling in a train, you observe some college students pulling ...

A: ALGORITHM: Declare             Integer n             Integer m Begin             Read n and m       ...

Q: Consider the following traditional file system, which shows a number of index cards stored in two se...

A: Actually, database is used to stores the data.

Q: Design a combinational circuit that reads two numbers, X and Y, each with four bits. The circuit out...

A: Click to see the answer

Q: You are required to build a class ArithematicProblem that represent a binaryarithematic problem such...

A: public class Main{ public static void main(String[] args) {    //create instance of each class  Addi...

Q: Which of the following factors does NOT cause the address (virtual or physical) of a specific variab...

A: Option B(Writing a '3' to /proc/sys/vm/drop_caches) is used to free os cache which can change addres...

Q: The following C program will print all characters of a strıng on the screen until thể third occurren...

A: Actually, program is a executable software that runs on a computer.

Q: Subject : IT Project Management

A: Objective: In an IT project, six activities are provided to calculate the early start, early finish ...

Q: Given a non-dummy headed circular list, write down a method for inserting an elementinto the list.

A: In a circular linked list, the last node contains a pointer which points to the first node of the li...

Q: Make an empty array of 5-by-5 elements, enter the elements into array from keyboard,and print upper ...

A: #include<stdio.h> int main(){    int a[5][5],i,j;    printf("enter elements into 5 * 5 matrix"...

Q: Implement this program to understand use of Arrays in real world examples. A small airline has just...

A: Note: Below is the required program in java language. Program Explanation: Two functions are include...

Q: I asked this question last night but Column "Order ID" was missing and found some error such as two ...

A: The query is asking to do the normalization of the given data into different normalization forms.

Q: Choose the correct answer from the number of the set S={x | x is the square of an integer x<100} ...

A: Please find the answer below :  

Q: The language is C++ 4. Write a program that reverses the input number. Formulate anequationto come u...

A: Program code: //include the required header files#include <iostream>using namespace std;//defi...

Q: Why do we have to study character codes? What is its important in the field of engineering? What are...

A: Studying character codes Character codes are used for interpreting raw zeroes and ones into real ch...

Q: Compare uniprocessor systems with multiprocessor systems in the following aspectsi. Ease of programm...

A: Multi-processor systems—Two or more multiprocessor systems Computer processors to perform several pr...