Estraysha-221003142 / ICG-GROUP-55-PRO

0 stars 0 forks source link

Functions #2

Open Estraysha-221003142 opened 3 years ago

Estraysha-221003142 commented 3 years ago

Copy and paste function when done.

Estraysha-221003142 commented 3 years ago

Customer Relationship Management Functions

Functions personalDetails () { IF (all fields are complete) THEN Check that all personal details are correct Verify personal details Prompt for username Get username Prompt password Get password IF (password = 8>=password <=15 (string)) THEN Confirm password Prompt verification code Get verification code via email or text message Enter verification code Print “Account successfully created.” ELSE Print “Password is not strong. Make sure password is between 8 to 15 characters.” ENDIF Print “Please check if all fields are completed.” ELSE Print “You have to fill in all fields.” ENDIF Click “SAVE” button }

productInformation (product name) { Print product ID Print product image Print product name Print product status Print “Would you like to add this item to your cart?” IF (response= “Yes” button) THEN Display “Item has been added to the cart.” ELSE Display “Would you like to rate the product?” IF (response= “Yes” button) THEN Display five-star rating picture Display “Remind me later” button ELSE Display “Please leave a comment.” ENDIF ENDIF Display “Would you like to sign out?” IF (response= ‘Y’) THEN Display “SIGN OUT” button ENDIF }

frequentlyAskedQuestions () { IF (question= has an answer) THEN Display question Display answer Display “Was this helpful?” IF (answer = ‘Y’) THEN Display question Display answer ENDIF ELSE Display previously asked questions Display previous answers. ENDIF }

Estraysha-221003142 commented 3 years ago

Human Resources Management Functions

Functions employeePersonalDetails () { IF (all fields are complete) THEN Check that all employee personal details are correct Verify employee personal details Prompt verification code Get verification code via email address or text message Enter verification code Display “Your employee ID is:”, employee ID (integer= random numbers (<=8)) Display default username Display default password Display “Please change your password after you login to the system.” ENDIF }

username () { Prompt default username Get default username Prompt default password Get default password Click SETTINGS ICON button Click “Change Password” Enter default password Enter new password Confirm new password Display “Password is successfully changed. Enter new password the next time you login” } bankingDetails () { Enter banking details Verify banking details Prompt for verification code Get verification code via email address or text message Enter verification code Display “Banking details added.” } applicantDetails () { Verify applicant details Prompt verification code Get verification code via email address or text message Enter verification code Display list of vacancies that are available SELECT a vacancy Click ENTER button Display “You have successfully applied.” Display “You will be notified when you need to come in for an interview.” }

supervisorDetails () { Click EMPLOYEE ENQUIRY Click PROGRESS REPORT Display PROGRESS REPORT }

Estraysha-221003142 commented 3 years ago

Finance and Accounting Management Functions

Functions salesReport (product name or product ID) { Enter product name or product ID Display product information Display product sale report Display product demand percentage }

financialStatus () { Click on Company expenses Display company expenses }

financailReport () { Display weekly financial report Display monthly financial report Display yearly financial report }

totalSales () { Total sale =0 FOR COUNT= 0 to number of products DO Total sale= count +1 ENDFOR Display total sale }

productPromotion (product name or product ID) { Display product information Display product promotion }

productRestock (product details) { Display product details IF (if restocking price= “PAID”) THEN Display “Restocking price is paid.”
ELSE Display “Restocking price not paid. ” ENDIF Display restocking price }

productOrder () { Prompt product order details Get product order details Print quotation of product Print invoice of product }

totalCost () { Total cost=0 FOR COUNT = 0 TO number of product DO Total cost = count + 1 ENDFOR Display Total cost }

storageSolutions () { warehouseValue = 0 garageValue = 0 storeValue = 0 Print “Do you own any warehouses?” IF (response = ‘Y’) THEN warehouseValue = warehouseValue +1 garageValue = garageValue + 1 storeValue = storeValue + 1 Display warehouseValue Display garageValue Display storeValue ELSE Display “Would you like to buy a warehouse and garage?” EDNIF numberAssests = warehouseValue + garageValue }

supplierDetails (product details) { Prompt supplier details Get supplier details Print product details with supplier details }

insurance () { Print “Are any of your assets insured?” IF (response = ‘N’) THEN Display “You can insure your assets with the following:”, list of insurance companies ENDIF }

budgets () { Click Budget button Display budget }

distributors () { Click Distributors details button Display distributors details }

rawMaterials () { Click Raw materials costs button Display Raw materials costs }