1.Write a c++ program that identifies the shortest and longest word stored in an array of maximum size 100. It should then display the words together with their respective lengths and location in the array. The program should also display the average word length in the array. If there are multiple shortest and longest word, the first ones are selected. 2.Write a C++program that records information of cars in an array. Each car details include its model, year registered and plate number. The program should allow the user to perform the following tasks : a) Add car details into the array. If the array is full, the program should notify the user. b) Remove any car details from the array by searching a specific car. c) List down number of cars registered each year, provide that the registered year existed in the array.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section7.1: One-dimensional Arrays
Problem 10E: (Electrical eng.) Write a program that specifies three one-dimensional arrays named current,...
icon
Related questions
Question
1.Write a c++ program that identifies the shortest and longest word stored in an array of maximum size 100. It should then display the words together with their respective lengths and location in the array. The program should also display the average word length in the array. If there are multiple shortest and longest word, the first ones are selected.
2.Write a C++program that records information of cars in an array. Each car details include its model, year registered and plate number. The program should allow the user to perform the following tasks
: a) Add car details into the array. If the array is full, the program should notify the user.
b) Remove any car details from the array by searching a specific car.
c) List down number of cars registered each year, provide that the registered year existed in the array.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Program on Numbers
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning