Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

hello, can you please help with these 3 questions in c++? the last 2 images are the same question but couldnt fit in one image.

hello, can you please help with these 3 questions in c++? the last 2 images are the same question but couldnt fit in one image. thank you!
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
A florist starts out with 41 roses. Then, numRoses is read from input as the number of roses purchased Assign rosesRemaining with the number of roses that are left. Ex: If the input is 9 , then the output is: 32 1 Finclude ciostreans using nanespace std; Int main() f int nuakioses: int roseskenalning: cin iss numfloses; Your code goes here % cout ec rosesilesalning coendl return : Given the height and length of a rectangle. assign recPerimeter with the perimeter of the rectangle Ex If the input is 416 , then the output is Perineter: 40 Note The perimeter of a rectangle is calcuiated by adding the product of 2 and height, to the product of 2 and lengt The reciprocal of width is 1 / width. The following program computes the reciprocal of a measurement of width and then outputs the reciprocal value. The code contains errors. Find and fix the errors Ex: If the input is 8,500 , then the output is: The reciprocal of width =1/0.500=2.090 The reciprocal of width is 1 / width. The following program computes the reciprocal of a measurement of width and then outputs the reciprocal value. The code contains errors. Find and fix the errors Ex: if the input is .500, then the output is: The reciprocal of width =1/0.500=2.000

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions