SlideShare ist ein Scribd-Unternehmen logo
1 von 2
Downloaden Sie, um offline zu lesen
URGENT: This will need to be in C++ please help me I had to retake this class and dont want to
do all this from scratch
Given file:
Cottage Cabin Shack Mansion Apartment House Castle Hut Hobbit Hole Cave Palace Dungeon
Loft Townhouse Treehouse
Name vour source file username_progz,epp and z it in a folder and upload it to Program 2 in
Assignmentz in ilearn. (Replace with your TNTCCII username). Cxample: mine is named
acrockett_prog2.cp. DESCRIPTION You want to create a program that can prediet a user's future.
All the user must do is answer a feuv questions and pour program generates the following
Infonmation aloout the user: - Who they will marry - Haw many childran they will have - Their jubu
tille - Thcir business or organization - Their salary - The car they drive - What kind of dwelling they
will live in - Their clty and state they will live In CONCEPTS - menu bascd programs - use switch
statemants - validaling user inpul with luops - allowing a program to run multiple times until user
wants to quit - crganizing code in functions ting input from files1 Three integer numbers hetwren 1
and 100 2 Ihree job titles (2 they like & one they don't like] 3 Three companies, restaurants, or
organizations (2 they like & one they dorit like) 4 Three integer numbers betwren 10000 and
500000 RANDOM NUMEERS - Greate a furction that will generate a random number within a
given range. The function will accept two integers to represent the low & high range and will return
the randon number. This function definition sheuld be bolow the maln function. - Call this function
whenever you are determining which of the three options to print for the user in output (generate
hehwoen 1&3 indusively). - Call this furction right before the for loaps ta determine iteratioris of the
for laops when reating fram the file (generate betwoen 1815 inclusiuclyj. TEXT FILES You are
going to be reading some data from text fles. One text file with 15 types of dvellings
(DWEULNGS.Lxt) is previded fot you (sen ser ener capture below). I uploveded two versioris of
this file. Use the one desiened for your computer. If you have a Mac, use DWELLIRGS_Mac.tat
and if you have a Windows PG, use DWELLINGS_PC.tat.One text fill with 15 types of dwellings
(UWveulNGs,txt) is prowided for you (see screen capture bolow), I uplosded two versions of this
file. Use the one designed for your computer. If you have a Mac, use DWFIL IRGS_Mac-tet and if
you have a Windows PC, use DwVLlINGS Pitit. You must create three text [tut] files (not provided
for you) that have 15 lines of data in them: CAR5.bxt, LOCATIONS.txt, and PEOPLE.txt. These
text files must be included with your subrnission. For each of the four pirces of information you are
getting from the feur different text files, you will create a for loop that will iterate. the same nurnber
of times as the rarudorn rumber generated. Insibe this for koop, you will have a getline staternent
that will read from the text file into the appropriate variable. You will have to open the specific file
before the for loop, and dose it after the far Incap. For example, If the random number generated
betwoon 1 and 15 was 7 , then the resulting output for "dwelling" should be Castle.- Your main
function should call a function called displayMenuGetchoice(). This function docsn't have any
paramcters but will return an integer indicating the user's thoire (1 ar 2). This function will ask the
usar to either 1) Predict my futurel 2) End the propram. 0 Read in the user's cholce. - Validate the
user's choice with a while loop - Feturn the user's choice back to the rruin function. Remember to
place the progammer defined function BELDW the main function! - You mast have a switch
statement to figure nut which chaice the user selrcter. - The program should run over and over
until the user selects to end the program using a do-while loop. - You MuST validate user input
with while loopa If the input is a number to ensure the number is in the spocified range, You may
assume the user will enter in a number (not a character or stringl, but you can't assume they
menter a number within the speclfled range. Refer to samplo output of how user input valiclation
should behave, Be specific to the user to lindicate which number was inalid. - You MUST allow
spaces to be included in all string input. OUTPUT - The uset's spesuse [dala cormes fromi file
arnd is picked via a randomin nurnuer] - The user's type of house / dwelling (date comes from file
and is picked via a random number) - The location where the user will live (data comes from file
and is picked via a random number) - Ihe car the user will drive (data comes from file and is oicked
via a random numberl- The user's spouse [dats comes from file and is picked via a random
number] - Tha user's type of house / dwelling (data comes from files and is pirked via a random
number] - The location where the user will live (diata comes from file arid is picked via a random
nurnter) - The car the user will drive (date comes from file and is picked via a random number) -
The number of children the user will have (based on input from user & random number generated
between 1 & I) - Where the user will work, their job title, and their salary (based on input from user
& random number generated between 1 &B) SAMPLE OUTPUT User input is highlighted in
yellow. Dicic frcm the fallawing menu: 2. End program. choose 1 ur 2: 6 Invalit chcice. CHUOSE 1
er 2: 1 You chose to predict your future! iirst, I need just a little intornation. Enter =hree numbers
between 1 and 100 , separazed by a space.5pring 2023 C5C 1300 PRCGRAM 2dcox (Protected
View) - Word (Unlicersed Product)85822 Entar in an awescme job title: Dance Instructor Enter in
another awesome fob title: Artiat Fit.er in the worst joh tit.1e ever: Finglish Teacher Entar a
company, organization, or restaurant you like: Cane cresk rec Center Enter anozher company,
orqanization, or restaurant you like: Tennesaee Tech Univeraizv Enter a coupany, organization, or
restaurant you haze: NoDonalds Eiter chree numbers between 10,000 and 500,000 , separa:ed by
a space. 8.538439399913933 Ycu and yaur spause, Adele wil1 live in a House in 13 Rue Rarnel,
62100 Calais, France and drive a Marocm 2010 Nisson Cube. You and your spouss will have 22
childron. You will work az McDonalds as a Dnglish Teacher making 3399 a year. Pier frem ths
following menu: 1. Le="s pluy 4 LHS! 2. End pregram. CHOOE 1 or 2:2 You chose to end the
prodram. Hye!5pring 2023 C5C 1300 PRCGRAM 2dcox (Protected View) - Word (Unlicersed
Product)

Weitere ähnliche Inhalte

Ähnlich wie URGENT This will need to be in C++ please help me I had to .pdf

C standard library functions
C standard library functionsC standard library functions
C standard library functionsVaishnavee Sharma
 
Lewis jssap3 e_labman02
Lewis jssap3 e_labman02Lewis jssap3 e_labman02
Lewis jssap3 e_labman02auswhit
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxAASTHA76
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As CompDavid Halliday
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As CompDavid Halliday
 
Hasktut
HasktutHasktut
Hasktutkv33
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning materialArthyR3
 
Buffer overflow tutorial
Buffer overflow tutorialBuffer overflow tutorial
Buffer overflow tutorialhughpearse
 
Getting Started with Ansible - Jake.pdf
Getting Started with Ansible - Jake.pdfGetting Started with Ansible - Jake.pdf
Getting Started with Ansible - Jake.pdfssuserd254491
 
Information gathering using windows command line utility
Information gathering using windows command line utilityInformation gathering using windows command line utility
Information gathering using windows command line utilityVishal Kumar
 
A Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEA Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEDaniel Wachtel
 
Get into Functional Programming with Clojure
Get into Functional Programming with ClojureGet into Functional Programming with Clojure
Get into Functional Programming with ClojureJohn Stevenson
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packagesAjay Ohri
 
Lab7: More Arrays, Strings, Vectors, and Pointers
Lab7: More Arrays, Strings, Vectors, and PointersLab7: More Arrays, Strings, Vectors, and Pointers
Lab7: More Arrays, Strings, Vectors, and Pointersenidcruz
 
JavaScript: Core Part
JavaScript: Core PartJavaScript: Core Part
JavaScript: Core Part維佋 唐
 

Ähnlich wie URGENT This will need to be in C++ please help me I had to .pdf (20)

C standard library functions
C standard library functionsC standard library functions
C standard library functions
 
Lewis jssap3 e_labman02
Lewis jssap3 e_labman02Lewis jssap3 e_labman02
Lewis jssap3 e_labman02
 
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docxBTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
BTE 320-498 Summer 2017 Take Home Exam (200 poi.docx
 
Maxbox starter
Maxbox starterMaxbox starter
Maxbox starter
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As Comp
 
Programming For As Comp
Programming For As CompProgramming For As Comp
Programming For As Comp
 
Hasktut
HasktutHasktut
Hasktut
 
Java conceptual learning material
Java conceptual learning materialJava conceptual learning material
Java conceptual learning material
 
Buffer overflow tutorial
Buffer overflow tutorialBuffer overflow tutorial
Buffer overflow tutorial
 
Input output
Input outputInput output
Input output
 
Assignment 2
Assignment 2Assignment 2
Assignment 2
 
Getting Started with Ansible - Jake.pdf
Getting Started with Ansible - Jake.pdfGetting Started with Ansible - Jake.pdf
Getting Started with Ansible - Jake.pdf
 
Information gathering using windows command line utility
Information gathering using windows command line utilityInformation gathering using windows command line utility
Information gathering using windows command line utility
 
A Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKEA Project Based Lab Report On AMUZING JOKE
A Project Based Lab Report On AMUZING JOKE
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
 
Get into Functional Programming with Clojure
Get into Functional Programming with ClojureGet into Functional Programming with Clojure
Get into Functional Programming with Clojure
 
r,rstats,r language,r packages
r,rstats,r language,r packagesr,rstats,r language,r packages
r,rstats,r language,r packages
 
C programming
C programmingC programming
C programming
 
Lab7: More Arrays, Strings, Vectors, and Pointers
Lab7: More Arrays, Strings, Vectors, and PointersLab7: More Arrays, Strings, Vectors, and Pointers
Lab7: More Arrays, Strings, Vectors, and Pointers
 
JavaScript: Core Part
JavaScript: Core PartJavaScript: Core Part
JavaScript: Core Part
 

Mehr von adityacommunications2

US Civilian Labor Force Participation Rate Civlian Unemplo.pdf
US Civilian Labor Force Participation Rate Civlian Unemplo.pdfUS Civilian Labor Force Participation Rate Civlian Unemplo.pdf
US Civilian Labor Force Participation Rate Civlian Unemplo.pdfadityacommunications2
 
US set to lift covid19 testing requirements for travelers f.pdf
US set to lift covid19 testing requirements for travelers f.pdfUS set to lift covid19 testing requirements for travelers f.pdf
US set to lift covid19 testing requirements for travelers f.pdfadityacommunications2
 
URINARY SYSTEMI Nephron COLORING EXERCISE part it Draw a.pdf
URINARY SYSTEMI Nephron COLORING EXERCISE part it  Draw a.pdfURINARY SYSTEMI Nephron COLORING EXERCISE part it  Draw a.pdf
URINARY SYSTEMI Nephron COLORING EXERCISE part it Draw a.pdfadityacommunications2
 
US Civilian Labor Force Participation Rate Cilitian Unempl.pdf
US Civilian Labor Force Participation Rate Cilitian Unempl.pdfUS Civilian Labor Force Participation Rate Cilitian Unempl.pdf
US Civilian Labor Force Participation Rate Cilitian Unempl.pdfadityacommunications2
 
US Civilian Labor Force Participation Rate Cillian Unemplo.pdf
US Civilian Labor Force Participation Rate Cillian Unemplo.pdfUS Civilian Labor Force Participation Rate Cillian Unemplo.pdf
US Civilian Labor Force Participation Rate Cillian Unemplo.pdfadityacommunications2
 
Urgent Draw the EER diagram for the Hiking Database given .pdf
Urgent  Draw the EER diagram for the Hiking Database given .pdfUrgent  Draw the EER diagram for the Hiking Database given .pdf
Urgent Draw the EER diagram for the Hiking Database given .pdfadityacommunications2
 
Upan denetic analysis ot the canceromis tissue a mutated fo.pdf
Upan denetic analysis ot the canceromis tissue a mutated fo.pdfUpan denetic analysis ot the canceromis tissue a mutated fo.pdf
Upan denetic analysis ot the canceromis tissue a mutated fo.pdfadityacommunications2
 
UPS prides itself on having uptodate information on the pr.pdf
UPS prides itself on having uptodate information on the pr.pdfUPS prides itself on having uptodate information on the pr.pdf
UPS prides itself on having uptodate information on the pr.pdfadityacommunications2
 
Update include ltiostreamgt include ltfstreamgt .pdf
Update  include ltiostreamgt include ltfstreamgt .pdfUpdate  include ltiostreamgt include ltfstreamgt .pdf
Update include ltiostreamgt include ltfstreamgt .pdfadityacommunications2
 
Underground Sandwiches a sandwich shop has the following m.pdf
Underground Sandwiches a sandwich shop has the following m.pdfUnderground Sandwiches a sandwich shop has the following m.pdf
Underground Sandwiches a sandwich shop has the following m.pdfadityacommunications2
 
Update the Assignment 3 code to follow the guidelines below .pdf
Update the Assignment 3 code to follow the guidelines below .pdfUpdate the Assignment 3 code to follow the guidelines below .pdf
Update the Assignment 3 code to follow the guidelines below .pdfadityacommunications2
 
Understand processivity and fidelity Indicate if a given enz.pdf
Understand processivity and fidelity Indicate if a given enz.pdfUnderstand processivity and fidelity Indicate if a given enz.pdf
Understand processivity and fidelity Indicate if a given enz.pdfadityacommunications2
 
Unlike the theory of international trade or the theory of in.pdf
Unlike the theory of international trade or the theory of in.pdfUnlike the theory of international trade or the theory of in.pdf
Unlike the theory of international trade or the theory of in.pdfadityacommunications2
 
Unemployment which is when persons in an economy have lost.pdf
Unemployment  which is when persons in an economy have lost.pdfUnemployment  which is when persons in an economy have lost.pdf
Unemployment which is when persons in an economy have lost.pdfadityacommunications2
 
Unknown case study2 Your patient is a 26 yo male who presen.pdf
Unknown case study2 Your patient is a 26 yo male who presen.pdfUnknown case study2 Your patient is a 26 yo male who presen.pdf
Unknown case study2 Your patient is a 26 yo male who presen.pdfadityacommunications2
 
Una moneda justa se lanza seis veces Cul es la probabilid.pdf
Una moneda justa se lanza seis veces Cul es la probabilid.pdfUna moneda justa se lanza seis veces Cul es la probabilid.pdf
Una moneda justa se lanza seis veces Cul es la probabilid.pdfadityacommunications2
 
Una persona con diabetes T2 debe tratar de controlar los car.pdf
Una persona con diabetes T2 debe tratar de controlar los car.pdfUna persona con diabetes T2 debe tratar de controlar los car.pdf
Una persona con diabetes T2 debe tratar de controlar los car.pdfadityacommunications2
 
Una forma principal en la que los genes tienen un efecto sob.pdf
Una forma principal en la que los genes tienen un efecto sob.pdfUna forma principal en la que los genes tienen un efecto sob.pdf
Una forma principal en la que los genes tienen un efecto sob.pdfadityacommunications2
 
Una fuerte correlacin entre A y B implicara que B es causa.pdf
Una fuerte correlacin entre A y B implicara que B es causa.pdfUna fuerte correlacin entre A y B implicara que B es causa.pdf
Una fuerte correlacin entre A y B implicara que B es causa.pdfadityacommunications2
 
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdf
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdfUnit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdf
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdfadityacommunications2
 

Mehr von adityacommunications2 (20)

US Civilian Labor Force Participation Rate Civlian Unemplo.pdf
US Civilian Labor Force Participation Rate Civlian Unemplo.pdfUS Civilian Labor Force Participation Rate Civlian Unemplo.pdf
US Civilian Labor Force Participation Rate Civlian Unemplo.pdf
 
US set to lift covid19 testing requirements for travelers f.pdf
US set to lift covid19 testing requirements for travelers f.pdfUS set to lift covid19 testing requirements for travelers f.pdf
US set to lift covid19 testing requirements for travelers f.pdf
 
URINARY SYSTEMI Nephron COLORING EXERCISE part it Draw a.pdf
URINARY SYSTEMI Nephron COLORING EXERCISE part it  Draw a.pdfURINARY SYSTEMI Nephron COLORING EXERCISE part it  Draw a.pdf
URINARY SYSTEMI Nephron COLORING EXERCISE part it Draw a.pdf
 
US Civilian Labor Force Participation Rate Cilitian Unempl.pdf
US Civilian Labor Force Participation Rate Cilitian Unempl.pdfUS Civilian Labor Force Participation Rate Cilitian Unempl.pdf
US Civilian Labor Force Participation Rate Cilitian Unempl.pdf
 
US Civilian Labor Force Participation Rate Cillian Unemplo.pdf
US Civilian Labor Force Participation Rate Cillian Unemplo.pdfUS Civilian Labor Force Participation Rate Cillian Unemplo.pdf
US Civilian Labor Force Participation Rate Cillian Unemplo.pdf
 
Urgent Draw the EER diagram for the Hiking Database given .pdf
Urgent  Draw the EER diagram for the Hiking Database given .pdfUrgent  Draw the EER diagram for the Hiking Database given .pdf
Urgent Draw the EER diagram for the Hiking Database given .pdf
 
Upan denetic analysis ot the canceromis tissue a mutated fo.pdf
Upan denetic analysis ot the canceromis tissue a mutated fo.pdfUpan denetic analysis ot the canceromis tissue a mutated fo.pdf
Upan denetic analysis ot the canceromis tissue a mutated fo.pdf
 
UPS prides itself on having uptodate information on the pr.pdf
UPS prides itself on having uptodate information on the pr.pdfUPS prides itself on having uptodate information on the pr.pdf
UPS prides itself on having uptodate information on the pr.pdf
 
Update include ltiostreamgt include ltfstreamgt .pdf
Update  include ltiostreamgt include ltfstreamgt .pdfUpdate  include ltiostreamgt include ltfstreamgt .pdf
Update include ltiostreamgt include ltfstreamgt .pdf
 
Underground Sandwiches a sandwich shop has the following m.pdf
Underground Sandwiches a sandwich shop has the following m.pdfUnderground Sandwiches a sandwich shop has the following m.pdf
Underground Sandwiches a sandwich shop has the following m.pdf
 
Update the Assignment 3 code to follow the guidelines below .pdf
Update the Assignment 3 code to follow the guidelines below .pdfUpdate the Assignment 3 code to follow the guidelines below .pdf
Update the Assignment 3 code to follow the guidelines below .pdf
 
Understand processivity and fidelity Indicate if a given enz.pdf
Understand processivity and fidelity Indicate if a given enz.pdfUnderstand processivity and fidelity Indicate if a given enz.pdf
Understand processivity and fidelity Indicate if a given enz.pdf
 
Unlike the theory of international trade or the theory of in.pdf
Unlike the theory of international trade or the theory of in.pdfUnlike the theory of international trade or the theory of in.pdf
Unlike the theory of international trade or the theory of in.pdf
 
Unemployment which is when persons in an economy have lost.pdf
Unemployment  which is when persons in an economy have lost.pdfUnemployment  which is when persons in an economy have lost.pdf
Unemployment which is when persons in an economy have lost.pdf
 
Unknown case study2 Your patient is a 26 yo male who presen.pdf
Unknown case study2 Your patient is a 26 yo male who presen.pdfUnknown case study2 Your patient is a 26 yo male who presen.pdf
Unknown case study2 Your patient is a 26 yo male who presen.pdf
 
Una moneda justa se lanza seis veces Cul es la probabilid.pdf
Una moneda justa se lanza seis veces Cul es la probabilid.pdfUna moneda justa se lanza seis veces Cul es la probabilid.pdf
Una moneda justa se lanza seis veces Cul es la probabilid.pdf
 
Una persona con diabetes T2 debe tratar de controlar los car.pdf
Una persona con diabetes T2 debe tratar de controlar los car.pdfUna persona con diabetes T2 debe tratar de controlar los car.pdf
Una persona con diabetes T2 debe tratar de controlar los car.pdf
 
Una forma principal en la que los genes tienen un efecto sob.pdf
Una forma principal en la que los genes tienen un efecto sob.pdfUna forma principal en la que los genes tienen un efecto sob.pdf
Una forma principal en la que los genes tienen un efecto sob.pdf
 
Una fuerte correlacin entre A y B implicara que B es causa.pdf
Una fuerte correlacin entre A y B implicara que B es causa.pdfUna fuerte correlacin entre A y B implicara que B es causa.pdf
Una fuerte correlacin entre A y B implicara que B es causa.pdf
 
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdf
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdfUnit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdf
Unit 11 Forum 6 6 unread replies 6 6 replies Find a video .pdf
 

Kürzlich hochgeladen

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...anjaliyadav012327
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...Sapna Thakur
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 

Kürzlich hochgeladen (20)

Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
JAPAN: ORGANISATION OF PMDA, PHARMACEUTICAL LAWS & REGULATIONS, TYPES OF REGI...
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 

URGENT This will need to be in C++ please help me I had to .pdf

  • 1. URGENT: This will need to be in C++ please help me I had to retake this class and dont want to do all this from scratch Given file: Cottage Cabin Shack Mansion Apartment House Castle Hut Hobbit Hole Cave Palace Dungeon Loft Townhouse Treehouse Name vour source file username_progz,epp and z it in a folder and upload it to Program 2 in Assignmentz in ilearn. (Replace with your TNTCCII username). Cxample: mine is named acrockett_prog2.cp. DESCRIPTION You want to create a program that can prediet a user's future. All the user must do is answer a feuv questions and pour program generates the following Infonmation aloout the user: - Who they will marry - Haw many childran they will have - Their jubu tille - Thcir business or organization - Their salary - The car they drive - What kind of dwelling they will live in - Their clty and state they will live In CONCEPTS - menu bascd programs - use switch statemants - validaling user inpul with luops - allowing a program to run multiple times until user wants to quit - crganizing code in functions ting input from files1 Three integer numbers hetwren 1 and 100 2 Ihree job titles (2 they like & one they don't like] 3 Three companies, restaurants, or organizations (2 they like & one they dorit like) 4 Three integer numbers betwren 10000 and 500000 RANDOM NUMEERS - Greate a furction that will generate a random number within a given range. The function will accept two integers to represent the low & high range and will return the randon number. This function definition sheuld be bolow the maln function. - Call this function whenever you are determining which of the three options to print for the user in output (generate hehwoen 1&3 indusively). - Call this furction right before the for loaps ta determine iteratioris of the for laops when reating fram the file (generate betwoen 1815 inclusiuclyj. TEXT FILES You are going to be reading some data from text fles. One text file with 15 types of dvellings (DWEULNGS.Lxt) is previded fot you (sen ser ener capture below). I uploveded two versioris of this file. Use the one desiened for your computer. If you have a Mac, use DWELLIRGS_Mac.tat and if you have a Windows PG, use DWELLINGS_PC.tat.One text fill with 15 types of dwellings (UWveulNGs,txt) is prowided for you (see screen capture bolow), I uplosded two versions of this file. Use the one designed for your computer. If you have a Mac, use DWFIL IRGS_Mac-tet and if you have a Windows PC, use DwVLlINGS Pitit. You must create three text [tut] files (not provided for you) that have 15 lines of data in them: CAR5.bxt, LOCATIONS.txt, and PEOPLE.txt. These text files must be included with your subrnission. For each of the four pirces of information you are getting from the feur different text files, you will create a for loop that will iterate. the same nurnber of times as the rarudorn rumber generated. Insibe this for koop, you will have a getline staternent that will read from the text file into the appropriate variable. You will have to open the specific file before the for loop, and dose it after the far Incap. For example, If the random number generated betwoon 1 and 15 was 7 , then the resulting output for "dwelling" should be Castle.- Your main function should call a function called displayMenuGetchoice(). This function docsn't have any paramcters but will return an integer indicating the user's thoire (1 ar 2). This function will ask the usar to either 1) Predict my futurel 2) End the propram. 0 Read in the user's cholce. - Validate the user's choice with a while loop - Feturn the user's choice back to the rruin function. Remember to place the progammer defined function BELDW the main function! - You mast have a switch statement to figure nut which chaice the user selrcter. - The program should run over and over
  • 2. until the user selects to end the program using a do-while loop. - You MuST validate user input with while loopa If the input is a number to ensure the number is in the spocified range, You may assume the user will enter in a number (not a character or stringl, but you can't assume they menter a number within the speclfled range. Refer to samplo output of how user input valiclation should behave, Be specific to the user to lindicate which number was inalid. - You MUST allow spaces to be included in all string input. OUTPUT - The uset's spesuse [dala cormes fromi file arnd is picked via a randomin nurnuer] - The user's type of house / dwelling (date comes from file and is picked via a random number) - The location where the user will live (data comes from file and is picked via a random number) - Ihe car the user will drive (data comes from file and is oicked via a random numberl- The user's spouse [dats comes from file and is picked via a random number] - Tha user's type of house / dwelling (data comes from files and is pirked via a random number] - The location where the user will live (diata comes from file arid is picked via a random nurnter) - The car the user will drive (date comes from file and is picked via a random number) - The number of children the user will have (based on input from user & random number generated between 1 & I) - Where the user will work, their job title, and their salary (based on input from user & random number generated between 1 &B) SAMPLE OUTPUT User input is highlighted in yellow. Dicic frcm the fallawing menu: 2. End program. choose 1 ur 2: 6 Invalit chcice. CHUOSE 1 er 2: 1 You chose to predict your future! iirst, I need just a little intornation. Enter =hree numbers between 1 and 100 , separazed by a space.5pring 2023 C5C 1300 PRCGRAM 2dcox (Protected View) - Word (Unlicersed Product)85822 Entar in an awescme job title: Dance Instructor Enter in another awesome fob title: Artiat Fit.er in the worst joh tit.1e ever: Finglish Teacher Entar a company, organization, or restaurant you like: Cane cresk rec Center Enter anozher company, orqanization, or restaurant you like: Tennesaee Tech Univeraizv Enter a coupany, organization, or restaurant you haze: NoDonalds Eiter chree numbers between 10,000 and 500,000 , separa:ed by a space. 8.538439399913933 Ycu and yaur spause, Adele wil1 live in a House in 13 Rue Rarnel, 62100 Calais, France and drive a Marocm 2010 Nisson Cube. You and your spouss will have 22 childron. You will work az McDonalds as a Dnglish Teacher making 3399 a year. Pier frem ths following menu: 1. Le="s pluy 4 LHS! 2. End pregram. CHOOE 1 or 2:2 You chose to end the prodram. Hye!5pring 2023 C5C 1300 PRCGRAM 2dcox (Protected View) - Word (Unlicersed Product)