Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . For each of the following tasks, provide the complete pseudo code. Include the new pseudo code elements: class . . . end class,
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 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 pts: As people pass through an entry kiosk at the theater, they are prompted to enter their age. If they are 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 or over displays a message that they get a wrist band. Note that the program does nothing if they are not or over...
c Task pts : an application program where the user enters the price of an item and the program computes shipping costs. If the item price is $ or more, then shipping is free otherwise it is of the price. The program should output the shipping cost and the total price.
Submit the FlowChart for this Task along with the pseudocode.
d Task pts: A program that asks the user to enter their birth month integer 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 pts: This task uses Strings and an ifthen..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. ieYou get a Democratic Donkey.
f Task pts: 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started