Master Computers and Technology with Fun Quizzes & Brain Teasers!

Step1: This file contains just a program shell in which you will write all the programming statements needed to complete the program described below. Here is a sample of the current contents of areas.cpp 1 // Assignment 5 is to compute the area (s) WRITE A COMMENT BRIEFLY DESCRIBING THE PROGRAM PUT YOUR NAME HERE. 2 3 4 // INCLUDE ANY NEEDED HEADER FILES HERE 5 using namespace std;l 7 int main) 9// DEFINE THE NAMED CONSTANT PI HERE AND SET ITS VALUE TO 3.14159 10 11 // DECLARE ALL NEEDED VARIABLES HERE. GIVE EACH ONE A DESCRIPTIVE 12// NAME AND AN APPROPRIATE DATA TYPE 13 14// WRITE STATEMENTS HERE TO DISPLAY THE 4 MENU CHOICES 15 16// WRITE A STATEMENT HERE TO INPUT THE USERS MENU CHOICE 17 18// WRITE STATEMENTS TO OBTAIN ANY NEEDED INPUT INFORMATION 19// AND COMPUTE AND DISPLAY THE AREA FOR EACH VALID MENU CHOICE 20 / IF AN INVALID MENU CHOICE WAS ENTERED, AN ERROR MESSAGE SHOULD 21 /BE DISPLAYED 23 return 0 24 ) Step 2: Design and implement the areas.cpp program so that it correctly meets the program specifications given below Specifications: Sample Run Program to calculate areas of objects Create a menu-driven program that finds and displays areas of 3 different objects. The menu should have the following 4 choices 1 -- square 2 circle 3 - right triangle 4 - quit 1square 2 -- circle 3 -- right triangle 4quit Radius of the circle: 3.0 Area 28.2743 . If the user selects choice 1, the program should find the area of a square . If the user selects choice 2, the program should . If the user selects choice 3, the program should . If the user selects choice 4, the program should . If the user selects anything else (i.e., an invalid find the area of a circle find the area of a right triangle quit without doing anything choice) an appropriate error message should be printed
Problem You Need to Solve for This Lab:You are asked to write an app to keep track of a relatively small music library. The app should load song information from a data file once the app is started. It should allow user to view, add, remove, and search for songs. The app should save the data back to the same data file when the program exits.What Your Program Should Do:Write an interactive text based menu interface (using a loop) that will allow the user to Enter information for a new song Display information for all the songs in the database with index for each song Remove a song by index Search for songs by a certain artist Search for songs by a certain album QuitFor each song, you need to keep track of:titleartistdurationalbumAllow the program to keep looping until user wants to quit. When the program starts, it should load the tasks from external file ("songs.txt") into memory. When user enters information about the new song, the program needs to read them in, save them in memory and eventually write them to the external data file ("songs.txt"). The file format could look like:Stereo Hearts;Gym Class Heroes;3;34;The Papercut Chronicles IICounting Stars;OneRepulic;4;17;NativeThe ';' is used as a delimiter or field separator. Each record ends with a new line character.Some Implementation Requirements:Write at least four functions WITH arguments for this assignment.Use struct named Song to model each songUse array of structs to model the collection of songs.Hint: In this assignment, some data fields may have multiple words in it. Therefore,you now SHOULD read using the 3 argument version of get.Watch out. When using the 3 argument version of get you need to make sure toremove the delimiter or newline. Therefore, anytime you read (even a confirmationmessage), make sure to eat the newline using cin.ignore(...)!Make sure to have a delimiter written between each item in the file like a newline.This will be important when you read the information back from the file.For submission, your data file should contain a sufficient set of test data. It should have test cases for same artist with multiple songs and same album with multiple songs in it.Do-Not List:No Global Variables (you can have global constants)Do not use Classes or Linked ListsYou must use cstring and char arrays. (do not use )No use of the stdio library (use iostream and fstream)Instead of the string class, you will be using arrays of characters and the cstring libraryNo STL containers such as vector. You must implement your own array for this class.