# Answer to Question #49913 in Other Programming & Computer Science for jeshani

Question #49913

Different programming languages use different notations to represent integers. Construct a regular

expression for each one of the following:

(a) Nonnegative integers in C represented in bases 10 and 16.

(b) Currency, in dollars, is represented as a positive decimal number rounded to the nearest onehundredth.

Such numbers begin with the character $, have commas separating each group of

three digits to the left of the decimal point, and end with two digits to the right of the decimal

point, for example, $8,937.43 and $7,777,777.77.

Question-

expression for each one of the following:

(a) Nonnegative integers in C represented in bases 10 and 16.

(b) Currency, in dollars, is represented as a positive decimal number rounded to the nearest onehundredth.

Such numbers begin with the character $, have commas separating each group of

three digits to the left of the decimal point, and end with two digits to the right of the decimal

point, for example, $8,937.43 and $7,777,777.77.

Question-

Expert's answer

## Comments

## Leave a comment