Assignment statements and arithmetic expressions

Assignment Help Business Management
Reference no: EM132225138

Introduction to C Programming - COP 3223 Objectives 1. To give students practice at typing in, compiling and running simple programs. 2. To reinforce knowledge of assignment statements and arithmetic expressions 3. To learn how to use if statements for conditional execution. Introduction: Pirate Time Your friend has not stopped talking about how cool pirates and how awesome it would be if they could be a real-life pirate captain! To amuse your friend, you have decided to create a series of programs about pirates. Problem: Crew Recruitment Before your friend can set sail, they will need a crew to sail with. Your friend has created a special series of questions to determine an applicant's suitability for sailing the ocean and looking for treasure in the Caribbean. Based on their answers the program should print whether or not they will be allowed to join the crew. They will be asked two questions: 1. Do you like digging for treasure? 2. Are you able to swim? If the user indicates yes to the second question, the program should ask them how far they can swim in meters. Based on these responses, you will need to determine if they will be a good crew member for the ship. If the user does not enjoy digging for treasure, they will not make a good pirate. If the user cannot swim at least 100 meters, they should not attempt to sail the ocean. Otherwise, you can allow them to join your crew! 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 swimming meters 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 join the crew. You may join the pirate crew! Arrr! Or: You may not join the crew. 2 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.)

Reference no: EM132225138

Questions Cloud

Understanding the function and responsibilities : Understanding the function and responsibilities of each layer of the OSI model will help to understand how network communications function.
What are the key drivers of the economics of the business : Evaluate the key strengths and weaknesses of the business idea being proposed. What are the key drivers of the economics of the business?
Determine which company you will analyze for the project : Determine which company you will analyze for the project. Your selection may be subject to your professor's approval
Data mining and machine learning : What is the difference between Data Mining and Machine Learning?
Assignment statements and arithmetic expressions : Introduction to C Programming - COP 3223 Objectives 1. To give students practice at typing in, compiling and running simple programs
Reflect on experience when you interacted : Reflect on an experience when you interacted with someone from another nation, ethnicity, religious affiliation, or political affiliation and you detected deep,
Services to wide market is pursuing strategy : An organization that is offering unique, superior products or services to a wide market is pursuing a strategy of
Analyse the effects of current and recent trends : Pearson BTEC HND in Travel and Tourism management Tour Operations Management - Tour Operations Management - Evaluate the strategic decisions made by different
Traditional logistics supplier relationships : Why 3PL relationships are typically more complex than traditional logistics supplier relationships?

Reviews

Write a Review

Business Management Questions & Answers

  Caselet on michael porter’s value chain management

The assignment in management is a two part assignment dealing 1.Theory of function of management. 2. Operations and Controlling.

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. Due to increase in the preference for light beer drinkers, Chris Prangel wants to introduce light beer version in Mountain Man. An analysis into the la..

  Mountain man brewing company

Mountain Man Brewing, a family owned business where Chris Prangel, the son of the president joins. An analysis into the launch of Mountain Man Light over the present Mountain Man Lager.

  Analysis of the case using the doing ethics technique

Analysis of the case using the Doing Ethics Technique (DET). Analysis of the ethical issue(s) from the perspective of an ICT professional, using the ACS Code of  Conduct and properly relating clauses from the ACS Code of Conduct to the ethical issue.

  Affiliations and partnerships

Affiliations and partnerships are frequently used to reach a larger local audience? Which options stand to avail for the Hotel manager and what problems do these pose.

  Innovation-friendly regulations

What influence (if any) can organizations exercise to encourage ‘innovation-friendly' regulations?

  Effect of regional and corporate cultural issues

Present your findings as a group powerpoint with an audio file. In addition individually write up your own conclusions as to the effects of regional cultural issues on the corporate organisational culture of this multinational company as it conducts ..

  Structure of business plan

This assignment shows a structure of business plan. The task is to write a business plane about a Diet Shop.

  Identify the purposes of different types of organisations

Identify the purposes of different types of organisations.

  Entrepreneur case study for analysis

Entrepreneur Case Study for Analysis. Analyze Robin Wolaner's suitability to be an entrepreneur

  Forecasting and business analysis

This problem requires you to apply your cross-sectional analysis skills to a real cross-sectional data set with the goal of answering a specific research question.

  Educational instructional leadership

Prepare a major handout on the key principles of instructional leadership

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