Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the value of the following arithmetic expression in C? 9+4/(5+10%3) 1 2 10 Introduction: Ninja Academy Ninjas are awesome! Your friend has not

What is the value of the following arithmetic expression in C? 9+4/(5+10%3) 1 2 10
image text in transcribed
Introduction: Ninja Academy Ninjas are awesome! Your friend has not stopped talking about how cool ninjas and how they would like to become a ninja. To amuse your friend, you have decided to create a series of programs about ninjas. Problem: Ninja Exercising (ninjaexercise.c) Based on your AMAZING scores on the Ninja Evaluation Test, the Ninja Academy has decided that you are ready for the path of the ninjal Before you can learn all the wonderful skills they teach, you have to get a foundation first. Your ninja mentor has provided you with a small list of calisthenics for you to perform. They include kung fu, bojutsu, and rope climbing. These exercises are designed to sharpen your mind and body In this program, the user will be displayed with a menu and with an option for practicing each exercise as well as an option for exiting the menu. Whenever a user does either kung fu or bojutsu, they will add onto their total for calisthenics. Whenever a user does rope climbing, the user will be prompted to enter the amount of distance (in meters) they climbed. After any choice, the user will be informed about how many calisthenics and how much rope they climbed After the user exits the menu, it will have one last check to see if they at least trained a bit in both calisthenics and rope climbing. If so, the user will be informed they are on their way to path of the ninja. Otherwise, they need to practice more! Input Specification 1. The menu input will be a positive integer between 1 and 4 2. The distance for option 3 will be an integer >=0 Output Specification Have a menu that shows the options for your ninja: 1. Practice Kung Fu 2. Practice Bojutsu 3. Practice Rope Climbing 4. Stop training for the day When practicing Kung Fu (1) print: You go to the dojo and practice your Kung Fu

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: Jeffrey A. Hoffer Fred R. McFadden

9th Edition

B01JXPZ7AK, 9780805360479

More Books

Students also viewed these Databases questions