Please use low level java
The solution x 1a-2 (4 pts) Problem In the United States, phone numbers are comprised of a 3-digit arca code followed by a 7-digit e Area codes of 800, 888, 877, 866, 855, and 844 denote toll-free sumbers (ce heepe://www.tce.gov/ consusera/guides/wbat-toll-free-nusber-and-how-does-it-vork) Within your Lab204 folder, write a program named Tol1Freellunbers.jara that allows the user to eute a 10-digit U.S. phone namber as a single integer. Your program should then priut wlectler t tht number is toll-free. llere are two examples of what your completed program might look like when you ru it. Uo parts indicate what you type in as the program is running Ester a 10-digit phone susber (no spaces or dasbes) 8778675309 That susber ie toll-free! Enter a 10-digit phone susber (no epaces or dashea): 9018675302 That nusber is not toll-free Hinta: . The ist data type only stores valucs up to 2 -1, which works out to 2,147.483,647. Thss 10-digit numbers will not be storable as int values. Instead, use the long data typs long helaves the same as int but uses twice the memory to store its alues (64 bits vs. 32 sits), giving it a maximum value of 263 -1. Use nextLong to read a long valuc from the user e Since the user enters the phone number into a single variable, can you tase isteger division andfor mod to get the arca code by itselr? (4 pts) Problem 3 Suppose you're throwing a wild party for yourself and 9 of your closest friends. Since this party is sild you expect each person (including yourself) to drink 14 cans of uh... strawberry julce. You dou't wa to disappoint any of your friends (or yourself), so you nood to nake sure there's enough strasherry juice available: 10 people x 14 cans/person 140 cans. But you can't just buy strawberry juice in individual cans - it's sold only in 6-packs. Thus, you noed to buy at least 24 of thosc 6-packs (giving you a total of 144 cans) to satisfy evcryone. The extra 4 cans can be saved for next time, or perhaps used as au incentive to encourage your guests to help you clean up afterward. After throwing several of these partics, you're getting tired of doing the math yourself every tihue. Let's do the want to throw a party for f friends, cach of whom will drink e cans of a wholcsotne, lcalthy beverage which is sold only in p-packs. (As before, assume that you'll partake in the drinking yourself too.) computer scientist thing and generalize the problem so we can write a prograuns to solve it Within your Lab2V folder, write a program named PartyPlanper java that reads user iuput for f, and p. The program should then report the minimum number of p packs that noed to he bougla, aloug with the number of extra cans (if any) that you'll have. The program should also allow you to eter the name of the drink (as a string) ardd include that name in its results ler's an example of what indicate what you type in as the program is running your completed program might look like when you run it. Underliued parts Party Planner Pro v1.0 How many triends are you throving this party for? What is the drink of choice? straxberry juice How many cans vill each person drink? 14 How many cans are sold per pack? The minimum purchase is 24 6-packs of stravberry juice, vhich vil1 satiafy everyone and leave 4 extra can(a). here are some scenarios in which you can buy exactly the desired number of cans, with no extra these scenarios? Use an if statement to detcrmine whether there int: T cans. Are the calculations different for are extra cans