Write your code in the file LuckySevens.java. Write your test cases in assign3-t
ID: 3543937 • Letter: W
Question
Write your code in the file LuckySevens.java. Write your test cases in assign3-testcases.txt.
Sevens are considered lucky numbers. Your task is to count the number of sevens that appear within a range of numbers. Your solution should make use of looping constructs.
Ask the user for the following information, in this order:
Determine the number of sevens that appear in the sequence from lower end to upper end (inclusive).
Hint: Some numbers have more than 1 seven, and not every 7 appears in the ones place.
Hint2: Nested loops are helpful
Exit on error.