30 likes | 176 Views
LAB SESSION 3. Enumeration and character string . Question 1(Enumeration). By Using Enum , write a program to process a product details for Ant Sdn . Bhd. The company have produce 5 items that manufactured by 4 branches. Detail of the data as given: Your task :
E N D
LAB SESSION 3 Enumeration and character string
Question 1(Enumeration) By Using Enum, write a program to process a product details for Ant Sdn. Bhd. The company have produce 5 items that manufactured by 4 branches. Detail of the data as given: Your task : Input a value into an array Find and display the largest value for Johor Find and display a total value for an entire array Find and display the sum value for Item 4 C++ Programming: From Problem Analysis to Program Design, Fourth Edition
Question 2(Character String) Write a program that will: Declare an array called bookTitle that store 10 books in two dimensional array b) Input a data into an array c) Display the longest book title d) Find the book title named “C++ Programming”.(If it is found, display the row number, but if the book is not found, display the message “Book Is Not Found” e) Display the book title in an Alphabetical Order