Mrs. Ruiz-Houston

 

Home
Up
AP_Phy
H_Phy
Regular_Physics

 

Broward Schools

UPDATED Calendar - Graphic

UPDATED Calendar - Text

 

Computer Competition

Level 2

Question #2.0

2.5        Students often have to compare fraction, decimal and percent equivalents.  Prompt the user for a fraction, decimal or percent.  Depending on which you are given, output the equivalents for the decimal, percentage and fraction form of a given input and round to the tenths place.

 

           Format:

                        Prompt: Input amount = ?

                        Prompt: Choose a form for your INPUT = ?

                                    1 = fraction

                                    2 = decimal

                                     3 = percent

 

                        Output: Fraction form =

                                    Decimal form =

                                    Percent form =

 

           Example:

                        Input amount = 1/2

                        Choose a form for your INPUT = 1

                                    1 = fraction

                                    2 = decimal

                                    3 = percent

 

                        Fraction form = 1/2

                        Decimal form = 0.5

                        Percent form = 50.0

RUN / OUTPUT:

              Input amount = 150

              Choose a form for your INPUT = 3

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 150/100 (judges can accept the reduced form i.e. 3/2)

              Decimal form = 1.5

              Percent form = 150.0

 

 

              Input amount = 1/3

              Choose a form for your INPUT = 1

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 1/3

              Decimal form = 0.3

              Percent form = 33.3

 

 

              Input amount = 98.9

              Choose a form for your INPUT = 2

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 98.9/100

              Decimal form = 98.9

              Percent form = 9890.0


 

RE-TRY:

 

              Input amount = 98.9

              Choose a form for your INPUT = 2

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 98.9/100

              Decimal form = 98.9

              Percent form = 9890.0

 

 

              Input amount = 1/5

              Choose a form for your INPUT = 1

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 1/5

              Decimal form = .2

              Percent form = 20.0

 

 

              Input amount = 84.7

              Choose a form for your INPUT = 3

                          1 = fraction

                          2 = decimal

                          3 = percent

              Fraction form = 84.7/100

              Decimal form = 84.7

              Percent form = 8470.0

 

Home