Why my source code does not work properly (not having "*" mark as the project assignment)?. Please provide a whole source code for the assignment with minimum changes as possible. Please check the attached screenshots. Also check the email with myself and professor and provide source code for additional requirement (this is the "second program" in professor's email).

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Why my source code does not work properly (not having "*" mark as the project assignment)?. Please provide a whole source code for the assignment with minimum changes as possible. Please check the attached screenshots. Also check the email with myself and professor and provide source code for additional requirement (this is the "second program" in professor's email).

Photos - 2022-02-04 (1).png
* Fullscreen
Photos - 2022-02-04 (2).png
Fullscreen
110%
D sdc.java X
1 import java.util.Scanner;
2
public class sdc {
public static void main(String[]args)
{
Scanner keyboard = new Scanner(System. in);
int sales;
for (int i=0; i < 5; i++)
50
System.out.println("Enter today's sales for store "+(i+1)+" :");
sales=keyboard.nextInt();
12. Bar Chart
13
14
System.out.println(" ");
System.out.println("SALES BAR CHART");
for (int i=0;i<5;i++)
{
System.out.println("Store"+(i+1)+":");
for (int j = 0;j<5/100;j++)
MY Work
15
16
Write a program that asks the user to enter today's sales for five stores. The program should
display a bar chart comparing each store's sales. Create each bar in the bar chart by
displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an
System.out.print("*");
}
System.out.println();
}
Pra'sect Should be
example of the program's output:
}
Enter today's sales for store 1: 1000 [Enter]
Enter today's sales for store 2: 1200 [Enter]
Enter today's sales for store 3: 1800 [Enter]
Enter today's sales for store 4: 800 [Enter]
28
29
30 }
Enter today's sales for store 5: 1900 [Enter]
R Problems @ Javadoc e Declaration e Console X E Coverage
<terminated> sdc [Java Application] C:\Users\seose\OneDrive\Desktop\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657\jre\bin\javaw.exe
Enter today's sales for store 1 :
500
Enter today's sales for store 2 :
400
SALES BAR CHART
***
Store 1:
Store 2: ***
Store 3: ***
Enter today's sales for store 3 :
500
Enter today's sales for store 4 :
800
Enter today's sales for store 5 :
400
Store 4: ********
Store 5:
***********
SALES BAR CHART
Storel:
Store2:
Store3:
Store4:
Store5:
7:51 PM
ENG
2/4/2022
Transcribed Image Text:Photos - 2022-02-04 (1).png * Fullscreen Photos - 2022-02-04 (2).png Fullscreen 110% D sdc.java X 1 import java.util.Scanner; 2 public class sdc { public static void main(String[]args) { Scanner keyboard = new Scanner(System. in); int sales; for (int i=0; i < 5; i++) 50 System.out.println("Enter today's sales for store "+(i+1)+" :"); sales=keyboard.nextInt(); 12. Bar Chart 13 14 System.out.println(" "); System.out.println("SALES BAR CHART"); for (int i=0;i<5;i++) { System.out.println("Store"+(i+1)+":"); for (int j = 0;j<5/100;j++) MY Work 15 16 Write a program that asks the user to enter today's sales for five stores. The program should display a bar chart comparing each store's sales. Create each bar in the bar chart by displaying a row of asterisks. Each asterisk should represent $100 of sales. Here is an System.out.print("*"); } System.out.println(); } Pra'sect Should be example of the program's output: } Enter today's sales for store 1: 1000 [Enter] Enter today's sales for store 2: 1200 [Enter] Enter today's sales for store 3: 1800 [Enter] Enter today's sales for store 4: 800 [Enter] 28 29 30 } Enter today's sales for store 5: 1900 [Enter] R Problems @ Javadoc e Declaration e Console X E Coverage <terminated> sdc [Java Application] C:\Users\seose\OneDrive\Desktop\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.1.v20211116-1657\jre\bin\javaw.exe Enter today's sales for store 1 : 500 Enter today's sales for store 2 : 400 SALES BAR CHART *** Store 1: Store 2: *** Store 3: *** Enter today's sales for store 3 : 500 Enter today's sales for store 4 : 800 Enter today's sales for store 5 : 400 Store 4: ******** Store 5: *********** SALES BAR CHART Storel: Store2: Store3: Store4: Store5: 7:51 PM ENG 2/4/2022
Project 4 Inboxx
Feb 3, 2022, 8:52 PM (22 hours ago)
Good evening professor.
While I was reading the attached document for project 04, I found "complete requirements and additionally write the report to a file as well. This report should append what is currently in the file." in the attached document.
I believe none of our prior project has this one and wondered what that means.
Am I supposed to use " import java.io.*." for this project? And if it is, what is the "this report append what is currently in the file" means?
Thank you for taking your time to check on my email all the time.
Respectfully,
6:07 AM (13 hours ago)
to me-
Aloha
Thanks for reaching out! Yes, for this project, the first program needs to write to an output file and overwrite whatever is there. Typically a txt file is used here. For the second program, it should write to an output file and append to the data that is there.
For specific information on the required import libraries and how to set this up is in the textbook - Chapter 4 Section 4.10 regarding file input and outputs.
Please let me know if you have any other questions :-)
Thanks,
Transcribed Image Text:Project 4 Inboxx Feb 3, 2022, 8:52 PM (22 hours ago) Good evening professor. While I was reading the attached document for project 04, I found "complete requirements and additionally write the report to a file as well. This report should append what is currently in the file." in the attached document. I believe none of our prior project has this one and wondered what that means. Am I supposed to use " import java.io.*." for this project? And if it is, what is the "this report append what is currently in the file" means? Thank you for taking your time to check on my email all the time. Respectfully, 6:07 AM (13 hours ago) to me- Aloha Thanks for reaching out! Yes, for this project, the first program needs to write to an output file and overwrite whatever is there. Typically a txt file is used here. For the second program, it should write to an output file and append to the data that is there. For specific information on the required import libraries and how to set this up is in the textbook - Chapter 4 Section 4.10 regarding file input and outputs. Please let me know if you have any other questions :-) Thanks,
Expert Solution
Step 1

In this question, we are asked to modify the code to print the correct output

Algorithm

1) Enter the input of sales in the array

2) Display * for each 100 sales

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Top down approach design
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education