Find Jobs
Hire Freelancers

customer class

$10-30 USD

Selesai
Disiarkan lebih dari 4 tahun yang lalu

$10-30 USD

Dibayar semasa penghantaran
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. Question: 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.
ID Projek: 21889916

Tentang projek

1 cadangan
Projek jarak jauh
Aktif 5 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
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
$45 USD dalam 3 hari
4.9 (53 ulasan)
5.8
5.8

Tentang klien

Bendera UNITED STATES
Glen Burnie, United States
5.0
1
Kaedah pembayaran disahkan
Ahli sejak Okt 20, 2019

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.