Reference no: EM13946213
Write a program that stores and converts a number entered in Roman numerals to an integer value. Your program must consist of a class named Roman. An object of type Roman must do the following:
1.) Store the number as a Roman numeral,
2.) Convert and store the number also as an integer value,
3.) Print the number as a Roman numeral or integer number as requested by a method call,
4.) Implements a constructor.
So for example, you should be able to write a program that looks something like this:
Roman r = new Roman("MCXIV");
r.printInt(); //prints 1114
r.printRoman(); //prints MCXIV
Roman s = new Roman("CCCLIX");
s.printInt(); //prints 359
The Roman numerals are:
I = 1
V = 5
X = 10
L = 50
C = 100
D = 500
M = 1000
Identify the full name of the author
: Author and title: Identify the full name of the author and the title of the work. Genre: What type of writing is it (op-ed, newspaper article, magazine article, speech, book Excerpt, other)? What's it for
|
Should the manufacturer pay for an opinion
: Calculate the breakeven point in sales dollars using the contribution margin ratio approach. How many pizzas must be sold to earn $60,000 profit per annum before tax?
|
Electrical heater of problem
: Consider the electrical heater of Problem 7.49. If the blower were to malfunction, terminating airflow while the heater continued to operate at 1000 W/m, what tem- perature would the heater assume?
|
Common practice in chemical processing plants
: Common practice in chemical processing plants is to clad pipe insulation with a durable, thick aluminum foil. The functions of the foil are to confine the batt insulation and to reduce heat transfer by radiation to the surroundings.
|
Program to convert number to words
: Write a program that stores and converts a number entered in Roman numerals to an integer value. Your program must consist of a class named Roman.
|
Evaluate properties-appropriate film temperature
: Consider the hot water pipe of Problem 7.56, but under convection coefficient as a function of only !iT = Ts - Too, where Ts is the sensor temperature. Evaluate properties at an appropriate film temperature and show what effect this approximation ..
|
Finite-difference method of solution
: Use the finite-difference method of solution to obtain qf when the convection and radiation coefficients are based on local, rather than average, tem- peratures for the fin. How does your result compare with the analytical solution of part (a)?
|
Identify two risks in each of these strategies
: Buy a system created for another school and modify it to fit this school's specific requirements
|
Estimate the surface temperature
: An electric immersion heater, 10 mm in diameter and 300 mm long, is rated at 550 W. If the heater is horizon- tally positioned in a large tank of water at 20°C, estimate its surface temperature. Estimate the surface temperature if the heater is ac..
|