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 2015 to
2018 and the 'EnergyBar' model from 2016 to 2019, 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 [].
Assignment: TechGiant Electronics is issuing a

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 Programming Questions!