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

  What are an ethical dilemmas associated

What are the ethical dilemmas associated with using facial recognition software? Is this kind of software any different from a store asking to see your drivers license when you use your credit card.

  What are the addresses of given status and stack pointers

What is the PIC18F instruction for switching from bank 1 to bank F in the data memory?

  Describe in very general terms as is business process

Describe in very general terms the as-is business process for registering for classes at your university. Collaborate with another student in your class and evaluate the process using activity elimination.

  Create a diagram for a layered architecture view of system

To present a static model of system, create a diagram for a layered architecture view of system. Using components you identified in your layered view of the system, create an activity diagram that shows how a customer would place an order.

  Recognize the objects involved in the task

Write down a short, structured design (pseudocode only) that accomplishes this task.

  Revise the program to reflect the given changes

Revise the program to reflect the following changes: Use a for loop to prompt the student for the price of each book based upon number of classes being taken.

  What is a real-time system and response time

What is a real-time system? What is response time? What is the relationship between real-time systems and response time?

  Develop high-fidelity prototype

Develop high-fidelity prototype. Based on the user test feedback and recommendations from the previous phase, develop a high-fidelity prototype (i.e. reasonably complete version) for the Robot Expo information kiosk. Use any combination of HTML5, CSS..

  What equilibrium temperature will the surface assume

Dry air at 315°C flows along a flat wet surface (water) at 9 m/s. The pressure is 1 atm. If the surface is insulated (except for exposure to the air).

  Consider a two-dimensional integer array of size n x m

Consider a two-dimensional integer array of size n x m that is to be used in your favorite programming language.

  Create a GUI that can be used by a community group

Create a graphical user interface that can be used by a community group to enable youths to sign up for different sporting events.

  Write applet that allow user to enter three positive integer

Write an applet that allows the user to enter three positive integers between 0 and 255, each of which corresponds to a specified red, green, and blue color.

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