Question

In: Computer Science

Question A Let’s think about the use of Lists in everyday life. Provide an example and...

Question A

Let’s think about the use of Lists in everyday life. Provide an example and discuss the advantages and disadvantages of using these types of Lists.

Question B

Considering the lessons on menu logic and the use of arrays and loops, how does this change your programming capabilities? What kind of programs can you now create utilizing these powerful programming tools? Describe an example program that, before this week, was not possible or infeasible for you to program.

Solutions

Expert Solution

Question A

   The list is the data structure which can store a large amount of data.
   The can be used in everyday life, to keep a record of the things which we see in daily life.

   Example -
       1.   List of all the incoming calls from unknown contact helps us to filter them or block the spam ones.
       2.   List can be used to make a to-do list for daily routine.
       3.   List can be used to keep a record of the grocery items list that before visiting the market.

   Advantages of the list -
       1.   The list can have any type of value.
       2.   List can store any numbers of values.
       3.   A various operation can be performed on list such as - insertion, deletion, sorting etc.

   Disadvantages of the list -
       1.   The list values are mutable i.e can be changed.

Question B

   A menu logic together with array and loops can add more advantage to the program.
   It can provide a menu to the user and later ask for the input, according to the input it can do various tasks.

   It helps us to build a more advanced application such as -
       1.   Menu-based record-keeping system for students
       2.   Quiz Portal
       3.   Arithmetic calculator

   Let us take a tour to a menu based program for lists operation

  
       Menu
           1.   Insert
           2.   Delete
           3.   Print
           4.   Sort

       Enter Choice: 1

       Enter a value to insert: 'A'
       Successfully inserted into the list.
  


Related Solutions

6) Provide an example of counting in your everyday life. Think of an example where you...
6) Provide an example of counting in your everyday life. Think of an example where you could use a counting method and describe the method.
PLEASE TYPE!! Think about where you have noticed circles in your everyday life and find at...
PLEASE TYPE!! Think about where you have noticed circles in your everyday life and find at least 2 examples of circles in your everyday life. For each example, include the following in your post. Be sure to include enough details in your descriptions and explanations so someone who is not familiar with your everyday life will understand them. Describe the circle's use and its measurement (radius or diameter, either an exact value or an approximation is fine). If important, describe...
Let’s think about a company that produces dinner ware (plates, bowls, cups and saucers, for example)....
Let’s think about a company that produces dinner ware (plates, bowls, cups and saucers, for example). Some of the dinner ware is intended for daily use (stoneware that is dishwasher and microwave safe), and other dinner ware is for special occasion (fine china or bone china, with gold trim that cannot go in the microwave!) Daily use dinnerware is less expensive than special occasion dinnerware. Imagine that there is consistent demand year-round for the “daily use” dinnerware, but there are...
Post a one paragraph summary about how objects you use in everyday life use some kind...
Post a one paragraph summary about how objects you use in everyday life use some kind of modulation. Please DO NOT copy from the internet...the answer to my last question was copied And please typed answer, not hand-written.
Think like an Original and/or traveler for a day in your everyday life and pretend that...
Think like an Original and/or traveler for a day in your everyday life and pretend that you are Seth Godin preparing your own "This is Broken" speech. Pick one of his categories, and describe one or two things that might seem out of place, ought to be done differently, or begs the question "why?" that might be the trigger for a startup opportunity. Include a picture if you have one.
Question 3: Let’s think about the road on Laurel Avenue between Howell and Dewey Streets. There...
Question 3: Let’s think about the road on Laurel Avenue between Howell and Dewey Streets. There are no parking restrictions on this particular section of Laurel Avenue. (a) Is the good “street parking” on this particular block an excludable or non-excludable good? Briefly explain. (b) Is the good “street parking” on this particular block a rival or non-rival good? Briefly explain. (c) Using your answers above, what “type of good” is “street parking” on this particular block? (Private good, public...
What is a good example of probability in everyday life? Summarize the situation and how probability...
What is a good example of probability in everyday life? Summarize the situation and how probability is relevant. Please be detailed in the response.
Think of scenario in which probability can be used in everyday life ( weather forecasts, car...
Think of scenario in which probability can be used in everyday life ( weather forecasts, car insurance). Describe the how statistics of the probability could be used and what some outcomes of the probability . Site source.
What are ways we use acting in real life? Provide a personal example.
What are ways we use acting in real life? Provide a personal example.
Give an example of stereotyping that you see in everyday life. Explain what would need to...
Give an example of stereotyping that you see in everyday life. Explain what would need to happen for this to be eliminated.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT