Write a program for monthly sales


Problem:

Question- Write a program that accepts any number of monthly sales amounts . Display the total of the values. Display a report showing each original value entered and the percentage that value contribute to the total . You may prompt the user for the number of values to be inputted.

Question2- Write a regular expression that selects lines containing a phone number. Assume a U.S./Canadian number with a 3-digit area code, a 3-digit exchange and another 4 digits. An additional extension is also possible. Assume that the phone number will have dashes or periods in the "usual" way: 718-951-5000 or 718.951.5000. Dashes and periods cannot be mixed. Also, the area code may be surrounded by parentheses: (718)-951-5000. Extensions, if present, will start with an X or an x, preceded by a space or nothing and followed by at least one and no more than four digits. Oh, and one other thing: area codes do NOT start with 0 or 1, do they? What a mess! (But somebody has to do it-- and that's you!) For this exercise you must surround your solution with double quotes.

Please show code with comments so I can follow what you are doing.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program for monthly sales
Reference No:- TGS0893977

Expected delivery within 24 Hours