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.
Q: Which value of x results in short circuit evaluation, causing y (x >= 7) && (y A. 6 B. 7…
A: In between first part (x >= 7) and second part (y < 4) there is a logical AND operator. So,…
Q: Create a program in SFC for the following: A three way switch where the left position operates…
A: SFC : Sequential Function Chart is a graphical programming language that displays the process flow…
Q: Write a piece of code that prompts the user for a number and then prints a different message…
A: Code: public class OddEvenSum { // Save as "OddEvenSum.java" public static void main(String[]…
Q: Write a C++ program that will simulate a Point-of-Sales terminal in Snack Bar. For example,these…
A: Begin Enter values of items in a variable Set default value of quantity of all the items=0 Take user…
Q: Write an interactive C program that calculates a customer’s bill for the Jumbo telecommunication…
A: PROGRAM: //Header file #include <stdio.h> #include <stdlib.h> //Declaring the function…
Q: Write a program in c language for a single switch light if you entered 1 then, it will printout a…
A: #include <stdio.h> int main(){ int num; printf("enter the number");…
Q: Here is a numerical expression in C: x c« 1 containing an unknown number z. If the value of the…
A: This question comes from From Programming Language which is a paper of Computer Science. Let's…
Q: Write a script to find and print current day and time import time now =…
A: Python code: from datetime import datetime now = datetime.now() dt_string = now.strftime("%d/%m/%Y…
Q: Draviya is in 3rd class and her class teacher gave a assignment to him to find the lcm using hcf.…
A: Least Common Multiple (LCM) The least common multiple of two numbers a and b is the smallest…
Q: Write a program for Horizon Phones, a provider of cellular phone service.Prompt a user for maximum…
A: code :-- //for Scanner classimport java.util.*; public class Main{ public static void main(String[]…
Q: 2. Write a program in five_vowels.py that: prompts the users for a word of any length outputs one of…
A: Below is the required python code. NOTE: Use proper indentation in order to run the program…
Q: Write an program that will take a 5 digits integer from user and calculate the sum of all digits of…
A: Below is the required code in C language. Program approach: Include necessary header files to get…
Q: How do you model the following situation with use case diogram: The lab director does a lab test…
A: Extend is used when a use case conditionally adds steps to another first class use case. Include is…
Q: Here are a couple of numerical expressions in C: x $7 and x /1 containing an unknown number z. If…
A: We are allowed to solve first question in multi part question . please upload other questions again…
Q: Write a program that will send notification to Warehouse Manger when the inventory of an item become…
A: Step-1: Start Step-2: Declare variable str and quantity Step-3: Take input product name and store in…
Q: Write a C++ program that would ask the user to type a temperature in Fahrenheit then will be…
A: ALGORITHM:- 1. Take input from the user for temperature in farehnite. 2. Convert it to temperature…
Q: Write a program for a single switch light if you entered 1 then, it will printout a message saying…
A: #include <iostream> using namespace std; int main(){ int n; cout<<"enter number…
Q: Write a program that takes the X-Y coordinates of a point in the Cartesian system and displays a…
A: We have to write Code and draw a flowchart for the following question:
Q: Create a simple program in CodePen.io that can convert temperature, Celcius to Fahrenheit and vice…
A: Write a program in CodePen.io which can convert temperature, Celcius to Fahrenheit and vice versa.…
Q: Write a shell script program to calculate the net pay (monthly salary) of an employee who works in…
A: GIVEN: Write a shell script program to calculate the net pay (monthly salary) of an employee who…
Q: Write a program to calculate the total employee salary (basic salary overtime house rent) based on…
A: Task :- Write a program to calculate the total salary for an employee. (Note :- As programming…
Q: Write a complete interactive CSharp program that prompts the user for the volume and height of the…
A: Using Cylinder Volume formula we can find the radius and twice of this radius is diameter Using…
Q: Given the code below, what line executes after line 2 executes? * x = 4 if x < 3: print ("x is less…
A: Python is a high-level, general-purpose programming language that is interpreted. Python's core idea…
Q: Write a C program that takes x-y coordinates of a point in the Cartesian plane and prints a message…
A: Solution Explanation: First I asked for the user to give values for x,y printf("Please enter x, y…
Q: It is required from you to write a program for switch light with two buttons that are connected to…
A: The required C program code is given below: #include <stdio.h>#include <conio.h>int…
Q: write a program to enter a user name and display the message (hello) three times. The first one for…
A: Python used to answer this question
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write an program to calculate the total salary for an employee. (Note :- As programming…
Q: Write a program that prompts the user to input the elapsed time for an event in seconds. The program…
A: Given: Write a program that prompts the user to input the elapsed time for an event in seconds. The…
Q: It is required from you to write a program for switch light with two buttons that are connected to…
A: Here i am using c language to write code for the above problem given. #include<stdio.h> int…
Q: Using netbeans, make a program that converts years to days, weeks, hours, minutes, and second.…
A: Objective: This program asks the user to input the number of years in a text box and shows the…
Q: Write a program in C language by using switch statement for switch light with two buttons that are…
A: Switch case statements are used to replace if...else statements to avoid long statements with…
Q: : Which fast food restaurant provides the healthiest food: 1. McDonalds 2. Jack in the Box 3.…
A: #include <iostream>using namespace std; // This function prints the menuvoid menu() { cout…
Q: Write a program to have the user guess a number stored in the program. If he guesses right, tell him…
A: write a program to have user guess a number stored in the program,if he guess right,tell him so ,if…
Q: 6) What will be displayed on the message dialog when the following lines are executed? String name1=…
A: String name3=name1+space+name2 Result in name3 is = Mahatma Ghandi Explanation In java we use +…
Q: Write the CellPhoneService program for Horizon Phones, a provider of cellular phone service. Prompt…
A: import java.util.Scanner; public class CellPhoneService { public static void main(String[] args)…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write a program to calculate the employee salary . Note :- As programming language is not…
Q: Write a JavaScript function timer(), which implements a countdown timing utility. When calling the…
A: Given question has asked to write JavaScript function timer(), which implements a countdown timing…
Q: Design a project to find the smallest number in three mumbers by calling the subroutine (Smallest)…
A: The answer for both mcqs is given below.
Q: Write a C# program using a switch statement that switches on the variable name. If the name is…
A: HI THEREI AM ADDING C# CODE AS PER REQUIREMENT BELOWPLEASE GO THROUGH ITTHANK YOU
Q: Write à program that takes a first name as the input, and outputs a welcome message to that name.…
A: Hi, here in this question programming language is not mentioned, so here I am doing it is Java and…
Q: Write a simple program in c# Windows Form App that accepts two prices from the customer; and then…
A: Declare class Initialise variables Perform the calculation Take user inputs Display the result.
Q: Write a program in c language for a single switch light if you entered 1 then, it will printout a…
A: Include necessary header files declare a integer variable n to get the input from the user write a…
Q: es the square footage of a house given the dimensions of each room. Have the program ask the user…
A: As not mentioned I have solved the question in C Language Code: #include <stdio.h> float…
Q: Write a program c++ that accepts a two-digit number and check if the ones digit is greater than the…
A: Program code: #include <bits/stdc++.h> using namespace std; int main() { cout <<…
Q: Write a program that asks for values from the user and find out which number was entered the most…
A: Find Your Code Below
Q: Write a program that simulates the normal operation of a modern elevator with 25 floors (levels) and…
A: Algorithm: Start the program. Read the current floor from user. Read the option from user to move…
Q: Write a program that enters the time of a phone call in seconds. If the duration of the call is a…
A: Solution: Include necessary header files In the main method declare the variable time and balance…
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: Let us consider a Java program that converts a time from 24-hour notation to 12-hour notation and…
Q: Write a C++ Program for a perfect voting system for the country. If a voter votes for PPP a message…
A: Program code: //include the header files#include <iostream>using namespace std;//define the…
A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named constant. Write a
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 4 images
- In 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…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.25You are a Chemistry major who has to create a program for first time chemistry lab users. The Erlenmeyer flask contains a nitric acid solution. When the student presses a button, 0.5 mL of NaOH solution can be added to a buret, which is set up over the Erlenmeyer flask. An indicator is added to the solution being titrated. The indicator is a substance that changes to blue when the reaction is complete (endpoint). You determine the amount of mixture that will cause this reaction to occur. Create a titration simulator that will allow a student to add up to 18 mL of titrant. Notify the student when the mixture turns blue. In Python please :)
- Write a program that calculates and prints the bill for a cellular telephone company. The company offers two types of service: regular and premium. Its rates vary, depending on the type of service. The rates are computed as follows:Regular Service: $10.00 plus first 50 minutes are free. - Charges for over 50 minutes are $0.20 per minute.Premium service: $25.00 plus - For calls made from 6:00 a.m. to 6:00 p.m.,the first 75 minutes are free;charges for more than 75 minutes are $0.10 per minute.- For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes arefree; charges for more than 100 minutes are $0.05 per minute.Your program should prompt the user to enter an account number, a service code (type char), and the number of minutes the service was used. A service code of r or R means regular service; a service code of p or P means premium service. Treat any other character as an error. Your program should output the account number, type of service, number of minutes the telephone…Write a program in Restaurant.cpp to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the different breakfast items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item): Name Price Egg (cooked to order) $1.99 Golden-Brown Pancake $1.99 French Toast $2.99 Muffin $0.99 Bagel w/ Spread $1.20 Fresh Fruit $3.49 Steel-Cut Irish Oatmeal $4.69 Coffee $1.50 Pot of Assorted Tea $1.75 Hot Chocolate $1.75 Define a struct named MenuItem with two components: name of type string and price of type double. Use an array of the struct MenuItem to store each menu item and a parallel array to store the quantity of each item a customer orders. Your program must contain at least the following functions: Function getData: This…Write 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 to simulate a bank transaction. As the banker, create a single pin number for all customer that enter the bank (a constant variable). You are now ready for customer transactions. Prompt the customer for their name and pin number. If the pin number does not match your banker pin number, then they are not a valid customer. Send them away. If the customer is a valid customer, there are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts; reject negative balances. Then ask for the transactions; options are deposit, withdrawal, and transfer. Then ask for the account; options are checking and savings. Then ask for the amount; reject transactions that overdraw an account. At the end, display the balances of both accounts (using printf) to two decimal places and with a leading dollar sign.In C++ , Write 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…Write a program named CopenhagenTransit that computes the fare on the Copenhagen Transit system given two inputs from the user: The zone number: 1 or more The passenger type: adult or child Your prompts to the user must be : Enter zone number : Enter adult or child : The fare on Copenhagen Transit is specified as follows: If the zone is 2 or smaller and the ticket type is "adult," the fare is 23.0. If the zone is 2 or smaller and the ticket type is "child," the fare is 11.5. If the zone is 3 and the ticket type is "adult," the fare is 34.5. If the zone is 3 or 4 and the ticket type is "child," the fare is 23.0. If the zone is 4 and the ticket type is "adult," the fare is 46.0. If the zone is greater than 4, the fare is -1.00 (since your calculator does not handle inputs that high). Your output must be in the format: The fare for adultOrChild to zone number zoneNumber is fare. A sample run of the program with inputs 3 and adult must look like: Enter…
- Consider the elevator in the Faculty of Engineering (5-storey). Write a program that accepts the floor number where a passenger (student/faculty/other personnel) will ride the elevator. The passenger can then input the target destination floor. Do not use other commands. Only use Switch Statements. SPECIFICS :- Passengers can ride on any floor (1,2,3,4 or 5).- The program will prompt the user with the target destination floor. After the user input:- Program will display the floors which the elevator passes through, and finally the destination floor.- Elevator will not move if the input for the destination floor is the same as the present floor. The program will notify the user and then terminate.- Program will also terminate if the input destination is not 1,2,3,4 or 5- You’re free to format the input/output display.- Observe proper code indention- All lines should have a comment EXAMPLE: If the starting floor is 1 and the destination floor is 5, The program will display: “ 2” “3”…An Internet service provider has three different subscription packages for its customers:Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00per hour.Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00per hour.Package C: For $19.95 per month unlimited access is provided.Write a program that calculates a customer’s monthly bill. It should ask the user to enter theletter of the package the customer has purchased (A, B, or C) and the number of hours thatwere used. It should then display the total charges. Please program in C++ Requirements: Please include a Flowchart and the pseudocode for your programAn Internet service provider has three different subscription packages for its customers: Package A: For $9.95 per month 10 hours of access are provided. Additional hours are $2.00 per hour. Package B: For $13.95 per month 20 hours of access are provided. Additional hours are $1.00 per hour. Package C: For $19.95 per month unlimited access is provided. Write a program that calculates a customer’s monthly bill. It should ask the user to enter the letter of the package the customer has purchased (A, B, or C) and the number of hours that were used. It should then display the total charges. Requirements: Please include a Flowchart and the pseudocode for your program and use Visual Basic