Question: Assignment: TechGiant Electronics is issuing a safety notice for certain models of its portable chargers, specifically the 'PowerPack' model from 2 0 1 5 to
Assignment: TechGiant Electronics is issuing a safety notice for certain models of its portable chargers, specifically the 'PowerPack' model from to
and the 'EnergyBar' model from to due to potential overheating issues.
Write a program that reads the model data from input, specifically the name and then the year of production. As different versions of these models were
produced, you need to print out:
Whether the input model equals either PowerPack or EnergyBar exactly;
Whether the input model equals either PowerPack or EnergyBar ignoring case;
Whether the input model contains either substring
or EnergyBar ignoring case;
If any of these checks are true, check also the model year and print out ok if the year does not fall in the relative range or Issue notice otherwise. Your
class name should be Answer.
Take note of the sample runs, as you will need to follow the same format.
Sample Runs:
User input between
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
