The Kicking Coffee Café $3.50 E- Espresso $4.15 $1.00 $2.75 L-Latte R-Regular 1- Iced program will then ask the user to enter their preference (L for latte, etc.). switch statement to evaluate the users' choice and display a price for the coffee that des a 5% sales tax rate. he of the menu choices are selected (for example, the user enters a S), an appropriate
Q: Beginner Level coding There are two main systems for measuring distance, weight and temperature,…
A: Required: code program that shows the following menu options and lets the user to convert from…
Q: Example 3: Write pseudo code that performs the following: Ask a user to enter a number. If the…
A: - The question is to solve the example number 3.
Q: 2. Develop a program which allows the user (Student) to enter three marks. The program determines…
A: Program Approach: Include necessary libraries. Define the class as XYZ whose variables and members…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Answer :
Q: Write a program that converts temperature between Celsius and Fahrenheit. The program must display a…
A: As no programming language is mentioned, it is solved using basic C++
Q: On planet Groening, there are 8 months of the year as shown in the table. If the user chooses #1 in…
A: #include <iostream> using namespace std; int main() { intnumOfDays; /*used to store…
Q: Imagine a program that displays a menu of five possible choices, lettereda through e. Suppose the…
A: A switch statement is a multiway branch statement. It used when we have multiple conditions and we…
Q: Your task is to create a program that presents the user with the following user menu: 1... Find the…
A: The program provides user with a set of choices to be performed on numbers. The choices are inside a…
Q: Your program shall, Display the menu with the prices. Take an order using the Sentinel approach.…
A: Given : Your program shall, Display the menu with the prices. Take an order using the Sentinel…
Q: In college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: 1) Below is C program to that ask the user to input midterm and tentative final grade, calculate…
Q: This program displays a message box including the name of day when the user input it's number. (For…
A: Sub Main()dim n as integer = System.console.readline()select case ncase…
Q: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium (12…
A: Given requirement, Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9…
Q: Using IF and Switch statement, write a program that displays the following menu for the food items…
A: Program explanation: Include the header file. Choose the item from B F P S. If chosen B display the…
Q: Using Switch statement, write a program that displays the following menu for the food items…
A: The choice and quantity will be the input Based on input choice we implement a switch block to…
Q: ou will write a menu-driven program that draws the coordinate system and some geometric shapes on…
A: void line(){ printf("\n Line formula is y = ax+b "); printf("\n Please enter the coefficients…
Q: Write a program that gives simple math quizzes. The program should display two random numbers. An…
A: Actually, python is a easiest programming language. It is structural and object oriented programming…
Q: What does the InputBox function return when the user clicks the Cancel button in the dialog box? a.…
A: The InputBox function: The InputBox function displays a standard visual basic input dialog box.…
Q: 11: Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: PROGRAM CODE: #include <iostream>using namespace std; int main(){ float Radius, Area,…
Q: A program adds a service fee to the total cost of concert tickets when the tickets are printed and…
A: The mentioned program, on demand of the printing and emailing, adds a service cost with the total…
Q: 2. F&B Fast-Food Restaurant offers three types of menu. Each customer can make an order based on the…
A: Given below java program which implements the methods to implement above asked program, make sure…
Q: b. Use switch statement, the default in the switch expression is a message stating wrong number c.…
A: C program
Q: 11: Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: /* C++ Program to present Geometry calculator menu and display area of circle and volume of sphere…
Q: Shipping is free for online orders totaling $25 or more at Mississippi.com. Orders less than $25 are…
A: Note: You didn't mention any language so i use Python#get the inputs from the userunit_cost =…
Q: Using Switch statement, write a program that displays the following menu for the food items…
A: Declare a character variable and an integer variable to hold type of food and quantity of food,…
Q: Write VB.net program that will ask the user to enter his age and when clicka button, it will show as…
A: Module Module1 Sub Main() Dim num1 As Integer Console.Write("Enter your Age: ")…
Q: Exercise 4 Write a program that allows a user to play HiLo game. User wins if he/she can guess the…
A:
Q: A customer in a store is purchasing five items. Design a program that asks for the price of each…
A: Note: since programming language is not mentioned we are providing solution in c++ . please repost…
Q: Month Weeks This will be a menu-driven program. The menu should look like this: Days 16 Homer 4…
A: Program description: The C++ program,main.cpp that prompts the user to enter a choice from the menu…
Q: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium (12…
A: #include <iostream> #include <iomanip> using namespace std; //Named constants const…
Q: Write a program to enter a number from the keyboard, then check: -if the number is bigger than or…
A: Since anything specific is not mentioned in the question we are solving this question considering…
Q: Q1) Write the pseudocode for the following. a. Ask a user to enter a number. If the number is…
A: Pseudocode for problem Q1 ) a. Initialize variable x←0 x ←Take user input if ( 0 <= x and x…
Q: Write a menu driven program that allow the user to perform any one of the following operations based…
A: Approach: Use switch statement to perform an operation against input given by user. The user enters…
Q: Assume that letter and selection Variables are already declared and initialized. Convert the…
A: Given data is shown below:
Q: ecks whether the point is within the circle centered at (0, 0) with radius 10. For example, (4, 5)…
A: Given:
Q: The do-while statement below lets the user input an integer number multiple times as long as the…
A: Given:
Q: In Lab 2, you created a menu for a simple calculator program. In this lab, you will add some…
A: A C++ program for the given scenario is provided below;Program://Declare necessary header…
Q: GRADED ACTIVITY #5 (M7.2): DECISION CONTROL STRUCTURE (SWITCH) PROBLEM Instruction: The areas of the…
A: Find the required given as below and output:
Q: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz), medium (12oz),…
A: Required: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9oz),…
Q: 9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
Q: Write a short program that displays a list of coffees, like below: The Kicking Coffee Café $3.50 L-…
A: C program used to answer this question is given in the following steps.
Q: (C++) Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium…
A: The program has five menu options: Order Coffee Check total money for the session Check total…
Q: 9. Write a program that displays the following menu: Geometry calculator 1- Calculate the area of a…
A: Use the C++ code #include<iostream>using namespace std; int main(){ int option=0; //to…
Q: ifelseC++ä Exercise 5. Write a program that will calculate the price for a quantity entered from the…
A: #include <stdio.h> int main(void) { int quantity = 0; int price = 5; double total =…
Q: An online sales company sells a ceratin item for $49.99. Quantity discounts are given according to…
A: As there is no programming language is mentioned in the question, So I will solve this question…
Q: The do-while statement below lets the user input an integer number multiple times as long as the…
A: In this question, we are asked about the value of integer number for that given while loop must be…
Q: Jason opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium (12…
A: #include <iostream>using namespace std;//function to show the user how to use the programvoid…
Q: In college, a student may get a grade of 1.0 (as the highest) to 5.0 (lowest). Anyone who get's a…
A: use while(true) loop to check if input grade is valid or not. pass the MG and TFG to…
Q: 1. Draw a flowchart segment that displays a menu with the user option to order Hamburger,…
A: Flow Chart is the pictorial representation of the flow of program
Q: enger. The user inputs the ticket type (business/economy), as well as the of the passenger…
A: Q.6 Form1.html <html><body> <form action="calculate.php" method="POST"> Tiket…
Q: If user presses a or A, the following sub menu should be displayed 1- Count characters: (Program…
A: A C++ program is as follows, File name: “main.cpp” #include<iostream> #include<ctype.h>…
Step by step
Solved in 3 steps with 2 images
- Write a program that calculates the amount of money a person would earn over a period of time I f his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.In C#, please? Write a program named CheckMonth2 that prompts a user to enter a birth month and day. Display an error message that says Invalid date if the month is invalid (not 1 through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between 1 and 29 for February). If the month and day are valid, display them with a message. For example, if the month entered is 2, and the day entered is 17, the output should be 2/17 is a valid birthday.. Many companies use telephone numbers like 555-GET-FOOD so the number is easier for their customers to remember. On a standard telephone, the alphabetic letters are mapped to numbers in the following fashion: A, B and C = 2 D, E and F = 3 G, H and I = 4 J, K and L = 5 M, N and O = 6 P, Q, R and S = 7 T, U and V = 8 W, X, Y and Z = 9 Write a program that asks the user to enter a 10-character number in the format XXX-XXX-XXXX. The application should display the telephone number with any alphabetic characters that appeared in the original translated to their numeric equivalent. For example, if the user enters 555-GET-FOOD, the application should display 555-438-3663. After displaying the translated telephone number, ask the user if they’d like to enter another number. If the user enters “y”, run the program again. If not, terminate the program. (10 points)Note: the sentence the program reads SHOULD NOT be hardcoded. Allow the user to enter the sentence the program reads PYTHON
- Write a C++ program that asks the user to enter the number of books purchased this month and then displays the number of points awarded. An online book club awards point to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points earned 0 0 1 5 2 15 3 30 4 or more 60Write a program using functions and the switch structure to determine the healthiest food store. Build a menu, exactly, like the following menu: Which fast food restaurant provides the healthiest food: 1. McDonalds 2. Jack in the Box 3. Chick-fil-A 4. Exit The user inputs a number 1 or 2 or 3 or 4. If the user types a 1 output to the monitor is "That's right, Mac y Dee! If the user types a 2 output to the monitor is "Yes, the guy with the big round head." If the user types a 3 output to the monitor is "The best chicken in town." If the user types a 4 output to the monitor is "Thank you for choosing!" c++ a. Write a program named CheckMonth that prompts a user to enter a birth month. If the value entered is greater than 12 or less than 1, display an error message; otherwise, display the valid month with a message such as 3 is a valid month. b. Write a program named CheckM0nth2 that prompts a user to enter a birth month and day. Display an error message if the month is invalid (not I through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between I and 29 for February). If the month and day are valid, display them with a message.
- The cost of renting a room at a hotel is, say $100.00 per night. For special occasions, such as a wedding or conference, the hotel offers a special discount as follows: If the number of rooms booked at least 10, the discount is 10%; at least 20, the discount is 20%; and at least 30, the discount is 30%. Also if rooms are booked for at least three days, then there is an additional 5% discount. Write a program that prompts the user to enter the cost of renting one room, the number of rooms booked, the number of days the rooms are booked, and the sales tax (as a percent). The program outputs the cost of renting one room, the discount on each room as a percent, the number of rooms booked, the number of days the rooms are booked, the total cost of the rooms, the sales tax, and the total billing amount. Your program must use appropriate named constants to store special values such as various discounts.A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named constant. Write a program that functions like a cashier terminal for one item. Some items are subject to 7% sales tax and some are not. Use a constant for the sales tax value, too. Write a program for Trader Jane's that runs as shown next: Enter the ticket price of the item 100 Is this item reduced y/n? y is this item taxable y/n? y Here is your bill Original price $100 Reduction during event $25.00 Final price $75.00 7% Sales tax $5.25 Total amount due $80.25Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows (with red…
- Write a program that asks the user for a number in the range of 1 through 7. The programshould display the corresponding day of the week, where 1 = Monday, 2 = Tuesday, 3 =Wednesday, 4 = Thursday, 5 = Friday, 6 = Saturday, and 7 = Sunday. The program shoulddisplay an error message if the user enters a number that is outside the range of 1 through 7In Python, A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named constant. Write a program that functions like a cashier terminal for one item. Some items are subject to 7% sales tax and some are not. Use a constant for the sales tax value, too. Write a program for Trader Jane's that runs as shown next: Enter the ticket price of the item 100 Is this item reduced y/n? y is this item taxable y/n? y Here is your bill Original price $100 Reduction during event $25.00 Final price $75.00 7% Sales tax $5.25 Total amount due $80.25 Plan each program by writing pseudocode. Write all of your pseudocode as comments immediately after your name and SPC ID#. Add more comments as needed in each program to explain your code. Choose descriptive variable names in all programs. Currency format. There should be no space between the $ sign and the first digit. See sep on page 66 to cancel the space automatically added when print items are separated by…Write a program that uses a switch statement as follows: If game contains the letter p , or P the function will print the words “Play Station 4” . If game contains the letter x, X, o, or O, the function will print “Xbox One”. If game contains any other character, the function will return "I don't know". Declare game and initialize to any value.