1 / 3

LAB SESSION 3

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 :

cruz
Download Presentation

LAB SESSION 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. LAB SESSION 3 Enumeration and character string

  2. 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

  3. 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

More Related