Re: beginner c questions



matt wrote
(in article
<1130978509.912057.230340@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>):

> I new to programming and have started with c. I am stuck on 2 questions
> and cannot move forward, any help would be greatly appreciated.
>
> Question 1: Express each number as a floating-point constant using both
> regular decimal notation and exponential notation.
> a) 1,234
> b) 1,234.5
> c) 0.1234
> d) 1.234 x 10 to the second power

My daughter is currently doing this sort of work in elementary
school. I can't imagine a college instructor being able to
stump a student on something this easy.

> Question 2: Express each number as an integer constant, an octal
> constant, and a hexadecimal constant.
> a) 1,234
> b) 2
> c) 8
> d) 16
> e) 1,024

This is slightly more difficult, but certainly something that
almost any "scientific" calculator can do on your behalf. Jeez,
this is trivial. If you can't answer these, change your major
before you fill your transcript with a semester's worth of F's.


--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw





.



Relevant Pages

  • Re: beginner c questions
    ... >> I new to programming and have started with c. ... >> I am stuck on 2 questions ... >> regular decimal notation and exponential notation. ... On 2 November Martin Ambuhl posted a printf solution, ...
    (comp.lang.c)
  • Re: beginner c questions
    ... >I new to programming and have started with c. ... I am stuck on 2 questions ... > regular decimal notation and exponential notation. ... This looks too much like a verbatim homework assignment, ...
    (comp.lang.c)
  • beginner c questions
    ... I new to programming and have started with c. ... I am stuck on 2 questions ... regular decimal notation and exponential notation. ... Prev by Date: ...
    (comp.lang.c)
  • Re: beginner c questions
    ... > regular decimal notation and exponential notation. ... Note that these are not just "programming" questions. ... related to the concepts of computer science and how numbers are ... if you are only looking into programming books for the ...
    (comp.lang.c)