Write pseudocode and translate it to c-program

Assignment Help Computer Engineering
Reference no: EM132212254

Question

Write pseudocode and translate it to C-program for the following problem. Ask users to input a series of integers. The input will end with the number 0.

Assume users will never input more than 10 integers before input 0. After users input all the numbers,

1) print all the input numbers to the screen in the reverse order they are input by the users, and 2) print the minimal number of the input numbers to the screen, in a user friendly manner.

For example, assuming the user input is 1, 3, 20, 15, 0. The information on screen should be The numbers in the reverse order of the input are 15 20, 3, 1.

The minimal number of them is 1 You are expected to use an array to store the input numbers and use for loop idioms (see lecture notes on loop statements) to get the input numbers (and store them into an array and find the minimal number and generate the display outputs.

You are expected to practice the problem solving methodology, and your pseudocode should follow the format of examples in class and should be simple, precise and easy to read.

(Don't include workings in your final version of pseudocode.)

Both your pseudocode and C-program should work correctly.

Reference no: EM132212254

Questions Cloud

Ask user for the mortgage amount he wishes to borrow : Ask user for the mortgage amount (amount) he wishes to borrow, number of years (years) to clear the loan, the annual interest rate (rate).
How can a company possibly terminate an employee : Four states in our union have "legalized marijuana for recreational use"...Alaska, Colorado, Oregon and Washington. Furthermore, there are 19 other.
Write a python function which takes as input a simple graph : Write a python function largestComponent(G) which takes as input a simple graph G = (V,E) in an adjacency list format.
What are the internal and external factors : Clients' needs are not static: what are the internal and external factors that need to be identified and monitored to ensure clients financial objectives.
Write pseudocode and translate it to c-program : Write pseudocode and translate it to C-program for the following problem. Ask users to input a series of integers. The input will end with the number 0.
What is the cash flow from assets : What is the cash flow from assets for 2018? (Do not round intermediate calculations. A negative answer should be indicated by a minus sign.)
Describe your company investments and intangible assets : Briefly describe your company's investments and intangible assets. Does your company list "Other Assets?" If so, what items are classified in this category?
Calculate the return on total investment : Stale-Mart is an established chain of more than 100 department stores. Joan Chris is the district manager of eight stores in the Denver area.
Discuss about the components of the net pension cost : Under both U.A.A P and IFRS we report all changes in the obligation in the value of plan assets as they occur. The ways the changes are determined and reported.

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