Java Question

Description

Please rename file as: Maryam – Jumah -900595648 – CSC262.docx

Don't use plagiarized sources. Get Your Custom Assignment on
Java Question
From as Little as $13/Page

Unformatted Attachment Preview

CSC262 Java Programming – Module 2 Assignment
First Name
Last Name
ID#
Assignment Week#
Email Address
How to submit your Assignment
After filling all the parts in this file, please follow the following steps.
1) Add your name and ID to the first page.
2) Save the file in the original format (Docx or Doc)
(Please do not convert to other file formats e.g. PDF, ZIP, RAR, …).
3) Rename the file as
YOUR First Name – YOUR Last Name- YOUR student ID- CSC262.docx
Example:
John – Smith – 234566435 – CSC262.docx
4) Upload the file and submit it (only using Blackboard)
Please do not hesitate to contact your instructor for CSC262, should you have any questions.
Problem 1: Data Analyzer
Write a program Data Analyzer that reads a set of floating-point values. Ask the user to enter the values, then
print the following 4 values each in its own line with messages showing what each of the values is: (1) the
average of the input value, (2) the smallest of the values, (3) the largest of the values, (4) the range, that is the
difference between the smallest and largest. Enter anything other than a number to indicate the end of the
value inputs.
Your code for this problem
Run the code and insert the result in the following box.
Sample Run Result
Problem 2: Character Counter
Write a program that reads a string and prints the most frequently occurring character and its frequency. If
there are multiple characters that occur with the same maximum frequency, print them all. For example, if the
word is mississippi, print
i (4)
s (4)
because i and s occur four times each, and no letter occurs more frequently. For simplicity, the input string
consists of only lower-case characters.
Your code for this problem
Run the code and insert the result in the following box.
Sample Run Result
The end

Purchase answer to see full
attachment