Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in - class exercise will test your practical understanding of the following.Proper NamingVariablesOperatorsType conversion CastingInstructions: 1 . Ask the user to enter four numbers, three

in-class exercise will test your practical understanding of the following.Proper NamingVariablesOperatorsType conversion CastingInstructions:1. Ask the user to enter four numbers, three digits each!2. Save each number as four separate string variables.3. Convert all string inputs into double variables.4. Add the first three numbers and store the result in an integer variable called"first Three."5. Add all numbers and store the result in an integer variable called "totalSum"6. Multiply the last two numbers and store the result in an integer variable called"lastTwo".7. Add the variables "totalSum" and "lastTwo", saving the result as an integer variable.8. Subtract the fourth number from the "lastTwo" Variable.

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

Students also viewed these Databases questions