and Fahrenheit. The user should be able to input a temperature along with a unit ("C" or "F"), and the program should output the converted temperature. If the units are neither "C" nor "F", output "Invalid".

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter7: Characters, Strings, And The Stringbuilder
Section: Chapter Questions
Problem 3GZ
icon
Related questions
Question
Ex 5) draw a flowchart for a program that converts temperatures between Celsius
and Fahrenheit. The user should be able to input a temperature along with a
unit ("C" or "F"), and the program should output the converted temperature.
If the units are neither "C" nor "F", output "Invalid".
Ex 6) assume there is a webpage containing an HTML input of type text and a button.
When the button is clicked a function, named Problem06, is called. Draw a
flowchart that outputs whether the input is a vowel or a consonant until the
letter "z" is received. When "z" is received, the button should be disabled (so
the function cannot be called anymore).
Ex 7) By modifying your flowchart above, draw a flowchart to continue receiving
characters and output if they are vowels or consonants, until a "z" is entered.
When a "z" is entered, the program should output how many vowels and how
many consonants have been entered, and then stop.
Ex 8) Draw a flowchart for a computer program that will receive numbers and output if
they are divisible by 3 or not until a zero is entered. When a zero is entered, the
program should output how many of the entered numbers were divisible by 3, then
stop. IMPORTANT RESTRICTION: you are not allowed to divide the number by 3;
therefore, you are not allowed to use the remainder operator (%) over 3 to verify
through the remainder if the number is divisible by 3. You may use any other math
trick you wish.
Transcribed Image Text:Ex 5) draw a flowchart for a program that converts temperatures between Celsius and Fahrenheit. The user should be able to input a temperature along with a unit ("C" or "F"), and the program should output the converted temperature. If the units are neither "C" nor "F", output "Invalid". Ex 6) assume there is a webpage containing an HTML input of type text and a button. When the button is clicked a function, named Problem06, is called. Draw a flowchart that outputs whether the input is a vowel or a consonant until the letter "z" is received. When "z" is received, the button should be disabled (so the function cannot be called anymore). Ex 7) By modifying your flowchart above, draw a flowchart to continue receiving characters and output if they are vowels or consonants, until a "z" is entered. When a "z" is entered, the program should output how many vowels and how many consonants have been entered, and then stop. Ex 8) Draw a flowchart for a computer program that will receive numbers and output if they are divisible by 3 or not until a zero is entered. When a zero is entered, the program should output how many of the entered numbers were divisible by 3, then stop. IMPORTANT RESTRICTION: you are not allowed to divide the number by 3; therefore, you are not allowed to use the remainder operator (%) over 3 to verify through the remainder if the number is divisible by 3. You may use any other math trick you wish.
Expert Solution
steps

Step by step

Solved in 5 steps with 4 images

Blurred answer
Knowledge Booster
Constants and Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT