Display the resulting values

Assignment Help Computer Engineering
Reference no: EM132206671

Write a new program (hw6-pr2) meeting at least the following minimum requirements:

Prompt the user to enter a string of 9 characters consisting of 4 digits (0-9), followed by a period (.), followed by 4 more digits (0-9), e.g. 1234.5678.

Be sure to check for a correctly formatted input. Convert the input string into two integers (one from the first 4 digits and one from the last 4 digits) and one double (from the entire string).

Display the resulting values (all on one line). Display each of the two integers in the following formats: decimal, octal (starting with "0") and hexadecimal (starting with "Ox").

Put all 3 versions of each integer on the same line in columns 10 characters wide (i.e. use two lines of display for the two integers).

Display the double in the following formats: default Moat, fixed and scientific. Put all 3 versions of the double on the same line in columns 20 characters wide.

Do this twice, first with the default precision, and then using a precision of 8.

Capture each of the four lines displayed above (two integer version lines and two double version lines) into a string and then display the string.

The displayed lines should be identical to those previously displayed.

Reference no: EM132206671

Questions Cloud

Write the negation of each statement : Write the negation of each statement. a. The processor is fast but the printer is slow. b. The processor is fast or else the printer is slow.
Determine the total water extraction : Province Twelve has two cities, 1 and 2. Both cities need clean water for their residents. To provide clean water two cities utilize a common lake.
What tools are used for collaboration : Write on overview of a company based on Web 2.0/Business 2.0. What tools are used for collaboration.
Each of five demands of quality quality improvement : discuss your plan cover each of the five demands of quality quality improvement in each demand should be explained and apply to the healthcare faculty.
Display the resulting values : Display the resulting values (all on one line). Display each of the two integers in the following formats: decimal, octal.
Write the oop components such that a user can create objects : Write the OOP components such that a user can create Transportation objects. We will implement both a Car and a Train.
What is information governance : What is “information governance”? Briefing discuss key Blockchain characteristics.
Compute the sum of all the odd numbers from 1 through 99 : Use a For loop to compute the sum of all the odd numbers from 1 through 99. Your result should be labeled, and the value should be 2500.
Main factor for designing effective work teams : Which of the following is a main factor for designing effective work teams? The degree to which individuals are integrated into a group is definition of _______

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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