1. Create a class called AlienCurrencyConverter An alien civilization has zurms, blurgs, wazzles and winks. Each zurms is worth 73 cents. Each blurg is worth $14.72. Each wazzle is worth $101.22. Each wink is worth $823.17. Use a Scanner object to ask the user how many zurms, blurgs, wazzles and winks they have and store each contents in appropriately named variables. Calculate the total amount of money that the user has in dollars and also, equivalently, in cents. Your code should look and behave exactly as shown below.

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter10: Introduction To Inheritance
Section: Chapter Questions
Problem 6E
icon
Related questions
Question
1. Create a class called AlienCurrencyConverter
An alien civilization has zurms, blurgs, wazzles and winks.
Each zurms is worth 73 cents.
Each blurg is worth $14.72.
Each wazzle is worth $101.22.
Each wink is worth $823.17.
Use a Scanner object to ask the user how many zurms, blurgs, wazzles and winks
they have and store each contents in appropriately named variables. Calculate the
total amount of money that the user has in dollars and also, equivalently, in cents.
Your code should look and behave exactly as shown below.
Sample run of the program:
This program will tell you how much your zurms, blurgs, wazzles
and winks are worth in total dollars and, equivalently, in
total cents.
How many zurms do you have? 74
How many blurgs do you have? 1
How many wazzles do you have? 3
How many winks do you have? 5
74 zurm (s), 1 blurg (s), 3 wazzle (s) and 5 wink (s) are worth
$4488.25 which is equal to 448825 cents.
Transcribed Image Text:1. Create a class called AlienCurrencyConverter An alien civilization has zurms, blurgs, wazzles and winks. Each zurms is worth 73 cents. Each blurg is worth $14.72. Each wazzle is worth $101.22. Each wink is worth $823.17. Use a Scanner object to ask the user how many zurms, blurgs, wazzles and winks they have and store each contents in appropriately named variables. Calculate the total amount of money that the user has in dollars and also, equivalently, in cents. Your code should look and behave exactly as shown below. Sample run of the program: This program will tell you how much your zurms, blurgs, wazzles and winks are worth in total dollars and, equivalently, in total cents. How many zurms do you have? 74 How many blurgs do you have? 1 How many wazzles do you have? 3 How many winks do you have? 5 74 zurm (s), 1 blurg (s), 3 wazzle (s) and 5 wink (s) are worth $4488.25 which is equal to 448825 cents.
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Unreferenced Objects
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,