How cool ninjas and how they would like to become a ninja

Assignment Help Computer Engineering
Reference no: EM132158928

*should use <stdlib.h> or math library and <stdio.h> and those only*

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:

Joining the Academy Now that your friend has reached the academy, they will have to petition to join. They will be asked a series of questions to determine their suitability for ninja training.

Based on your friend's answers the program should print whether or not they will be allowed to train. They will be asked two questions:

1. Are you afraid of the dark?

2. Do you exercise?

If the user indicates yes to the second question, the program should ask them how many minutes a day they exercise.

Based on these responses, you will need to determine if they are a good fit for ninja training. If the user is afraid of the dark, they should not become a ninja.

If the user does not exercise or exercises for less than 10 minutes a day, they should not become a ninja. Otherwise, you should assume they are ready to begin training.

Input Specification

1. The answer to each of the two questions will be either ‘Y' to indicate yes or ‘N' to indicate no.

2. The answer to the number of exercise minutes will be an integer >= 0.

Output Specification

The output should be a single line that tells the user whether or not they will be allowed to enter ninja training. You may begin training as a ninja! Or: You may not train as a ninja.

Output Sample

Below are some sample outputs of running the program. Note that these samples are NOT a comprehensive test.

You should test your program with different data than is shown here based on the specifications given above.

In the sample run below, for clarity and ease of reading, the user input is given in italics while the program output is in bold.

(Note: When you actually run your program no bold or italics should appear at all. These are simply used in this description for clarity's sake.)

Sample Run #1

Are you afraid of the dark? N

Do you exercise? Y

How many minutes do you exercise per day? 15

You may begin training as a ninja!

Sample Run #2

Are you afraid of the dark? Y

Do you exercise? Y

How many minutes do you exercise per day? 15

You may not train as a ninja.

Sample Run #3

Are you afraid of the dark? N

Do you exercise? Y

How many minutes do you exercise per day? 9

You may not train as a ninja.

Sample Run #4

Are you afraid of the dark? N

Do you exercise? N

You may not train as a ninja.

Reference no: EM132158928

Questions Cloud

Create a matlab program with a graphical user interphase : Create a MATLAB program with a Graphical User Interphase (GUI) that converts from Celsius to Fahrenheit and Fahrenheit to Celsius.
Director estimated that the proportion of students : 1) The program director estimated that the proportion of MGMT 650 students that are very satisfied is 88%+-5%
Demonstrate the concepts of phase and group velocities : Two copropagating plane waves that have the same magnitude but a small frequency difference.
What are the possible values of x : What are the possible values of X? Give them as a comma-separated list in increasing order. And what are their probabilities?
How cool ninjas and how they would like to become a ninja : Ninja Academy Ninjas are awesome! Your friend has not stopped talking about how cool ninjas and how they would like to become a ninja.
Samples would the sample mean iq : From which of the following samples would the sample mean IQ be more likely to be greater than 105?
Discuss possible improvements to the interface : Write down what first comes to mind regarding what is good and bad about how you worked with the tool.
Calculate the margin of error for proportion of all adults : a) Calculate the margin of error for the proportion of all adults who think things are going in the wrong direction for 95?% confidence.
What tools were used to get that program running : We use a number of basic tools to convert our code files into something actually running in the machine.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd