Outputs the digits in reverse order with a space separating

Assignment Help Computer Engineering
Reference no: EM132207533

Write a program which:

1. Asks the user to enter a positive integer greater than 0

2. Validates that the entry is a positive integer

3. Outputs the digits in reverse order with a space separating the digits

4. Outputs the even digits not in reverse order with a space separating the digits (consider zero to be even)

5. Outputs the odd digits not in reverse order with a space separating the digits

6. Allows user is to repeat/continue the program as many times as he/she wants

7. Keeps a record in a txt file named outDataFile.txt with the history of all numbers entered and the associated results, in the following format:

Please write the assignment in the programming language Java: please follow the folowing directions:In addition:

8. The program must have the following four void methods:

a. validate //validate user input

b. reverse // output reverse digits to screen and txt file

c. even //output even digits to screen and txt file

d. odd //output odd digits to screen and txt file , including follow these steps:

1. No infinite loops, examples include:

a. for(;;)

b. while(1)

c. while(true)

d. do{//code}while(1);

2. No break statements to exit loops

Reference no: EM132207533

Questions Cloud

Security steps taken in health care information system : According to the textbook, there are key functions that are served by the security steps taken in a health care information system.
Describe effect on the equilibrium real gdp and price level : Each of the following events causes a shift in the AD or AS curve in Canada. Identify which curve was affected and describe the effect on the equilibrium real.
Find the income effect associated with the price change : The consumer's demand for good X is determined by the function X* (Px, M) = M / 10Px , where Px denotes the price per unit of good X. Consumer's income is 1600.
Write down social welfare function for two-person economy : Suppose Alice and Brian are the only two people in a pure exchange economy. Food and clothing are the only two commodities. Alice is endowed with 300 units.
Outputs the digits in reverse order with a space separating : Allows user is to repeat/continue the program as many times as he/she wants. Outputs the digits in reverse order with a space separating the digits.
How many miles must victoria drive in a year : Victoria is choosing between a standard Honda Civic for $20,000 or a hybrid Civic for $25,000. She calculates her annual cost of ownership including payments.
Print all the ways possible in notepad at the end : Write a program in which print all the ways possible in notepad at the end.
What will the bank of canada do in order to maintain rate : If the Money Supply is less than Money Demand, what will the bank of Canada do in order to maintain their target interest rate? And if the Money Supply.
By how much does employment have to increase : Suppose the number of employed people is currently 10 million and the working age population will grow by 2 per cent over the next year.

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