Friday, May 17, 2019

Homework for professional programmer Essay

Short Answer1. What does a professional software engineer usually do stolon to gain an understanding of a problem? (The wording of this question has me a little stumped so Ill give you all the answers that are running through my head and cope with if that is what you are human faceing for here) a. Should problem = chopine assignment of some sort, than the first step would be to physique the basis of the program in pseudocode to gain a clear picture of what kind of commands will act upon where, then move into flowcharting to start putting unneurotic the logical system. b. Should problem = an issue in the code that is preventing it from executing, than the first thing I would imagine being done is to look over the program for syntax errors and logic errors. (While I know that syntax is usually the culprit for error, I may as well look for the both of them if Im going to be going over code line by line.)2. What is pseudocode?Pseudocode is fake code (as per the pseudo meaning fak e and code meaning code). This is where a programmer writes appear the code without worry of syntax or logic errors to get a visual feel of how the program should unfold.3. Computer programs typically perform what three steps?The three steps that computer programs typically perform are a. Input- where the program collects data from a sourceb. Process- Where the input data is used for an out accruec. 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. object an algorithm that prompts the user to forecast his or her height and investment firms the users input in a uncertain named height.1 divulge You possess found the Im Going to Turn Your Height into knowledge I Can Use program (feel free to clap and cheer)2 intro tangle with your height, please3 Input yourHeight4 showing give thanks you ( like a shot please move along, I have more people to collectdata from.) 2. Design an algorithm that prompts the user to enter his or her pet garble and stores the users input in a variable named color. 1 Display bacchanal 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 drive out up, you will never remember being here Programming Exercise Questions1. Personal InformationDesign a Program that displays the following learning* Your name* Your address, with the city, state, and ZIP* Your telephone human activity* Your college majorDisplay 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. convey you so much.Display What might your name be?Input suckerNameDisplay What a nice name you have, , suckerNa me, 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 spread your information to all of those annoying telemarketers out there. (ex(123)456-7890) Input sucker PhoneDisplay Alright, last bit of info. I just take up your college major and you are free to go. Input sucker MajorDisplay Thank you for all of your time. I consent to have you talking to amillion people you dont want to answer the phone for soon. Have a pleasant day.From the Programmer,I understand that I would need to take this type of program much more seriously if I were to be putting together something for a client. I have had a good run of the college recruiter phone calls lately stemm ed from the adventure 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 fulfill 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 each item, and then displays the sub entirety of the sale, the amount of gross sales tax, and the total. Assume the sales tax is 6 percent. Display StuffMart CartSet stuffTax = 0.06Display Please enter each item separatelyDisplay Item 1Input stuffOneDisplay item 2Input stuffTwoDisplay Item 3Input stuffThreeDisplay Item 4Input stuffFourDisplay Item 5Input stuffFiveSet stuffSub =stuffOne + stuffTwo + stuffThree + stuffFour + stuffFive Display Here is your subtotal $, stuffSubSet stuffTotal =stuffSub * stuffTaxDisplay Here is your total due $, stuffTotalDisplay Thank you for shopping at StuffMart

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.