Reference no: EM132245479
Programming for Non-majors - Programming Project: Aloha, Stitch
This project will give you experience writing a program that involves branching (if).
PROJECT DESCRIPTION - "Aloha Stitch" is a toy that has a "conversation" with a user. Specifically, if the user "says" (inputs) one of several predefined phrases, then Stitch will respond with one of several predefined replies. Stitch has two moods: loving and rotten. Which mood Stitch is in depends on the most recent use of either of these two phrases: "I love you" or "You're rotten." If, most recently, Stitch has been told "I love you," then he will be in his loving mood; if, most recently, he has been told "You're rotten," then he will be in his rotten mood. That is, Stitch remembers which mood he's in. For some of the predefined phrases that a user can say, Stitch's response depends on whether his mood is loving or rotten; for others, he has the same response regardless of his mood.
Write a program that simulates an interaction between a user and Stitch. The program will explain how to interact with Stitch, then the user will input a phrase (explained below), and then Stitch will reply. Also, Stitch will remember his mood from run to run, and you will run the program many times, in order to show what Stitch is capable of.
BASIC STRUCTURE OF THE PROGRAM - The program body MUST be broken into two subsections: an input subsection and an output subsection, each of which is described in detail below. NOTE: There WON'T be a greeting subsection NOR a calculation subsection.
1. Input Subsection:
(a) Input the mood value from a file.
(b) Idiotproof the mood value.
(c) Input a code indicating which of the predefined phrases the user is "saying," or the help code.
(d) Idiotproof the user's chosen phrase code.
2. Output Subsection:
(a) Output Stitch's response, according to:
i. the predefined phrase that the user "says;"
ii. if necessary, Stitch's current mood;
iii. if requested, the menu of input phrase choices (rather than a response to a user phrase).
(b) Output the mood value to a file.
NOTE: You DON'T need to know how to input from and output to a file to complete this project, because helper code is provided.
Attachment:- Assignment File.rar
What is the value of performing breakeven analysis
: BSBFIM601 Manage Finance Assignment - What is the value of performing breakeven analysis? Why may an organization be required for and remit fringe benefits tax
|
Explain in one paragraph what is the purpose of conservatism
: BSBFIM601 Manage Finances Assignment, Crown Institute Australia. Explain in one paragraph what is the purpose of conservatism
|
What is materiality and why is it important to auditors
: What is the role of internal control and how does internal control affect the extent of audit procedure? What is materiality and why is it important to auditors
|
How has the company managed workforce diversity
: Chosen to write about is Amazon. Only need 150 words for the literature review. How has the company managed workforce diversity
|
Write a program that simulates an interaction
: CS 1313 010: Programming for Non-majors - Programming Project: Aloha, Stitch, University of Oklahoma, USA. Write a program that simulates an interaction
|
List and describe each character
: Describe in detail what you see (background, props, scenery, etc.) List and describe each character (describe their clothing, accessories, etc.)
|
Who in the business entity would typically approve
: Who in the business entity would typically approve and sign a contract? Explain the pros and cons of each entity in this context.
|
Prepare a memo that analyzes potential compliance issues
: MBA 610,southern new hamipshaire university : What are the ethical implications involved in this business decision?
|
What might be the benefits of using machine learning
: What might be the benefits of using machine learning (classification or regression)? What are the possible input data? How can the data be collected
|