Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Raptor program for the following problem. Display the whole numbers -5 to +5 with steps of 1. Find and display the total of

Write a Raptor program for the following problem. Display the whole numbers -5 to +5 with steps of 1. Find and display the total of whole numbers between 2 values entered by the user. If the first number is more than the second number, display an error message. Input a list of peoples ages terminated by 999 and calculate and display the average age. Be sure to checkthat the user only inputs positive numbers for age. Positive numbers are numbers greater than or equal to 0. Allow the user to enter a series of weights in pounds terminated by the input of -999. For each weight value, calculate the corresponding weight in kilograms. The conversion formula is: kilograms = pounds / 2.2046. For example, a person with the weight of 150 pounds will weight 68.03 kilograms. Also, calculate and display the total of weights in pounds as entered by the user. Finally, ask the user to enter the number of data points for cars miles driven and gas used. Create a loop to ask the user to enter the miles driven and the number of gallons of gas used and calculate the display the cars miles per gallon. So, if the user enters 3 for the number of data points, the loop repeats 3 times.

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2018 Dublin Ireland September 10 14 2018 Proceedings Part 1 Lnai 11051

Authors: Michele Berlingerio ,Francesco Bonchi ,Thomas Gartner ,Neil Hurley ,Georgiana Ifrim

1st Edition

3030109240, 978-3030109240

More Books

Students also viewed these Databases questions