IT104 - Unit 7 Homework and Lab Assignment Unit 7 Homework (from Ch 5) 1.) Describe the difference between pretest loops and posttest loops. 2.) What is a conditioned-controlled loop. 3.) What is a count-controlled loop. 4.) What is an infinite loop. Write the code for an infinite loop. 5.) Design a While loop that lets the user enter a number. The number should be multiplied by 10‚ and the result stored in a variable named product. The loop should stop once product contains a value > 100.
Premium Programming language Statement
Pseudocode building blocks http://youtu.be/Xg6alMKCQXU – part 1 http://youtu.be/NaFrBLgRyWY – part 2 - Reading material pseudocode does not match up with answer key. - Pseudocode can more closely model real world languages as is shown below. Sequential Commands [Module Name] Module - Keyword - Must have an End Tag - Must be one word Example: Main Module … End Main Module Declare [DataVariableName] As [DataType] - DataVariableName can be any name chosen as long as it is one word
Premium Statement Programming language
You know the drill when it comes to losing weight — take in fewer calories‚ burn more calories. But you also know that most diets and quick weight-loss plans have about as much substance as a politician’s campaign pledges. You’re better off finding several simple things you can do on a daily basis — along with following the cardinal rules of eating more vegetables and less fat and getting more physical activity. Together‚ they should send the scale numbers in the right direction: down. 1. Once
Premium Obesity Weight loss Appetite
Are there any calories in an apple? It’s true that an apple a day keeps the doctor away. Apples are not only good for health but also for mind. The number of calories in an apple are 72‚ a medium sized apple. Weight watchers are advised to eat apples because of the high amount of fiber in them. There are not many calories in an apple‚ you can eat a dozen in a day but it might not be good for your health. It is said to not eat more than 5-10 apples in a day and for weight watchers not more than 3
Premium Nutrition Health Food
Everything we drink and eat contains calories. Excess calorie intake means that the daily intake of calories is too much and above the daily use of energy. Nowadays‚ the major nutritional problems are excess calorie intake such as fat‚ protein‚ and sugar and insufficient intake of the fiber and nutrients provided by vegetables and fruits. A well-balanced diet is important for our body to function optimally‚ everyone needs to be conscious about the bad effects of a high-calorie intake. Why are
Premium Nutrition Obesity Cancer
Calories in Common Foods Food Size Calories Apple 1 small (4 oz.) 80 Banana 1 medium (6 oz.) 101 Grape each 2 Mango 1 (8 oz.) 135 Orange 1 (4 oz.) 71 Pear 1 (5 oz.) 100 Peach 1 (6 oz.) 38 Pineapple 1 cup 80 Strawberry 1 cup 53 Watermelon 1 cup 45 Asparagus 1 cup‚ boiled 36 Bean curd 4 oz. 81 Broccoli 1 cup 40 Carrots 1 cup 45 Cucumber each 30 Eggplant 1 cup‚ boiled 38 Lettuce 1 cup 7 Tomato 1 cup 29 Beef‚ regular‚ cooked 1 slice (2 oz.) 120 Chicken‚ cooked 1 slice (2 oz.) 95 Egg large
Premium Milk
Pseudocode Building Blocks * Reading Material pseudocode does not match up with answer key. * Pseudocode can more closely model real world languages as shown below. Sequential Commands * Refer to reading material in chapter 2 pages 33-37. [ModuleName] Module * Keyword * Must have an End Tag Example: Main Module End Main Module Declare [DataVariableName] as [DataType] * DataVariableName can be any name chosen as long as it is one word. * DataType can be one
Premium Statement
Progamming concepts | | Week 1 Pseudocode Statement ReviewThere are 4 types of pseudocode statements that we learn in Week 1:DeclareYou use Declare to tell the computer the names of variables and the types of variables. The syntax is:Declare variablename as type A variable name must begin with a letter‚ can include letters‚ numbers and the underscore. Spaces are not allowed. The variable type is based on the data that the variable will hold. For example‚ if the variable stores a name‚ then
Premium Variable Programming language
Notes on Algorithms‚ Pseudocode‚ and Flowcharts Introduction Do you like hot sauce? Here is an ‘algorithm’ for how to make a good one: Volcanic Hot Sauce 10-12 scotch bonnets or Habanero‚ serrano‚ jalapeno 6 cloves Garlic‚ peeled and chopped 1/3 c Fresh lime juice 1/3 c Distilled white vinegar 2 tbl Dijon style mustard 2 tbl Olive oil 1 tsp Molasses 1/2 tsp Turmeric 1 tbl Salt or to taste 1. Combine the pepper‚ garlic‚ lime juice‚ vinegar‚ mustard‚ oil‚ molasses‚ turmeric‚ and salt in a blender
Free Algorithm Flowchart Computer
Week 1 Activity – Pseudocode ------------------------------------------------- TCO #1– Given a simple business problem‚ design and desk-check a solution algorithm that is expressed in terms of pseudocode or program notes and input-process-output (IPO) analysis leading to a flow chart. ------------------------------------------------- Assignment: This activity will assist you in the understanding of how output should appear after statements are executed (results) and how to
Premium Flowchart