Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java programming....Please do not use arrays. these programs we will use only for loops, while loops and if else statement. we can not use arrays

Java programming....Please do not use arrays. these programs we will use only for loops, while loops and if else statement. we can not use arrays or functions. please explain it an easy way. Thank you image text in transcribed

P4.2 Write programs that read a sequence of integer inputs and print a. The smallest and largest of the inputs. b. The number of even and odd inputs. c. Cumulative totals. For example, if the input is 1729, the program should print 1 8 10 19. d. All adjacent duplicates. For example, if the input is 1 3 3455666 2, the program should print 356 P4.3 Write programs that read a line of input as a string and prirt a. Only the uppercase letters in the string. b. Every second letter of the string c. The string, with all vowels replaced by an underscore. d. The number of vowels in the string. e. The positions of all vowels in the string

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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

=+Is the humor relevant to the issue?

Answered: 1 week ago

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

=+ How would you advise those problems be resolved?

Answered: 1 week ago