A certain store has the following scheme: Commodity Code: X - commodities are discounted by 8% Y - commodities are taxed by 11% Z - commodities are charged as priced Using a Decision Control Structure (if), create a flowchart and a java program that reads a commodity code, quantity of the commodities bought and the unit price and output the amount to be paid by the customer. Depicted below are sample outputs when the program is executed (the items in bold characters are inputted by the user, while the items in bold italic characters are calculated and outputted by the program):

Principles of Information Systems (MindTap Course List)
12th Edition
ISBN:9781285867168
Author:Ralph Stair, George Reynolds
Publisher:Ralph Stair, George Reynolds
Chapter1: An Introduction To Information Systems
Section: Chapter Questions
Problem 4PSE
icon
Related questions
Question

A certain store has the following scheme:
Commodity Code:
X - commodities are discounted by 8%
Y - commodities are taxed by 11%
Z - commodities are charged as priced
Using a Decision Control Structure (if), create a flowchart and a java program that
reads a commodity code, quantity of the commodities bought and the unit price and
output the amount to be paid by the customer.
Depicted below are sample outputs when the program is executed (the items in bold
characters are inputted by the user, while the items in bold italic characters are
calculated and outputted by the program):

Messenger
Binomial Theorem.
Visual Studio Code.
Course Guide and.
CE1121 ENGINEERI.
Begin Again Official.
Java Tutorial #2: Va.
Online Ja
GRADED ACTIVITY #4 (M7.1): DECISION CONTROL STRUCTURE (IF) PROBLEM
Instruction:
A certain store has the following scheme:
Commodity Code:
x- commodities are discounted by 8%
Y - commodities are taxed by 11%
Z. commodities are charged as priced
Using a Decision Control Structure (if), create a flowchart and a java program that
reads a commodity code, quantity of the commodities bought and the unit price and
Depicted below are sample outputs when the program is executed (the items in bold
characters are inputted by the user, while the items in bold italic characters are
calculated and outputted by the program):
Enter commodity code: X
Enter quantity of commodity: 2
Enter unit price: 53.25
Amount to be paid is P97.98
Enter commodity code: E
Invalid Code
Enter commodity code: Y
Enter quantity of commodity: 2
Enter unit price: 53.25
Amount to be paid is PI18.22
Enter commodity code: Z
Enter quantity of commodity: 3
Enter unit price: 53.25
Amount to be paid is P159.75
Required: The flowchart, the java file (FamilyName_CommodityCode.java) containing
the code and 4 image files (Sample1, Sample2, Sample3, and Sample4) containing
different sample input/output of the program.
79
Property of and for the exclusive use of SLU. Reproduction, storing in a retrieval system, distributing, uploading or posting online, or transmitting in any form or by any
Transcribed Image Text:Messenger Binomial Theorem. Visual Studio Code. Course Guide and. CE1121 ENGINEERI. Begin Again Official. Java Tutorial #2: Va. Online Ja GRADED ACTIVITY #4 (M7.1): DECISION CONTROL STRUCTURE (IF) PROBLEM Instruction: A certain store has the following scheme: Commodity Code: x- commodities are discounted by 8% Y - commodities are taxed by 11% Z. commodities are charged as priced Using a Decision Control Structure (if), create a flowchart and a java program that reads a commodity code, quantity of the commodities bought and the unit price and Depicted below are sample outputs when the program is executed (the items in bold characters are inputted by the user, while the items in bold italic characters are calculated and outputted by the program): Enter commodity code: X Enter quantity of commodity: 2 Enter unit price: 53.25 Amount to be paid is P97.98 Enter commodity code: E Invalid Code Enter commodity code: Y Enter quantity of commodity: 2 Enter unit price: 53.25 Amount to be paid is PI18.22 Enter commodity code: Z Enter quantity of commodity: 3 Enter unit price: 53.25 Amount to be paid is P159.75 Required: The flowchart, the java file (FamilyName_CommodityCode.java) containing the code and 4 image files (Sample1, Sample2, Sample3, and Sample4) containing different sample input/output of the program. 79 Property of and for the exclusive use of SLU. Reproduction, storing in a retrieval system, distributing, uploading or posting online, or transmitting in any form or by any
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Principles of Information Systems (MindTap Course…
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781305971776
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning