Question: using (c++) , porgram Q1) Define 1 Dimension array names [6] of type string Fill the array As below, And keep the last name empty
Q1) Define 1 Dimension array names [6] of type string Fill the array As below, And keep the last name empty as below: 0 1 2 3 4 5 Ahmad Hadi khalid Jawad Ala'a yazeed The Program will allow the user to Insert a specific name inside the array as below: Enter Name : Saleh Enter location: 2 The name Saleh will be inserted in location number 2, And other names will be shifted to right marks) 0 1 2 3 4 5 6 Ahmad Hadi Saleh khalid Jawad Ala'a yazeed [3.5 Note: If the array is full, The following message will be displayed to the user "Array is full" [ 1.5 marks) Sample Run 1 Enter Name : Saleh Enter location : 2 Array after inserting is: Ahmad, Hadi , Saleh, khalid, Jawad , Ala'a , _yazeed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
