Perform what is asked in each item. Part I. (4 items x 10 points)…
Question Answered step-by-step Perform what is asked in each item. Part I. (4 items x 10 points)… Perform what is asked in each item. Part I. (4 items x 10 points)Make a method named getCircleDiameter that takes a radius of double type as the parameter. The method should return the diameter of a circle. To compute the diameter of a circle, multiply the radius by 2.Make a struct named Product where its fields are code, description, and price.Make a class named Person with an instance variable named full_name. Declare one (1) constructor without a parameter and initialize the variable with a default value.Make a class named Account with an instance variable named account_number. Make this class a member of the Accounts namespace.Part II. (50 points)Make and Design a Program that converts a number entered in Roman numerals to decimal. Your program should consist of a class , say romanType. An object of the type romanType should do the following: a. Store the number as a Roman numeral.b. Convert and store the number into decimal.c. Print the number as a Roman numeral or decimal number as requested by the user. The decimal values of the Roman numerals are:M => 1000D => 500C => 100L => 50X => 10V => 5I => 1 d. Test your program using the following Roman numerals: MCXIV, CCCLIX, MDCLXVI. Computer Science Engineering & Technology Object-Oriented Programming Share QuestionEmailCopy link Comments (0)


