Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Make 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. X = Sum of 6 and alphabetic order of the 1st letter of your last name Y = Sum of 12 and alphabetic order of the 2nd letter of your last name Z = sum of 4 alphabetic order of the 3rd letter of your last name A = alphabetic order of the 1st letter of your first name B = multiplication of 2 and 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 check the given conditions for all the values: If the value is within the range of 4-8 print "Bangladesh." If the value is within the range of 9-12 print "DHAKA." If the value is within the range of 21-25 print "CHITTAGONG" Otherwise, print "Out of Range." Note: Use Switch..Case 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_2

Step: 3

blur-text-image_3

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

Advances In Knowledge Discovery In Databases

Authors: Animesh Adhikari, Jhimli Adhikari

1st Edition

3319132121, 9783319132129

More Books

Students also viewed these Databases questions

Question

How are U.S. GAAP and IFRS changing over time?

Answered: 1 week ago

Question

How do modern Dashboards differ from earlier implementations?

Answered: 1 week ago