Its A C++ introduction - Computer Science
A program needs to be made but its a simple intro class of C++. The assignment is attached below. CISP360 Structured Programming in C++ Aircraft Decision Tree (acdt) Professor Caleb Fowler February 2, 2021 Problem. This assignment implements a hypothetical troubleshooting tree for possible engine failure in light aircraft. DO NOT FOLLOW IN A REAL EMERGENCY! A decision tree is an Artificial Intelligence method for arriving at a decision based upon a collection of IF state- ments. The computer asks a question and responds, based upon the answers. The computer only asks the relevant question based upon the user’s answers (ie you don’t ask all the questions and then try to sort it out.) Requirements. This program is menu driven. It presents four menu options, repre- senting 3 potential emergency situations: Communications Failure, Engine Failure, In-flight Icing. Quit the program is the final menu option. See figure 1 for an example menu. 1. Communications Failure • This option only leads to 1 element, Switch to Alternate Radio. 2. Engine Failure • This activates the decision tree. This is basically a collection of IF statements arranged in a hierarchy. This is shown on the diagram below. 3. In-Flight Icing • Prompt the pilot for the estimated amount of ice on the wings (0 mm to 10 mm). Aircraft will not fly with more than 10 mm of ice (and pilots will not be operating this system). • Range check this to make sure only 0 mm to 10 mm can be entered. • The amount of ice determines how much power to use to ener- gize the deicing boots on the wings. – Less then 1mm, 5\% power – 1 - 5 mm, 20\% power – 5.1 - 9 mm, 65\% power – 9.1 - 10 mm, 100\% power Menu Options. 1. Communications Failure 2. Engine Failure 3. In-Flight Icing 4. Quit Figure 1: Allowable menu options for this program. • Only ask questions relevant to the situation and previous answers. Do not ask for all the inputs at once, nor dump all the output at once (too stressful for the pilot!). • Display the results of all computations. Folsom Lake College Structured Programming in C++ • Make your program output as easy to read as possible. • Program activities are split into logical ’chunks’ or paragraphs. • No global variables or global variable look a-likes. • Use white-space and comments to make your code more readable. • Put a Source File Header at the top of your source file. • Include a void ProgramGreeting() function. This will run auto- matically once when the program first starts. This function should display (on individual lines): – A welcome message. – Your name (as author). – The date this assignment is due. Format this as MonthName day, year. Example: June 30, 1988. • Do not your c (.h) style libraries. Use c++ libraries instead. • Your program must compile in C++ on Ubuntu. • Your program must generate logically correct output. Specifications. � // Specification C1 - Communications Option This makes the start of the communications option code. � // Specification C2 - Engine Failure Option This makes the start of the engine failure option code. � // Specification C3 - In-Flight Icing Option This makes the start of the in-flight icing option code. Input validation is a big deal. It’s the first line of defense against adversaries. However, we need to balance that against usability. Generally, the more specific the error message you can give the client, the better they will like your program. Usually this means more if tests. You can always add more error tests than specified in the homework. � // Specification B1 - Menu Input Validation Only allow the client to enter valid numbers for the main menu. Quit the program with invalid entries. You can just display a gen- eral error message for this specification. � // Specification B2 - Icing Input Validation Only allow a valid range for the de-icing menu. Exit the program with invalid input. � // Specification B3 - Date On the first line of the main menu, include the current date. You can get the system date and use that, or you can prompt the client for the date. Your choice. Folsom Lake College Structured Programming in C++ Figure 2: This is the engine failure menu selection. Folsom Lake College Structured Programming in C++ Alphabetic Menu Options. <C>ommunications Failure <E>ngine Failure <I>n-Flight Icing <Q>uit Figure 3: Allowable menu options for this program in alphabetic format. � // Specification A1 - Alpha Menu Change from a numeric menu to an alphabetic menu. See figure 3 for an example menu. Keep your numeric menu code - just com- ment it out. I only want 1 menu in operation. � // Specification A2 - Menu Input Validation Only allow the client to enter valid letters for the main menu. Quit the program with invalid entries. You can just display a general error message for this specification. The replaces specification B1, so also like Specification A1 , just comment out the validation code which doesn’t apply to a numeric menu. � // Specification A3 - One Function I want to see at least one function in an A program. I don’t care what you do with it, just write one. Don’t forget the function prototype. Rubric. Element Points Code Compiles 15 Code Runs and generates correct output 10 Source File Header 5 No .h libraries 5 Program Greeting 5 Each of the 3 ’C’ Specifications 5 (15) Bonus for all ’C’ Specifications 5 Each of the 3 ’B’ Specifications 5 (15) Bonus for all ’B’ Specifications 5 Each of the 3 ’A’ Specifications 5 (15) Bonus for all ’A’ Specifications 5 Total Points 100 Late Penalty: -10 points Due Date. This assignment is due by 11:59 PM on Sunday on the date on the calendar in Canvas. All the assignments are open the first day of class and you can begin working on them immediately. I encourage you to start sooner rather than later with your homework, these always seem to take longer than you think. Late Work. If you miss the due date and time specified above, your work is late. Canvas records the date and time your homework upload COM- PLETES. Late work is still acceptable, but it suffers a 1 letter grade Folsom Lake College Structured Programming in C++ penalty. You may turn late work in up until MONDAY 11:59 PM AF- TER THE ASSIGNMENT WAS DUE. That is, you have 1 day to turn your work in - after that the Canvas drop box closes. Once Canvas closes I will not accept an assignment. Pro-Tip: Get a bare bones copy of your code running and turn it in. Then go ahead and modify it, fix it and whatnot. Upload it with the same name when you finish. That way, if something unexpected happens, you have some working code turned in. Risk management, class, risk management. 1 1 If you really want to go pro, get some sort of version control system running (like Git).How to Turn in your Homework. Follow these guidelines for turning in your work: 1. Each assignment has a submit button to turn in your work. 2. Upload your .cpp file, but make sure you change the file extension to .txt. The plagiarism checker doesn’t read .cpp files and I’ve disabled uploading them. I’ll rename your homework to .cpp when I download them. 3. Only submit your homework through Canvas. Do not email them to me or attach them in the comments. 4. Submit a source file I can compile. Do not submit a link to an online editor like repl.it. Do not zip a file. Submit self contained programs - they only have one file to run (no data files, config files, object files, etc.). 5. It is OK to turn in multiple versions of the same file (that you’ve updated. Canvas will automatically download the latest version. 6. It is your responsibility to make sure your file is readable. If your file is ’corrupted’ I will not accept it and you will have failed to turn in that assignment. I expect to be able to see your code in Canvas as well as compile and run it on my computer using Ubuntu. 7. Let me know if you are having any trouble uploading your home- work immediately. 8. I download your files, compile and execute them as well as look over your source code. Style Guide. All programs you write MUST have the following code and/or com- ments. Again, I look for these elements with my scripts, you want me to find them. Folsom Lake College Structured Programming in C++ Comments. Use white space and comments to make your code more readable. I run a program called cloc (count lines of code) which actually looks for this stuff. End of line comments are only permitted with variable declara- tions. Full line comments are used everywhere else. Specification Comments. Specifications are bundled into groups: A, B, C. You must meet the specifications of the lowest group before I will count the specifications for the highest group. For example, you must meet the B specifications before I will count the A specifications. If you miss one element of a specification bundle, that is the grade you will get for the assignment - regardless of how much extra work you do. Use whole line comments for Specifications. Put the comment on the line above the start of the code implementing the Specification. If the same Specification code appears in more than 1 place, only com- ment the first place that Specification code appears. Number your Specifications according to the specification bundle and the specific specification you are using, also provide a very short description. DO NOT BUNCH ALL YOUR SPECIFICATIONS AT THE TOP OF THE SOURCE FILE. Example specification comment: // Specification A2 - Display variables Your code to do this starts here; It’s very important to get the specifications down correctly. If your specification code isn’t commented, it doesn’t count. I use the grep trick to find your specification code. Proper documentation is part of the solution, just like actually coding the solution is. Compiler Warnings. Compiler warnings are a potential problem. They are not tolerated in the production environment. In CISP 360 you can have them. I will deduct a small number of points. CISP 400 - I will deduct lots of points if compiler warnings appear. Make sure you compile with -Wall option. This is how you spot them. C++ Libraries. We are coding in C++, not C. Therefore, you must use the C++ libraries. The only time you can use the C libraries is if they haven’t been ported to C++ (very, very rare). Non-Standard Language Extensions. Some compilers support unapproved extensions to the C++ syn- tax. These extensions are unacceptable. Unsupported extensions are compiler specific and non-portable. Do not use them in your pro- grams. Folsom Lake College Structured Programming in C++ Program Greeting. Display a program greeting as soon as the program runs. This is a simple description of what the program does. Example: // Program Greeting cout « Simple program description text here. « endl; Source File Header. Start your source file with a program header. This includes the program name, your name, date and this class. I use the grep trick for .cpp (see below) to look for this. I focus on that homework name and display the next 3 lines. Example: // drake.cpp // Pat Jones, CISP 413 // 12/34/56 Specifications and Specification Bundles. You document specifications like this: // Specification C1 - Some stuff You do not need to code them in order. You will probably want to because the specifications get harder as you move up in bundles (not THAT much harder). You also don’t need to worry about the specification comments appearing in order in your code, either. However, all of a specification bundle must be coded to reach that bundle grade (ie all C bundle to get a C). Partially completed bundles DO NOT COUNT. Say you code all specifications for a B bundle and only 1 for an A bundle (out of 5 for example). The highest grade you would get would be a B because that’s the last bundle you’ve completed. You can stop at any bundle you want, you just can’t get a higher grade (ex, you code all specifications for bundle B - the best you can get for this homework is a B). This is designed to mirror the work word, the more features your code has, usually, the happier your clients are. This also gives you some control over your grade. This style guide has more information on the specifics of these comments. Variables. Constant variables - anytime you have a value which is not sup- posed to change, that’s a constant. We make it read only with the const keyword and signify it with the ALL CAPS style: const PI = 3.14; We prefer using constants because they make the code easier to read. There are a few situations where we do not usually use them, such as starting a loop at zero. However, if we have that loop end at, Folsom Lake College Structured Programming in C++ say, 33, then it’s a magic number. What’s 33? Who knows? If we use const SIZE = 33; we know what 33 is. When we have numeric literals appearing in the program we call these magic numbers. We don;t know what they are, but if we change them, the program breaks. hence, magic. Magic numbers are gener- ally frowned upon. Grep Trick. Always run your code immediately before your turn it in. I can’t tell you how many times students make ’one small change’ and turn in broken code. It kills me whenever I see this. Don’t kill me. You can check to see if I will find your specification and feature comments by executing the following command from the command line. If you see your comments on the terminal, then I will see them. If not, I will NOT see them and you will NOT get credit for them. The following will check to see if you have commented your specifi- cations: grep -i ’specification’ homework.cpp This will generate the following output. Notice the specifications are numbered to match the specification number in the assignment. This is what I would expect to see for a ’C’ Drake assignment. Note the cd Desktop changes the file location to the desktop - which is where the source file is located. This is what I would expect to see for an ’A’ level Drake assign- ment. We can also look at the line(s) after the grep statement. I do this to pay attention to code segments. grep -i -C 1 ’specification’ aDrake.cpp Folsom Lake College Structured Programming in C++ We can also use this to look for other sections of your code. The grep command searches for anything withing the single quotes ”, and the -i option makes it case insensitive. This is how I will look for your program greeting: The grep trick is extremely powerful. Use it often, especially right before you turn in your code. This is the best way I can think of for you to be sure you met all the requirements of the assignment. Client System. Your code must compile and run on the client’s system. That will be Ubuntu Desktop Linux, version 18.04. Remember, sourcefile.cpp is YOUR program’s name. I will type the following command to compile your code: g++ -std=c++14 -g -Wall sourcefile.cpp If you do not follow this standard it is likely I will detect errors you miss - and grade accordingly. If you choose to develop on an- other system there is a high likelihood your program will fail to compile. You have been warned. Using the Work of Others. This is an individual assignment, you may use the Internet and your text to research it, but I expect you to work alone. You may discuss code and the assignment. Copying code from someone else and turning it in as your own is plagiarism. I also consider isomorphic homework to be plagiarism. You are ultimately responsible for your Folsom Lake College Structured Programming in C++ homework, regardless of who may have helped you on it. ProTip: Get a bare bones copy of your code running and turn it in. Then go ahead and modify it with bonuses and whatnot. Upload it with the same name so it replaces your previous homework. This way, if something comes up or you can’t finish your homework for some reason, you still have something turned in. A C is better than a zero. Risk management class, risk management. Canvas has a built in plagiarism detector. You should strive to generate a green color box. If you submit it and the score is too high, delete it, change your code and resubmit. You are still subject to the due date, however. This does not apply if I have already graded your homework. Often, you will not be able to change the code to lower the score. In this case, include as a comment with your homework, what you did and why you thought it was ineffective in lowering your score. This shows me something very important - you are paying attention to what you are doing and you are mindful of your plagiarism score. Folsom Lake College Problem. Requirements. Due Date. Late Work. How to Turn in your Homework. Style Guide. Grep Trick. Client System. Using the Work of Others. List of Figures. Educational Objectives. Change log.
CATEGORIES
Economics Nursing Applied Sciences Psychology Science Management Computer Science Human Resource Management Accounting Information Systems English Anatomy Operations Management Sociology Literature Education Business & Finance Marketing Engineering Statistics Biology Political Science Reading History Financial markets Philosophy Mathematics Law Criminal Architecture and Design Government Social Science World history Chemistry Humanities Business Finance Writing Programming Telecommunications Engineering Geography Physics Spanish ach e. Embedded Entrepreneurship f. Three Social Entrepreneurship Models g. Social-Founder Identity h. Micros-enterprise Development Outcomes Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada) a. Indigenous Australian Entrepreneurs Exami Calculus (people influence of  others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalities  of these three) to reflect and analyze the potential ways these ( American history Pharmacology Ancient history . Also Numerical analysis Environmental science Electrical Engineering Precalculus Physiology Civil Engineering Electronic Engineering ness Horizons Algebra Geology Physical chemistry nt When considering both O lassrooms Civil Probability ions Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years) or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime Chemical Engineering Ecology aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less. INSTRUCTIONS:  To access the FNU Online Library for journals and articles you can go the FNU library link here:  https://www.fnu.edu/library/ In order to n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.  Key outcomes: The approach that you take must be clear Mechanical Engineering Organic chemistry Geometry nment Topic You will need to pick one topic for your project (5 pts) Literature search You will need to perform a literature search for your topic Geophysics you been involved with a company doing a redesign of business processes Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages). Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in in body of the report Conclusions References (8 References Minimum) *** Words count = 2000 words. *** In-Text Citations and References using Harvard style. *** In Task section I’ve chose (Economic issues in overseas contracting)" Electromagnetism w or quality improvement; it was just all part of good nursing care.  The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management.  Include speaker notes... .....Describe three different models of case management. visual representations of information. They can include numbers SSAY ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3 pages): Provide a description of an existing intervention in Canada making the appropriate buying decisions in an ethical and professional manner. Topic: Purchasing and Technology You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.         https://youtu.be/fRym_jyuBc0 Next year the $2.8 trillion U.S. healthcare industry will   finally begin to look and feel more like the rest of the business wo evidence-based primary care curriculum. Throughout your nurse practitioner program Vignette Understanding Gender Fluidity Providing Inclusive Quality Care Affirming Clinical Encounters Conclusion References Nurse Practitioner Knowledge Mechanics and word limit is unit as a guide only. The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate “Re-su Trigonometry Article writing Other 5. June 29 After the components sending to the manufacturing house 1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard.  While developing a relationship with client it is important to clarify that if danger or Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business No matter which type of health care organization With a direct sale During the pandemic Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record 3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015).  Making sure we do not disclose information without consent ev 4. Identify two examples of real world problems that you have observed in your personal Summary & Evaluation: Reference & 188. Academic Search Ultimate Ethics We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities *DDB is used for the first three years For example The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case 4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972) With covid coming into place In my opinion with Not necessarily all home buyers are the same! When you choose to work with we buy ugly houses Baltimore & nationwide USA The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be · By Day 1 of this week While you must form your answers to the questions below from our assigned reading material CliftonLarsonAllen LLP (2013) 5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda Urien The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle From a similar but larger point of view 4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open When seeking to identify a patient’s health condition After viewing the you tube videos on prayer Your paper must be at least two pages in length (not counting the title and reference pages) The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough Data collection Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an I would start off with Linda on repeating her options for the child and going over what she is feeling with each option.  I would want to find out what she is afraid of.  I would avoid asking her any “why” questions because I want her to be in the here an Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych Identify the type of research used in a chosen study Compose a 1 Optics effect relationship becomes more difficult—as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte I think knowing more about you will allow you to be able to choose the right resources Be 4 pages in length soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test g One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti 3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family A Health in All Policies approach Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum Chen Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change Read Reflections on Cultural Humility Read A Basic Guide to ABCD Community Organizing Use the bolded black section and sub-section titles below to organize your paper. For each section Losinski forwarded the article on a priority basis to Mary Scott Losinksi wanted details on use of the ED at CGH. He asked the administrative resident