Extract all digits at even positions

Assignment Help Basic Computer Science
Reference no: EM132125972

In C language:

Read a double number as 2 digits after the decimal point. The number should have at least 6 digits BEFORE the decimal point.

Extract all digits at even positions. Print them in reverse order.

Extract all digits at odd positions. Print in order of occurrence.

Number in file: 222333444.595666

Program reads: 222333444.59

Even positioned digits printed in reverse order: 5 4 3 3 2

Odd positioned digits printed in order - 2 2 3 4 4 9

Sample codes,: https://justpaste.it/4f8m9

  1. extract wrong
  2. didn't extract the number after decimal

Reference no: EM132125972

Questions Cloud

Discuss two screening tests that are effective : Discuss two screening tests that are effective in identifying those with a high likelihood of having an alcohol problem. Then which of the two would you prefer
What are some advantages of artificial intelligence : What are some advantages of artificial intelligence?In your responses to others, discuss some of the disadvantages of AI.
Role of a gatekeeper or voip server in a voip : Discuss the importance, functionality, and role of a GateKeeper or VoIP server in a VoIP -deployed network?
What are crocs core competencies : What are Croc's core competencies? what are their advantages for the company? How do they exploit these competencies in the future?
Extract all digits at even positions : Read a double number as 2 digits after the decimal point. The number should have at least 6 digits BEFORE the decimal point.
How can i get the first element from a linked list : For example, if I am working on a number guessing game with linked list, and there is a list called priorGuess, which stores all the guesses that is given.
What are some examples of when a data compression utility : What are some examples of when a data compression utility can be used for information stored on a computer's hard drive?
What is the origin of organization development : What did the Hawthorne Studies results lend to a study of organizational change? What is the origin of Organization Development?
Please help with a function codesymbol : Please help with a function codeSymbol, to convert each mark to a symbol (A, B, C, D, E, F) and a code

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Transformation of technological advancements of societies

Does or has religion played a critical role in the transformation of technological advancements of societies? What evidence can you provide?

  Door lock that implements the rules

Construct a finite-state machine for an electronic door lock that implements the following rules: A user enters a string of three digits, one digit at a time.

  Personal email-social media

Should there be a DMZ zone in a businesses so staff can access their personal email, social media? Name four reasons why.

  Data warehouse and business intelligence

Data warehouse and business intelligence

  Discuss the falsifying any document or record

Discuss the Falsifying any document or record. Base your posting on your relationship with the unethical person and any risk involved in whistle blowing.

  Outsource marketing to the marketing agency

Suppose that in the outsourcing game, both ?rms chose to outsource marketing to the marketing agency. Solve for the Nash equilibrium of ads game in this case.

  Analyze an information system that you are familiar with

Use the PIECES framework to analyze an information system that you are familiar with?

  What are the deliverables at analysis phase

System analysis and design. 1. What are the deliverables at analysis phase? 2. What is the difference between the close-end and open-end question?

  Calculate the overall cost

Then go buy your groceries and compare Excel's price with the supermarket's price. What else could Excel help you with?

  Discuss the properties of the hash map

Can an object that instantiates the Hash Map class contain multiple copies of some element as a key? How about multiple copies of some element as a value?

  Design an application that instantiates an object

Design a class named Player that holds a player number and name for a sports team participant. Include methods to set the values for each data field and print the values for each data field.

  What hit rate is required for the cache to produce a 50%

One option used to speed up disk drives is to add a cache that hold either recently accessed blocks, blocks waiting to be written to the disk, or that is used to "prefetch" blocks for a file. If the disk speed is approximately 3ms for a block and the..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd