Please Help. Code in c++ Objectives: The software testing process (i.e., the BBT) consumes large amounts of data. Creati

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Please Help. Code in c++ Objectives: The software testing process (i.e., the BBT) consumes large amounts of data. Creati

Post by answerhappygod »

Please Help. Code in c++
Objectives: The software testing process (i.e., the BBT)consumes large amounts of data.
Creating the test data is a crucial part of the testing processespecially for new systems which
are not in use yet. This assignment will give you an opportunityto practice creating
representative test data.
After completing this assignment, students will be ableto:· Create random data from a given set of parameters· Create a large number of test cases to test allpossibilities· Write a C++ program to process the data as though it werecollected from a real situation.This assignment will be submitted into two parts (Part-A andPart-B) – a separate Code::Blocks project isrequired for each part.Problem Description:
PART AYou are part of a team working on a price prediction software forhouses on the real-estate
market. Your team is working on the prototype version but hasnot been able to secure data to
test the software’s main functionality in the initial stages.Thus, you have been tasked with
generating 500 random house listings to test for major bugs.
Each randomly generated house will have the followingattributes:· 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. For detached houses,assign pools with 50%probability· Stories: The ranges depend on the house type- Condos and detached houses (1-2 with equal probability) - Apartments (1-3 with equal probability for eachvalue)· Number of bathrooms: The ranges depend on the house type:· Condos and apartments (1-2 with equal probability)· Detached houses (2-4 with equal probability)
· View: Possible values are “sea”, “lake”, “neighborhood”, and“forest”, all with equalprobability for all house types/
You must create a “Property” struct that contains the aboveattributes. All generated propertylistings must be inserted in an array of type “Property” and savedto a file with name“listings.txt”.
PART BCreate a new project in Code Blocks. After generating the listingsfor houses on the market, you
are tasked with creating a program to count the number oflistings matching a user specified
parameter. The program should read “listings.txt” and populate a“Property” array in a manner
similar to Part A. The program should prompt a user to selectwhich parameter to search
including house type, number of bathrooms, existence or absenceof a pool, and number of
stories. The user will be searching only with one of thoseparameters. You are not required to
include functionality for a user to combine parameters (condoswith 2 stories and 2 bathrooms).
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply