Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1.) Write a RAPTOR program that asks the user to enter 4 numbers. After each number, output two numbers: double and half of the number

image text in transcribed
1.) Write a RAPTOR program that asks the user to enter 4 numbers. After each number, output two numbers: double and half of the number entered by the user. Hint: In RAPTOR, multiplication is accomplished using the star (*) character, and division uses the slash (/). Sample run (user input in blue, master console output shown in orange): Enter a number: 1 Double your number: 2 Half your number: 0.5000 Enter a number: 4 Double your number: 8 Half your number: 2 Enter a number: 15 Double your number: 30 Half your number: 7.5000 Enter a number: 10.5 Double your number: 21 Half your number: 5.2500

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

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

Students also viewed these Databases questions

Question

3. An overview of the key behaviors is presented.

Answered: 1 week ago

Question

2. The model is credible to the trainees.

Answered: 1 week ago