Re: beginner c questions
- From: Randy Howard <randyhoward@xxxxxxxxxxxxxxxxx>
- Date: Fri, 04 Nov 2005 14:25:51 GMT
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
.
- Follow-Ups:
- Re: beginner c questions
- From: matt
- Re: beginner c questions
- From: pete
- Re: beginner c questions
- References:
- beginner c questions
- From: matt
- beginner c questions
- Prev by Date: Re: About unions
- Next by Date: Re: How to read arrow key input in the ANSI way?
- Previous by thread: Re: beginner c questions
- Next by thread: Re: beginner c questions
- Index(es):
Relevant Pages
|