Write a C++ program to help suggest outfits for you to wear, with a randomized suggestion...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a C++ program to help suggest outfits for you to wear, with a randomized suggestion of a clothing combo for top/bottom depending on the weather (for example, a blue long-sleeve shirt and jeans for cold weather). ● Your program should include 6 choices for clothes in each category (warm tops, cold tops, warm bottoms, cold bottoms). Prompt the user to input the current weather as warm (w) or cold (c). Use an if-statement to separate your code into choosing warm-weather clothes or cold-weather clothes. Roll two 6-sided dice. Use switch where the first dice determines the case for tops and prints the selected top to the screen. Use switch where the second dice determines the case for bottoms and prints the selected bottom option to the screen. Write a C++ program to help suggest outfits for you to wear, with a randomized suggestion of a clothing combo for top/bottom depending on the weather (for example, a blue long-sleeve shirt and jeans for cold weather). ● Your program should include 6 choices for clothes in each category (warm tops, cold tops, warm bottoms, cold bottoms). Prompt the user to input the current weather as warm (w) or cold (c). Use an if-statement to separate your code into choosing warm-weather clothes or cold-weather clothes. Roll two 6-sided dice. Use switch where the first dice determines the case for tops and prints the selected top to the screen. Use switch where the second dice determines the case for bottoms and prints the selected bottom option to the screen.
Expert Answer:
Answer rating: 100% (QA)
include include for stdrand and stdsrand include for stdtime Function to get a random number between ... View the full answer
Related Book For
An Introduction To Statistical Methods And Data Analysis
ISBN: 9781305465527
7th Edition
Authors: R. Lyman Ott, Micheal T. Longnecker
Posted Date:
Students also viewed these programming questions
-
In this question assume that p and q are atomic formulae. (a) Compare and contrast path formulae and state formulae in temporal logic. [4 marks] (b) Describe and contrast the meanings of F(G p) and...
-
Write a C++ program with recursion to print the following pattern for any odd number greater than or equal to 5. Note: the last row must be filled with digits from your ID in case the pattern is...
-
The table below shows hypothetical values, in billions of dollars, of different forms of money. a. Use the table to calculate the M1 and M2 money supplies for each year, as well as the growth rates...
-
The city council made an appropriation of $ 95,000 to the Police Department for the purchase of supplies, equipment, and vehicles. The following transactions and events occurred regarding this...
-
The University of Wisconsin at Madison completed a study titled GenderEquity Study of Faculty Pay,dated June 5, 1992. The main purpose of the study was to determine whether women are treated unfairly...
-
A 2.00-kg stone is sliding to the right on a frictionless horizontal surface at 5.00 m/s when it is suddenly struck by an object that exerts a large horizontal force on it for a short period of time....
-
Shawn's Tutoring adjusted trial balance follows.\ SHAWN'S TUTORING\ Adjusted Trial Balance\ December 31, 2017\ \\\\table[[Accounts,Debits,Gredits],[ cosh ,1,650,],[Accounts Receivable,1,160,],[Ollice...
-
The transistors shown in Figure P12.43 operate in the active region and have B = 100 and VBE = 0.7 V. Determine Ic and VCE for each transistor. 1.00 10 Figure P12.43 1 1 +10 V
-
The perishability of services and variability of customer demand call for flexible working practices by front-line employees in the services sector. Identify methods of improving employee flexibility...
-
Hostile witnesses should be interviewed when? a. Setup an appointment b. Talk to the witness over the telephone c. Approach the witness unannounced d. Don't approach the witness at all.
-
Critically examine the marketing advantages and disadvantages of small-and large-scale service providers in either the hospitality sector or the provision of local bus services.
-
What are the key items to consider when arranging transportation for an athletic team?
-
What are the registration requirements imposed on architects?
-
The feminist scholars and literary critics, Sandra Gilbert and Susan Gubar, wrote the following about the difficulties women have in establishing an identity that they can call their own: The...
-
What tools are available to help shoppers compare prices, features, and values and check other shoppers opinions?
-
Use the method of fitting complete and reduced models to obtain an analysis of variance for the data in Exercise 19.21. In Exercise 19.21 Car Model Driver IV 15.5 II 16.3 III 108 I 14.7 I 29.1 IV...
-
One or more specific, minor birth defects occur with probability .0001 (that is, 1 in 10,000 births). If 20,000 babies are born in a given geographic area in a given year, can we calculate the...
-
Refer to Exercise 12.12. Use the fitted regression model to answer the following questions. a. Can the hypothesis of no overall predictive value of the model be rejected at the the α =...
-
What are the values of the feathering parameters for the airfoils given by Examples 8.5 and 8.6? Examples 8.5 Assume an airfoil pitching about its leading edge and plunging with \(k=0.35\) as follows...
-
Obtain the lift and propulsive force coefficients of an airfoil given in Example 8.6, and compare the results with Problem 8.30. Assume the profile pitches about midchord. Example 8.6 The NACA 0012...
-
Find the heat transfer rate \(\mathrm{q}_{\mathrm{w}}\) at \(\mathrm{x}=10 \mathrm{~cm}\) and \(100 \mathrm{~cm}\) for the flat plate given in Problem 7.31. Problem 7.31 A flat plate of \(4...
Study smarter with the SolutionInn App