(Solved) : Operation Use Dialog Box Ask User Many Properties Would Like Enter Use Dialog Boxes Prompt Q41420581 . . .

Greetings,

I have a Java homework, can you please help me with it?

Operation • Use a dialog box to ask the user how many properties they would like to enter. • Use dialog boxes to prompt the uTOILETPPnoLIO Console window output: Display HEADING1 at the top followed by a blank line O Display HEADING2 followed by a blGeneral application structure // import for interactive input public class Sales ReportAppXXX public static void main(String

Operation • Use a dialog box to ask the user how many properties they would like to enter. • Use dialog boxes to prompt the user to enter the address and the price for each property. Display the address and price for each property as it is entered. • Use an accumulator variable to calculate the sum of all the property prices. Display the accumulator variable after all properties entered. We were unable to transcribe this imageTOILETPPnoLIO Console window output: Display HEADING1 at the top followed by a blank line O Display HEADING2 followed by a blank line o Display the output for each property one line at a time (as it’s entered) using the tab escape character (“t”) to line up the output with the HEADING2 output o Display another blank line and then the total property value (after the loop to get input is closed) Assume the user will enter valid int values for the property price. Include appropriate comments throughout the code, and include a comment header at the top that contains your name, date, filename, and purpose. Test thoroughly. Produce output that matches above example. General application structure // import for interactive input public class Sales ReportAppXXX public static void main(String args[]) 17 declare variables and constants // determine how many properties the user wants to enter 1/ display headings // use a while or for loop (remember to INITIALIZE, TEST, ALTER) // to loop the number of times the user requested to get user input, // display output for each property as it’s entered, and calculate total // get user input 1/ display output for this individual property // calculate total // display total after loop completes 11 terminate the application Show transcribed image text Operation • Use a dialog box to ask the user how many properties they would like to enter. • Use dialog boxes to prompt the user to enter the address and the price for each property. Display the address and price for each property as it is entered. • Use an accumulator variable to calculate the sum of all the property prices. Display the accumulator variable after all properties entered.

TOILETPPnoLIO Console window output: Display HEADING1 at the top followed by a blank line O Display HEADING2 followed by a blank line o Display the output for each property one line at a time (as it’s entered) using the tab escape character (“t”) to line up the output with the HEADING2 output o Display another blank line and then the total property value (after the loop to get input is closed) Assume the user will enter valid int values for the property price. Include appropriate comments throughout the code, and include a comment header at the top that contains your name, date, filename, and purpose. Test thoroughly. Produce output that matches above example.
General application structure // import for interactive input public class Sales ReportAppXXX public static void main(String args[]) 17 declare variables and constants // determine how many properties the user wants to enter 1/ display headings // use a while or for loop (remember to INITIALIZE, TEST, ALTER) // to loop the number of times the user requested to get user input, // display output for each property as it’s entered, and calculate total // get user input 1/ display output for this individual property // calculate total // display total after loop completes 11 terminate the application

Expert Answer


Answer to Greetings, I have a Java homework, can you please help me with it? …