Create process that will create pattern in which is pyramid

Assignment Help Programming Languages
Reference no: EM131321259

Algorithm

For each of the problems below state the purpose in your own words, specify input that is needed, expected output, and the step by step process that will obtain the output from the input (the algorithm).

Remember you are not to create actual code, but describe what should be done. For example, the nested loop from the powerpoint could be described as the following:

Create an outer loop that runs from 1 to 5

Inside this outer loop output the variable name and the equal sign followed by the value in the variable

Have an inner loop that runs from 1 to the value of the variable for the outer loop.

The inner loop should output the value in the variable of the variable for the inner loop followed by a space.

Once the inner loop has completed, out a new line and go to the next iteration of the outer loop

Question 1: Write a process that will ask the user to enter a number then output a pattern consisting of user's number of # in the first row, the user's number -1 # in the second row, the user's number -2 # in the third row, etc. until the last row contains 1 #. For example if the user entered 8, the pattern would be

Question 2: Create a process that will create a pattern in which is a pyramid. The user should enter the maximum number of rows to be output, then 1 should be output in the first row, 1 2 3 output in the second row, 1 2 3 4 5 should be output in the 3 row, etc. For example if the user entered 7 the following would be output.

Question 3: Create a process that will ask the user to input the number of rows to be output then will create a pattern as given below. If the use enters 6 the follow output should be generated.

Reference no: EM131321259

Questions Cloud

Focus on one aspect of your broad issue going for depth : You may choose to approach this assignment in one of several ways, depending on your issue. You may choose to present a timeline of events leading up to present day. You may choose to present the basic concepts on which your issue rests. You may c..
Explain six potential health issues mary faces : Mary is a 56 year old woman who has recently been diagnosed with type 2 diabetes. She is morbidly obese and has a body mass index (BMI) of 35. Explain six (6) potential health issues Mary faces as a result of her obesity
Equilateral triangle with sides : Electric Force is a vector. Three charged objects are located at the ‘corners' of an equilateral triangle with sides 1.0 m long. Two of the objects carry a charge of 5.0 µC each. The third object carries a charge of -5.0 µC. Assume all three objec..
The diode current equation for hetero junction : Using Shockley diode formulae for a p/n homo junction, write down without algebra the diode current equation for hetero junction p/n diode with a valence discontinuity of ?EV and a conduction band discontinuity of ?EC.
Create process that will create pattern in which is pyramid : Create a process that will create a pattern in which is a pyramid. The user should enter the maximum number of rows to be output, then 1 should be output in the first row, 1 2 3 output in the second row, 1 2 3 4 5 should be output in the 3 row, e..
Assembles earlier four reports in an organized way : Assembles earlier four reports in an organized way · Corrects any errors from earlier reports · Adds an Executive Summary at the beginning, SWOT at the end. Includes Marketing Recommendations: Blogs, Visible Expert, Instagram. Vine Vi..
Diameter spread in the beam of bullets : Bullets of mass2.2g are fired in parallel paths with speeds of216m/s through a hole2.0mm in diameter. How far from the hole must you be to detect a1.4cm diameter spread in the beam of bullets?
Buoyant force acting : (a) What is its weight? (b) What is the buoyant force acting on it? (c) What is the size and the direction of the net force on it?
Show corporate income tax calculations : Complete the previous template that has the respective tax forms and schedules required to complete the return. Complete all of the parts of your respective business tax return for which there is information.

Reviews

Write a Review

Programming Languages Questions & Answers

  Create a new class within the project

CS4001 Programming - The aim of this assignment is to add a class to the project that you developed for the first part of the coursework to make a graphical user interface (GUI) for a system that stores details of cars in a car company.

  Write an application named useinsurance

Write an application named UseInsurance that prompts the user for the type of insurance to be displayed, and then create the appropriate object.

  Write a program that reads a string and outputs

Write a program that reads a string and outputs the number of times each lowercase vowel appears in it. The program must contain a function with one of it's parameters as a string variable and return the number of times each lowercase vowel appear..

  Write an arm subroutine which allocate memory for new string

Prepare an ARM subroutine which will extract a substring from a string and you will need to use the library routine malloc to allocate memory for the new string - CS252 Programming Assignment

  Develop program that simulates section of a restaurant menu

Develop a console program that simulates a section of a restaurant menu. Each item will have a different price and your program should define at least ten (10) items. You will need to obtain an order from the user who should provide their menu sel..

  What are criteria for selection of a programming language

What are the criteria for selection of a programming language for developing Internet of things OR How to determine which programming language is suitable for developing Internet of things (IOT)

  Write an algorithm that converts a linear measurement

Write an algorithm that converts a linear measurement in feet and inches into meters. One inch is equivalent to 2.54 centimeters.

  Advantageous benefits of using object-oriented design

Select an organization that you are familiar with and determine the most advantageous benefits of using object-oriented design in this organization and state why

  Create a math program to practice math skills

Creating a Math Program to practice Math Skills. Ask the user what type of math problem they would like (addition, subtraction, multiplication, division, modulas).

  Creating loop to find number of items bought based on price

Make a block using a loop that will find the number of items that can be bought based on the price of the item and the total amount available to spend.

  Discuss the purpose of the php procedures

Discuss the purpose of the PHP procedures that you have written.

  Design and implement program catches and handles exception

Design and implement a program that creates an exception class called StringTooLongException, designed to be thrown when a string is discovered that has too many characters in it.

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