Question: Lab: 1 . Just submit this document ( See directions below. ) and insert your work here. 2 . For each of the following tasks,

Lab:
1. Just submit this document (See directions below.) and insert your work here.
2. For each of the following tasks, provide the complete pseudo code. Include the new pseudo code elements: class ... end class, main ... return, user prompts, and declare all variables that the program needs. You dont have to give me the Flow Charts except for one case indicated below! Declare String variables with String (capital S) since thats what we do in java. We also have num and boolean variables in pseudocode. Declare all the variables at the top of the code block within main()... return. That is immediately after main().
a. Task 1(2 pt): A program that converts a temperature in F that the user provides and returns the equivalent temperature in C. Hint: Google is your friend! Given F, solve for C. This program does not require an if structure and has a straight forward input process output structure!
b. Task 2(2 pts): As people pass through an entry kiosk at the theater, they are prompted to enter their age. If they are 21 or older, they get a paper wrist band. Code a logic program that asks the user to enter their age and then if they are 21 or over displays a message that they get a wrist band. (Note that the program does nothing if they are not 21 or over...)
c. Task 3(3 pts) : an application program where the user enters the price of an item and the program computes shipping costs. If the item price is $100 or more, then shipping is free otherwise it is 2% of the price. The program should output the shipping cost and the total price.
Submit the FlowChart for this Task 3 along with the pseudocode.
d. Task 4(3pts): A program that asks the user to enter their birth month (integer 112 inclusive). If the user enters a value in range, the program echoes the input (Your birth month is: N) but if the value is not in the range it outputs an error msg (You entered an incorrect month value: N). Assume that the user can only enter numbers here.
e. Task 5(3 pts): (This task uses Strings and an if..then..elseif cascade) A program that prompts the user for their party affiliation (Democrat, Republican, or Independent) and responds accordingly with a Donkey, Elephant, or Man. (i.e.You get a Democratic Donkey.)
f. Task 6(3pts): (Extra Credit): A program that takes two inputs and compares them. And indicates if they are equal or if they are not indicates the one that is less. (Assume inputs are simple integers although that is not required and we could have any object that could be compared in this fashion.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!