would you be able to help me solve my programming problem? I need help constructing a "customer class". I have attached the question for you to better understand below, I need this program to be written in pseudocode and I would also need a UML diagram as well.
2, Walgreens provides prescriptions for customers. Design a single class diagram showing the class, the application program, the relationship between the two, and multiplicity. Then write the pseudocode as described below. Be sure to follow the CTP 115 Style Criteria for naming conventions, class diagrams, pseudocode, keywords, and operators.
Create a Customer class that contains a customer number, customer age, and the number of prescriptions in which the customer has purchased in the last year. Include the following:
A default constructor that initializes each attribute to some reasonable default value for a non-existent customer.
Another constructor method that has a parameter for each data member, called the overloaded constructor. This constructor initializes each attribute to the value provided when an object of this type is instantiated. If the customer's age is not between 16 and 100 inclusive, then display an error message and set the age to 0.
Accessor and mutator methods for each attribute. For the age mutator, if the customer's age is not between 16 and 100 inclusive, then set the age to 0, since this is obviously an error
A method that displays all the data about a customer,
An application program that contains two modules: the main() module and the checkForPrescriptions() module. Include instructions in the main() module to do the following:
Create and initialize a Customer object using the default constructor, naming it newCustomer. Call the appropriate methods to initialize all the data members for the newCustomer object, choosing appropriate values. In this case newCustomer is the name of the object.
Create and initialize 2 other different Customer objects using the overloaded constructor. Choose appropriate values for the attributes for each of the two Customer objects.
Call the checkForPrescriptions() method for each Customer object, so there will be 3 calls to the checkForPrescription() method. The checkForPrescription() module must do the following:
1) Accept a Customer argument (i.e., it has a parameter declared using Customer as the data type).
2) Display all the data for any customer that is between 16 and 21 years old and has more than 2 prescriptions.
Hi, I'm a software developer with over 5 years of experience working on Java, Python and many other tools and technologies. I can help you out with this UML design. Thanks, Tousif