Thursday, February 21, 2019
Homework for professional programmer Essay
Short Answer1. What does a professional computer programmer ordinarily do start to gain an understanding of a problem? (The vocabulary of this question has me a little stumped so Ill give you e really last(predicate) the answers that are running through my head and see if that is what you are opinioning for present) a. Should problem = program assignment of some sort, than the first step would be to design the basis of the program in pseudocodification to gain a advance picture of what kind of commands will work where, then move into flowcharting to scratch line putting together the logic. b. Should problem = an issue in the formula that is preventing it from executing, than the first thing I would imagine being founding fathere is to air over the program for syntax errors and logic errors. ( charm I know that syntax is normally the culprit for error, I may as well look for the both(prenominal) of them if Im going to be going over code line by line.)2. What is pseudoc ode?Pseudocode is bogus code (as per the pseudo meaning fake and code meaning code). This is where a programmer writes out the code without irritation of syntax or logic errors to get a visual feel of how the program should unfold.3. Computer programs typically perform what lead steps?The three steps that computer programs typically perform are a. infix- where the program pecks data from a sourceb. Process- Where the input data is used for an out practisec. Output- where the processed data is presented4. What does the term user-friendly mean?User-friendly is a term used in the software development to describe programs that are easy to use. Algorithm Workbench Review1. Design an algorithm that prompts the user to enter his or her height and installs the users input in a uncertain named height.1 flourish You have found the Im Going to Turn Your Height into Information I butt end Use program (feel free to clap and cheer)2 pomposity Enter your height, please3 introduce your Height4 reveal convey you ( instanter please move along, I have more people to collectdata from.) 2. Design an algorithm that prompts the user to enter his or her front-runner color and stores the users input in a variable named color. 1 Display Wow You found my super-secret hiding place While youre here, can I ask you what your favorite color is? 2 Input favColor3 Display You are getting sleepy soooooo very sleepy when you wake up, you will never remember being here syllabusming Exercise Questions1. Personal InformationDesign a Program that displays the following information* Your name* Your address, with the city, state, and ZIP* Your telephone number* Your college major(ip)Display Welcome to your personal information data collection program. It would be my honor to collect your personal data and use it at my discretion. Now, if you dont mind, I would love for you to simply enter your data when prompted. give thanks you so much.Display What mogul your name be?Input ice lol lyNameDisplay What a nice name you have, , suckerName, now where might your address be? Display Street (ex 12345 What St.)Input suckerStreetDisplay Now the city (ex Whosville)Input suckerCityDisplay Now how about your state? (ex IN)Input suckerStateDisplay Now Id like your zip-code please.(ex 54321) Input suckerZipDisplay Just for fun, how about you give me your phone number too. Area code first, please. Id like this to be accurate when I dissemination your information to all of those annoying telemarketers out there. (ex(123)456-7890) Input sucker bring forwardDisplay Alright, last bit of info. I just need your college major and you are free to go. Input sucker MajorDisplay thank you for all of your time. I hope to have you talking to a zillion people you dont want to answer the phone for soon. sop up a pleasant day.From the Programmer,I understand that I would need to affiance this type of program much more seriously if I were to be putting together something for a client. I have had a full run of the college recruiter phone calls lately stemmed from the misfortune of trying to look for scholarships. Unfortunately I decided to take it out on this program assignment. My hope is that you will have just as much of a laugh over it as I have and that you find it to run across the requirements of the assignment.4. Total PurchaseA customer in a store is purchasing five items. Design a program that asks for the price of all(prenominal) item, and then displays the subtotal of the sale, the amount of sales tax, and the total. Assume the sales tax is 6 percent. Display StuffMart CartSet stuffTax = 0.06Display Please enter from each one item separatelyDisplay Item 1Input stuffOneDisplay item 2Input stuffTwoDisplay Item 3Input stuffThreeDisplay Item 4Input stuffFourDisplay Item 5Input stuffFiveSet stuffSub =stuffOne + stuffTwo + stuffThree + stuffFour + stuffFive Display present is your subtotal $, stuffSubSet stuffTotal =stuffSub * stuffTaxDisplay Here is your total due $, stuffTotalDisplay Thank you for shopping at StuffMart
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment