Created a nested loop in raptor

Assignment Help Computer Engineering
Reference no: EM133368772

Input: The program prompts for the name of an input file and the name of an output file. The input file contains two positive (non-zero) integers, m and n, each less than 20, followed by a character.

Output: A file containing an m × n rectangle made using the specified character. For example, if the input file contained the numbers 4 and 6 and the character ? as shown below, 4 6* the output file would show 4 lines of 6 stars each, as shown below:

This program will start by opening the input file and reading the numbers and the specified character. Thereafter a nested for loop will generate the pattern. The following questions are designed to step you through the process of creating the nested loop.

Question 1: Using Raptor, "create a" flowchart for the following process: "write a" specified character (denoted ch) n times on the output stream and move the cursor to the beginning of the next line. (In Raptor, the character must be put in double quotes. When writing, uncheck the "end current line" box to stay on the same line; "write an" empty string with the box checked to go to the next line.)

Question 2: Created a nested loop in Raptor. The outer loop will run the inner loop a specified number of times. The result will be rectangular block of characters. Example for constructing a nested Raptor loop can be found here. Note that when you draw the nested loop in Raptor, the outer loop is created first, and the inner loop is placed inside it.

Question 3: Implement your algorithm in C++ using the for loops.

Reference no: EM133368772

Questions Cloud

What would be expected return for that stock in coming year : Use the rates given in part c to answer this question. If a stock had a Beta of 2.32 what would be the expected return for that stock in the coming year?
Wild canada-the eternal frontier : SUMMARIZE the documentary "Wild Canada, the Eternal Frontier." Identify the different animals from east to west across the country.
Describe the concept of symmetry for square matrices : describe the concept of symmetry for square matrices. Based on such definition, describe the relationship between the lower and upper triangular portions
Population pyramids of germany : The 1950 population pyramids of Germany, the Russian Federation, Ukraine, and Poland
Created a nested loop in raptor : Created a nested loop in Raptor. The outer loop will run the inner loop a specified number of times. The result will be rectangular block of characters
Why might certain parks have birds with higher ddt levels : You are studying DDT levels in Great Blue Herons (a large bird that typically eats fish). We actually get one that hangs out at the pond on the MC campus.
Create a work breakdown structure : Create a Work Breakdown Structure (WBS) based on your scope statement. Your WBS should be broken down to 3 levels. Use the table format for your WBS
What would you expect for exchange rate of the 2 currencies : according to the relative purchasing power parity, what would you expect for the exchange rate of the 2 currencies? Comment on how this will affect
Communicate this change to colleagues : Assume a change has just been made to include a new feature or a change. Communicate this change to colleagues/customers/co-workers to help them not only use

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