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

  Design a tm m that compute the following 3-argument function

Informally describe your design. Design the transition table for M. Use the ` notation to show how M computes fM(0,00, 000).

  What influence does the dmca really have in the industry

What influence does the DMCA really have in the industry? How did the organization influence tighter security and privacy controls?

  Describe most significant computer security threats

Describe and give examples of the 2 most significant computer security threats that are impacting the world at the present time. (b) What steps are being taken.

  How to efficiently model uncertainty in ml and nlp

More work is necessary on how to efficiently model uncertainty in ML and NLP, as well as how to represent uncertainty resulting from big data analytics.

  What are the ethics of setting up an rfid tag scanner

What are the ethics of setting up an RFID tag scanner in the classroom door? disxuss this form the act utilitraianism viewpint and mechanics of what data it could reveal.

  What are the business costs or risks of poof data quality

What are the business costs or risks of poof data quality? Support your discussion with at least 3 references. What is data mining? Support your discussion.

  Define overview of loops and a coding fragment sample

Because of your recent work as a software development contractor, you are hired to present an overview of C# programming to a new group of contractors.

  Can we use that algorithm as a subroutine to approx

Can we use that algorithm as a subroutine to approximately solve other NP problems in polynomial time?

  Create a print function for the list that will print node

Create a print function for the list that will print the nodes in order. You will need to create some functions to support this functionality.

  What is the physical characteristics of disk

A disk may have multiple surfaces, arms, and heads, but when you issue a read or write, only one head is active at a time. It seems like one could greatly.

  Write the program code to handle as many as 40 test scores

Write the program code to handle as many as 40 test scores; however, for this assignment you will enter only the following five scores: 70, 80, 60, 80, 70

  Write a brief synthesis and summary of the two articles

Research at least two articles on the topic of emerging enterprise network applications. Write a brief synthesis and summary of the two articles.

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