Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The assignment number, your name, StudentId, Lecture number (time), and a class description need to be included at the top of each file/class. You should

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
The assignment number, your name, StudentId, Lecture number (time), and a class description need to be included at the top of each file/class. You should also include description of each method. Some additional in-line comments inside of methods to explain code that are hard to follow should be written New Skills to be Applied This assignment is a review from CSE110 course Documentation Primitive Data Types Basic Vo Expressions Conditional and loop statements Program Description: Assignment #2 will be the construction of a program that reads in an unspecified number of integers from standard input, performs some calculations on the inputted numbers, and outputs the results of those calculations to standard obtput. The numbers could be delimited by any kind of whitespace , ie taba, spaces, and lines (Note that if you use the Scanner class, you do not have to worry about these delimiters. They will be taken care of by the Scanner), Your program will continue to read in numbers until the number is entered. At this point, the calculations will be outputted in the following format The largest integer in the sequence is 0 The largest even integer in the sequence is The count of positive integers in the sequence is 0 The sum of all integers is o This means that using all numbers your program reads (not including the last number O), you need to compute the largest compute the largest even Integer, count how many poultive Integers are in the sequence, and compute the sum of all integers Note that the above is an output for the first test case For other test cases, you will have different numbers Do not prompt to query for the numbers. The number is not included in the sequence of integers input1.txt 0 input2.txt 12 1 3 ONI OWO 2 N 25 input3.txt 1 75 -9 0 input4.txt 6 8 10 20 0-1 13 output1.bxt The largest integer in the sequence is 0 The largest even integer in the sequence is 0 The count of positive integers in the sequence is 0 The sum of all integers is o V output2.txt The largest integer in the sequence is 25 The largest even integer in the sequence is 12 The count of positive integers in the sequence is 5 The sum of all integers is 50 output3.txt The largest integer in the sequence is 7 The largest even integer in the sequence is 0 The count of positive integers in the sequence is The sum of all integers is 2 output4.txt The largest integer in the sequence is 20 The largest even integer in the sequence is 20 The count of positive integers in the sequence is 4 The sum of all integers is 44

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 Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions