Create a flowchart and java code for the following: 1. Sandwich Counter System Description: The program will display the three sandwiches being sold with their price The program accepts input from a user’s choice of the sandwich by pressing 1 for a hotdog, 2 for hamburger and 3 for bacon The program is able to accept input of quantity of order from the user The program is able to display the total amount of the order The program is able to accept input of payment received The program is able to summarize the purchasing transaction such as total price, payment received, change from a purchase.
Create a flowchart and java code for the following:
1. Sandwich Counter System
Description:
The
The program accepts input from a user’s choice of the sandwich by pressing 1 for a hotdog, 2 for
hamburger and 3 for bacon
The program is able to accept input of quantity of order from the user
The program is able to display the total amount of the order
The program is able to accept input of payment received
The program is able to summarize the purchasing transaction such as total price, payment
received, change from a purchase.
2. Voting system
Description:
Create a program that will count the number of votes per presidentiable candidate and be able to
declare the highest vote
The program is able to accept a maximum of 10 voters only
The voter is able to select 1 candidate per vote
The program is able to know if there is a tie. If a tie occurs on the highest, the program will
display, “NO WINNER!” else the program will declare the highest vote.
Step by step
Solved in 3 steps with 1 images