Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a java program note i just need to understand how to write the code you can take any random alphabet Declare Seven integer variables

write a java program

note i just need to understand how to write the code you can take any random alphabet

Declare Seven integer variables Using the value X,Y,Z,A,B,C,D.

(**Alphabetic order means,For example: alphabetic order of E is 5,F is 6 etc.**)

X = alphabetic order of the 1st letter of your last name

Y = alphabetic order of the 2nd letter of your last name

Z = alphabetic order of the 3rd letter of your last name

A = alphabetic order of the 1st letter of your first name

B = alphabetic order of the 2nd letter of your first name

C = alphabetic order of the 3rd letter of your first name

D = sum of alphabetic order of the 3rd letter of your first name and

3rd letter of your last name.

Now write a program to find the sum and average of all the even and odd numbers.

Print your full name, Sum of odd numbers, the sum of even number, an average of odd, even.

Note: Use if..else if to solve this problem

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

More Books

Students also viewed these Databases questions

Question

=+country competitive advantages? Why? Support your point of view.

Answered: 1 week ago