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

  Write a program that will read a molecular formula

Write a program that will read a molecular formula such as H2SO4 and will write out the molecular weight of the compound that it represents.

  Records are converted to valid json

All relevant data from a DataFile is written out to a single file. JSON. Records are converted to valid JSON. User Input. Each line of the data files is a separate record made up of key:value pairs.

  Program to compute the area and circumference of circle

Algorithm which will prompt for and receive the measurement of the diameter of a circle and compute and show the area and circumference of the circle.

  Identify the learning resources you will need to read

The "To prepare" component of the Discussion identifies the Learning Resources you will need to read or view to inform your post for the Discussion.

  What hyperterminal settings should you use

What are the requirements for using a VTY (virtual terminal) connection to a Cisco device?

  Complete specification of a software design

List the four design models required for a complete specification of a software design and the role of each.

  Create a random bit string using given information

Suppose that someone suggests the following way to confirm that the two of you are both in possession of the same secret key.

  Choose two of the security features you recognize and write

third-party assurance providers such as bbbonline inc. and truste sell their services to businesses that want to

  Show that variable elimination on poly trees can performed

Show that variable elimination on poly trees can be performed in linear time, assuming that the local probability models are represented as full tables.

  What are the technology benefits

What are your thoughts about statements made by some industry professionals that this technology should be freely available to other engine manufactures.

  Specify modifications that implemented to it infrastructure

Identify any modifications that should be implemented to the IT infrastructure in order to accommodate the requirements of the EHR.

  Draw a schematic of an AVL tree

Draw a schematic of an AVL tree such that a single remove operation could require ?(logn) trinode restructurings (or rotations) from a leaf to the root.

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