Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program that asks the user Enter an integer:. If the user enters a number less than 10, display the message Mama Bear. If

image text in transcribed
Write a program that asks the user "Enter an integer:". If the user enters a number less than 10, display the message "Mama Bear". If the user enters a number greater than or equal to 20, display "Papa Bear". If the enter anything else, display "Baby Bear". * Your answer This is a required question Ask the user to enter an integer. If the number is even, create a new number that is 15 more than the original. Otherwise, create a new numbers that is 9 less than the original. Print the original and new number in a table with data values left justified and column width 12 (NO rounding). Sample output is shown below for each possible case.* Please enter an integer: 40 Original New 40 55 Please enter an integer: 41 Original New 41 32 R

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions