IF YOU ARE GOING TO ANSWER THIS, READ IT THOROUGHLY PLEASE. DONOT COPY AND PASTE. THANKS IN ADVANCE!
Objectives: The software testing process (i.e., the BBT)consumes large amounts of data. Creating the test data is a crucialpart of the testing process especially for new systems which arenot in use yet. This assignment will give you an opportunity topractice creating representative test data. After completing thisassignment, students will be able to: • Create random data from agiven set of parameters • Create a large number of test cases totest all possibilities • Write a C++ program to process the data asthough it were collected from a real situation. This assignmentwill be submitted into two parts (Part-A and Part-B) – a separateCode::Blocks project is required for each part. ProblemDescription: PART A You are part of a team working on a priceprediction software for houses on the real-estate market. Your teamis working on the prototype version but has not been able to securedata to test the software’s main functionality in the initialstages. Thus, you have been tasked with generating 500 random houselistings to test for major bugs. Each randomly generated house willhave the following attributes: • Type: condo, apartment, detached •Square footage. The range of this attribute depends on the housetype: - condo (1000-1300) - apartment (800-1100) - detached(1400-2400) • Pool: condos and apartments have no pool. Fordetached houses, assign pools with 50% probability • Stories: Theranges depend on the house type - Condos and detached houses (1-2with equal probability) - Apartments (1-3 with equal probabilityfor each value) • Number of bathrooms: The ranges depend on thehouse type: • Condos and apartments (1-2 with equal probability) •Detached houses (2-4 with equal probability) • View: Possiblevalues are “sea”, “lake”, “neighborhood”, and “forest”, all withequal probability for all house types/ You must create a “Property”struct that contains the above attributes. All generated propertylistings must be inserted in an array of type “Property” and savedto a file with name “listings.txt”. PART B Create a new project inCode Blocks. After generating the listings for houses on themarket, you are tasked with creating a program to count the numberof listings matching a user specified parameter. The program shouldread “listings.txt” and populate a “Property” array in a mannersimilar to Part A. The program should prompt a user to select whichparameter to search including house type, number of bathrooms,existence or absence of a pool, and number of stories. The userwill be searching only with one of those parameters. You are notrequired to include functionality for a user to combine parameters(condos with 2 stories and 2 bathrooms).
IF YOU ARE GOING TO ANSWER THIS, READ IT THOROUGHLY PLEASE. DO NOT COPY AND PASTE. THANKS IN ADVANCE! Objectives: The so
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am