讲解:C++ CS 100 Project Twophp

Introduction提交时注意作业的提交要求要求没有使用函数等教程中没有涉及到的知识。RequirementCS 100 Project Two – Spring 2017Project Overview: Part of college is maintaining a reasonable social life. Part of maintaining a reasonable social lifeis remembering when basic holidays are approaching and what to do for that holiday. For example, Valentine’s Dayis February 14. You need to decide if you are getting any gifts for any of your friends or family. Fortunately, you arein CS 100, so you can write a program to make these decisions for you. Your program should follow the flowchartshown on the next page.This program will prompt the user for several inputs. It then tells the user what to do (what gift to give). Two sampleexecutions of the program are shown below, with the program prompts in blue and the user responses in red.Who is getting the gift? familyWhich family member? siblingDid they ever beat you up? yesDid you deserve it? yesGet them a funny Valentine’s Day card!Who is getting the gift? friendWhat type of friend? childhoodDo you still talk to them? yesDid you ever date them? noYou do not need to get them anything!You can assume the user will always enter legal input. Every input will be one of the lowercase words shown below,and each input will be one of the expected answers to the respective question.family friend parent sibling other childhood collegesometimes young old yes noThe exact wording of the prompts is up to you. You can customize them as you want as long as you maintain theexisting flowchart functionality.C++代写 CS 100 Project Two代做php实验作业What You Need To Do• Create a directory project2 on your machine. In that directory, create a file named valentine.c• In valentine.c, write the code needed to implement the “gift” flowchart. Make sure that you:o Have a header block of comments that includes your name and a brief overview of the program.o Prompt the user for input and make a recommendation based on that input.o Prints the expected output in a clear, legible format, such as: Do nothing for this person Get this person a funny Valentine’s card Get this person something nice (chocolate or flowers)• You may assume that all input is lowercase and legal and answers the specific question that was asked.• There are eighteen possible paths through this flowchart. You can see where each of the paths should lead.Make sure that your program works for all possible paths through the flowchart.• Bundle your project2 directory into a single (compressed) zip file. To do this:o PC: Using Windows Explorer, right click on the project2 directory and select “Send To” and then“Compressed (zipped) folder” If you are using Cygwin, your directory is probably in c:/cybwin64/home/userid If you are using Bash, it is probably in c:/Users/userid/AppData/Local/lxss/home/userido Mac: Using Finder, use a secondary click on the project2 directory and select “Compress foldername”• Once you have a compressed zip file that contains your project2 code, submit that file to Blackboard.Project2 is due at 5:00pm on Friday, February 10. Late projects are not accepted.转自:http://ass.3daixie.com/2019031022472260.html

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 218,284评论 6 506
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,115评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,614评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,671评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,699评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,562评论 1 305
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,309评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,223评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,668评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,859评论 3 336
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,981评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,705评论 5 347
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,310评论 3 330
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,904评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,023评论 1 270
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,146评论 3 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,933评论 2 355

推荐阅读更多精彩内容

  • By clicking to agree to this Schedule 2, which is hereby ...
    qaz0622阅读 1,457评论 0 2
  • 周末,下雨了,儿子的暑假工还有最后两天,儿子坚持得真好,和爸爸的关系也不错。和好友去葡萄园摘葡萄,放飞自己,什么也...
    Jane_aad1阅读 90评论 0 1
  • 随着一声巨响,这个世界中的第一位英雄就悄然而逝,他留给了这片世界巨大的遗产等待着人们去挖掘。 磐古的身躯在混沌...
    孺将阅读 464评论 1 1
  • 1. 遇到哈尔滨大哥的那天,我和珊珊已经在抚远呆了一个星期,那个晚上是我们在这个东极小镇的最后一夜。我俩都有点恹恹...
    八蛋大人阅读 879评论 1 4
  • 亚麻籽油——被称为“植物黄金”,又被称为“学生食品”、“知识分子食品”。 它的细胞基质中含有木酚素,其含量比其它常...
    亚麻星Cc阅读 773评论 0 0