Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java What do you need to know in order to do this lab? Input, Output, Validation, Compound Conditions, Functions, Loops and Decisions What you will

Java

What do you need to know in order to do this lab?

Input, Output, Validation, Compound Conditions, Functions, Loops and Decisions

What you will do:

For your third lab, you will use the files in JavaLab3 and you will upload it in your Dr Java environment.

You will then compile it and run it.

The goal of the program is to find the highest run of positive and even numbers higher than 100.

To do this, you will ask the user for numbers, and add them. As soon as the sum of the numbers reaches 100 or the total number of number entered is 5 or greater, you will stop and tell the user what their total for this run is.

You will then ask the user if they want to play again. You will keep track of the highest run, and display it when the user is done playing.

Note: you will need to use exactly 3 loops to get the maximum credit, and use compound conditions where applicable.

You will also need to have a minimum of two functions, one of these returning a value.

Example:

Example: Please enter a number: <5 odd numbers are not allowed. Please enter a number: < 100 The total for this run is 100 ----------- Do you want to play again ? 

The file containing the code

A test file

A file containing the pseudo code or the flowchart for the code.

A read me file containing the status of the program.

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

Step: 3

blur-text-image

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

Evaluate the integral.

Answered: 1 week ago

Question

What is the difference between Needs and GAP Analyses?

Answered: 1 week ago

Question

What are ERP suites? Are HCMSs part of ERPs?

Answered: 1 week ago