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

Question

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

 

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 Science

Programing Language

Related Computer Science Q&A

Find answers to questions asked by students like you.

Q: When the INT instruction executes, what is the first task carried out by the CPU?

A: Task carried during the execution of INT instruction INT is an assembly instruction for x86 process...

Q: The next attribute in the Node class is a ________________ to the next node in the linked list.

A: Linked List: Linked list is a data structure that uses pointers to access the list elements stored...

Q: Assume nameListBox is a ListBox control. Write code that reads the selected item from the ListBox. B...

A: Algorithm: The algorithm reads the selected item in list box by avoiding the exception in case of no...

Q: What is the main difference between a tuple and a list?

A: Difference between list and tuple: Some of the difference between list and tuple are given below:

Q: #include <iostream> using namespace std; class SobolooSoba { int Komi(int num1,int num2) { ret...

A: Given: A C++ program using the function overloading concept is provided. The functions are capable o...

Q: What kind of cable would you use to connect endpoint devices and infrastructure devices in a local a...

A: Local area network (LAN): Local area network (LAN) is a collection of small computer or other work...

Q: What format model should you use to display the date 25-DEC-09 as Dec. 25?

A: 'Mon. DD' should be used to display the date 25-DEC-09 as Dec. 25.    

Q: 6. Consider the bipartite network below. 1 4 5 10 a Construct the adjacency matrix. Why is it a bloc...

A: The adjacency matrix for bipartite graph is given as: A = [0r,r B B 0s,s] where r and s are number o...

Q: nuert each of the following decimal Rumbers to binary soctal and hexadecimel Rumbers by using Sum of...

A: 1) 27 CONVERT DECIMAL TO BINARY: a) SUM OF WEIGHT METHOD: b) REPEATED DIVISION:   CONVERT DECIMAL...

Q: What is the purpose of the LOCAL directive?

A: ASSEMBLER DIRECTIVE: Assembler directives are the commands that are written ton direct the assemble...

Q: Consider the Visual Basic code below. What does it calculate in terms of a, b, and c? In Visual Stud...

A: Understanding the program In the above recursive function named CalcQ2, the base case is defined for...

Q: How to create assembly language application programs?

A:   ASSEMBLY LANGUAGE :- It is a low-level programming language .  By a utility program referred to a...

Q: What are the hexadecimal and decimal representations of the ASCII character capital G?

A: Explanation: ASCII stands for American Standard Code for Information Interchange. ASCII is the most...

Q: #include <iostream> using namespace std; // define a function // pass a 2d array as a paramete...

A: To call a function, simply pass the required parameters along with the function name. Complete Progr...

Q: What happens if you assign an empty string to a control’s Text property in code?

A: TextChanged Event: If a control’s text property contents are getting changed, then the “TextChanged...

Q: Create an uninitialized data declaration for an 8-bit unsigned integer

A: Statement: var2 BYTE ?      

Q: True or False In a Pascal case name, the first character is always uppercase.

A: Pascal case: Pascal case is used for method naming. It seems to be similar like camelCase that is u...

Q: Explain the drawbacks presented by serial processing in the early generation of operating systems.

A: The first generation of computer used serial memory processing and it permits only one object to be ...

Q: 7. Among ALOHA, congestion in the network. (a) Pure ALOHA (c) Both a and b type of ALOHA have minimu...

A: (b) Slotted ALOHA

Q: Construct a B+-tree for the following set of key values:(2, 3, 5, 7, 11, 17, 19, 23, 29, 31) Assume ...

A: B+ Tree can be defined as an extension of B Tree. It can perform operations such as insertion, delet...

Q: Design a variant of the hybrid merge-join algorithm for the case where both relations are not physic...

A: Hybrid merge join algorithm:  It is a variation on merge join operation, which is performed on unso...

Q: In what order are output results displayed if a SELECT statement contains a GROUP BY clause and no O...

A: Order displayed by output results The Group by clause is a Structured Query Language (SQL) command ...

Q: List out the various difference between TCP and UDP.

A: TCP: It is a connection-oriented networking standard that facilitates the exchange of messages wit...

Q: Draw the hierarchy chart and design the logic for a program for Arnie's Appliances. Design a program...

A: Click to see the answer

Q: Write a program that prompts the user to enter thecenter coordinates, width, and height of two recta...

A: Program Plan: Import required packages. Declare the main class named “Test” which extends the “Appl...

Q: Draw UML Diagram 1.Define the Entertainment class – it must have at least two attributes and one app...

A: Objective: We need to draw the UML Diagram including the following specifications, The abstract clas...

Q: Dear sir/madam good afternoon!   Please, I need to solve this problem where the question is attached...

A: C++ is a high-level programming language and it is also supported OOPs (Object Oriented Programming)...

Q: Derive the solution of 0-1knapsack problem using the four steps of dynamic programming .  Explain  o...

A: In 0-1 Knapsack problem the aim is to maximize the profit using series of decision while the weight ...

Q: Give your reflection on how pipelining can make computer run faster, dependencies between executing ...

A: It is the way toward amassing instruction from the processor through a pipeline. It permits putting ...

Q: A movie in a local theater is in great demand. To help a local  charity, the theater owner has decid...

A: PROGRAM STRUCTURE: Include the required header files for the program code: Header file iostream is...

Q: Show the IEEE single-precision encoding of binary +1110.011.

A: Given, +1110.011 So +1110.011= 1.110011 X 23, So, the IEEE single-precision encoding of binary +11...

Q: Discuss the advantages and disadvantages of global connectivity in the cloud system

A: Global connectivity in the cloud system: Bulletin board and news media are the two oldest form in d...

Q: Write a program that displays the followingtwo tables side by side (note that 1 ping = 3.305 square ...

A: Write a program to display the two tables side by side. The first table displays the value of the Pi...

Q: Using ERDPlus (at ERDPlus.com) create an ER Diagram as specified in MC3 Funky Bizz of the Database S...

A: MC3: Funky Bizz Requirement Specification: The Funky Bizz maintains a Database system consisting of...

Q: The police academy is paying community policemen and women on table-top and the government believes ...

A: An array of type float named salary and size 5. Variables sum and avg of type float are declared wit...

Q: The standard notation for referring to a control’s property in code is __________. a. ControlName.Pr...

A: Standard notation for control’s property Controls are reusable components that encapsulate user in...

Q: What is the starting location of the BIOS and MS-DOS data area?

A: The entire memory is a memory of multiple partitions. These partitions are basically for distinguish...

Q: Design a Pythonprogram to prime the sum of all the even numbers from 1 to 20.

A: Programming approach: Set the lower limit to 1. Set the upper limit to 20. Set total to 0. Iterate ...

Q: Add another public method called add() to TestFraction1 class. This method adds another fraction to ...

A: Program code: import java.util.ArrayList; import java.util.Scanner; //Define the class Fraction cl...

Q: What is the range of a 32-bit unsigned integer? What is the range of a 32-bit signed integer? What i...

A: i)Range of 32-bit unsigned integer : For n=32, the minimum value : 0 For n=32, the maximum value : 

Q: In cell F11, type an IF function that compares the grade in D11 with the letter F (type F). If these...

A: Step 1:- Introduction:- Excel is a grid of row and column that is used to maintain the database in t...