C++

 

Create a program that will compute:

Having Trouble Meeting Your Deadline?

Get your assignment on C++ completed on time. avoid delay and – ORDER NOW

  1. The area and circumference of a circle.  Prompt the user to enter the radius. Use 3.14159 for pi.
  2. The area and the perimeter of a rectangle. Prompt the user to enter the length and the width.
  • Use the plan you created last week. If need be revise your pseudocode and algorithm to match expect output and Mimir test cases. 
  • Once again desk check your pseudocode and algorithm.
  • Do not allow for invalid input.
  • Allow for positive values only.
  • Format to 3 decimal places

starter.cpp

starter.cpp

  "Geometry Calculatornn" ;
"Select a figure" << endl ;
"1. Circlen" ;
  "2. Rectanglen" ;
  "3. Quitnn" ;
  "Enter your choice (1-3): " ;
"The valid choices are 1 through 3. Run then"
                  <<   "program again.n" ;
  
  "nEnter the circle's radius: " ;
  "nThe radius must be greater than zero.n" ;
"Enter 1 for area or 2 for circumference: " ;
    "nThe area is "   <<  your code  <<  endl ;
             }
   "Circumference" << endl ;
       "nThe circumference is "   <<  your code  <<  endl ;
   "Invalid selection" << endl ;
  "nEnter the rectangle's length: " ;
"Enter the rectangle's width: " ;
      "nOnly enter positive values for "   <<   "length and width.n" ;
"Enter 1 for area or 2 for perimeter" << endl ;
   "Area" << endl ;
     "nThe area is "   <<  your code <<  endl ;
    "Perimeter" << endl ;
            
    "nThe perimeter is "   <<  your code <<  endl ;
    "Invalid selection" << endl ;
   "Program ending.n" ;
      "The valid choices are 1 through 3. Run then"   <<   "program.n" ;
 

Order Solution Now

Similar Posts