Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

this is coding using JGrasp - Tools Help Request edit access ACACA Tasks to be accomplished Your class name should be ExamPractical 1. Output this

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
this is coding using JGrasp
- Tools Help Request edit access ACACA Tasks to be accomplished Your class name should be ExamPractical 1. Output this as your first line of output to identify the correct version of the practical for Web- CAT: VERSION: SIGMA 2. Then, prompt for and read a full name (first and last) into a single variable, such as Joan Valdez . The names will always be separated by a single space. 3. Separate this name into first and last names and then print out the person's full name on one line in the following format in all lowercase letters, labeled with Pull Name : followed by the name: Full Name: last_name, first_name 4. Then, print out the person's initials on one line, labeled with Initials: followed by the person's first and last initials in all capital letters without any spaces: Initials: FL 1. Next, prompt for and read three double values a, b, and c from the user and then calculate the sum of the three values, the product of the three values, and the largest of the three values. 2. Output the sum of all three values labeled Sum: , followed by the calculated summation of the values. An example would look like this: Sum: 14 3. Output the product of the three values labeled Product: , followed by the calculated product of the values. An example would look like this: Product: 40 4. Without using selection statements ( 17 or It / eise ) or logical operators ( 46 or 11 ), output the maximum of the three values labeled Largest: followed by the largest of those three values. An example would look like this: Largest: 10.3 5. End the program Sample Run (user input underlined) VERSION: SIGMA Enter your first and last names : ECHO INDIA Full Name: india, echo Initials: EI Enter first double: 7.1 Enter second doubles 7.05 Enter third double: 2.003 Bum: 21.153 Product: 350.535165 Largent: 7.1 Sample Run (user Input underlined) VERSION SIGMA Enter your first and last names: Oscar ZULU Pull Name: zula, Oscar Initials: OZ Enter first doubler 322 Enter second double -123.2 Enter third double 2.2 Bus -01.19999999999999 Averager - 36303.424 Largest: 32.1

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

Database Concepts International Edition

Authors: David M. Kroenke

6th Edition International Edition

0133098222, 978-0133098228

More Books

Students also viewed these Databases questions

Question

Question Can a Keogh plan fund be reached by the owners creditors?

Answered: 1 week ago

Question

Question What happens to my plan if I die?

Answered: 1 week ago