Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Java Programming Language: candidate in the 2024 Presidential election. You must use a while loop and enter at least 10 to 15 sets of

In Java Programming Language:

image text in transcribed

candidate in the 2024 Presidential election. You must use a while loop and enter at least 10 to 15 sets of data. You must use dialog boxes to read all data. You may enter any data you like. (You must read in at least 10 to 15 sets of data) The information to read in each set of data is: - What is the gender of the survey respondent (male or female) - The age of the survey respondent - Is the survey respondent College educated? (Yes/No) - Does the survey respondent want Biden to run? (Yes/No) You are to print the following: - Title for your output, such as "Democratic Presidential Survey Results" - Total number of survey respondents - Total number of survey respondents who want Biden to run again - Percent of respondents who want Biden to run again - Total number of female survey respondents - Percent of female respondents who want Biden to run again - Total number of male survey respondents - Percent of male respondents who want Biden to run again - Total number of survey respondents under 25 - Percent of survey respondents under 25 who want Biden to run again - Total number of survey respondents who are College educated - Percent of survey respondents who are College educated who want Biden to run again Program notes: - You must use dialog boxes for input, but may use System.out statements for output. - You will need a while loop to run until the user wants to stop. - You will ask for all of the input at the beginning of the loop - You will have if statements to count all of the things asked for - ALL of the final printing is to be done AFTER the loop is done (before the system.exit statement)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions

Question

Do you think competition and conflict are different? Explain.

Answered: 1 week ago

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago