Programming Logic

I need to create a program that has (at least) two variables, char and num. I need to use nested loops to print char, a character, in the form of the following pattern on as many lines and as many times as specified by num. For example, if char is “M” and num is 5, then the program will draw the following pattern:

  1. 👍 0
  2. 👎 0
  3. 👁 163

Respond to this Question

First Name

Your Response

Similar Questions

  1. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  2. Java

    1. Which of the following expression evaluates to a value of 15? 1+2x3+4 (1+2)x(3+4) 1+2x(3+4) (1+2)x3+4** 2. If x is an int which of the following statements adds 5 to the current value of x and store the new value back in x?

  3. computer science

    Cyborg data type sizes. You have been given a job as a programmer on a Cyborg supercomputer. In order to accomplish some calculations, you need to know how many bytes the following data types use: char, int, float, and double. You

  4. C programming

    Question: Write a program that reads integers from the keyboard until the user enters the sentinel value -999. The program should then print the minimum integer read, the maximum integer read and the average of all the integers.

  1. Math

    The sum of two num is 38.when 8 is added to twice one of the num the result is 5 times the other num.find the two num

  2. CIS

    Create three arrays of type double. Do a compile-time initialization and place different values in two of the arrays. Write a program to store the product of the two arrays in the third array. Write a method to display the

  3. programming

    create the logic for a program that calculates and displays the amount of money you would have if you invested $5000 at 2 percent simple interest for one year. create a separate method to do the calculation and return the result

  4. Programming (CSI 150 Programming Logic and Design)

    Create a program that outputs a letter grade for a student based on the following table: From To Grade 90 100 A 80 89 B 70 79 C 0 69 F I don't understand how to do this. Would you mind helping me get the answer to this Program?

  1. programming

    Create the logic for a program that prompts a user for three numbers and stores them in an array. Pass the array to a method that reverses the order of the numbers. Display the reversed numbers in the main program.

  2. Programming

    I need help with debug Debug06-02 // Program lets user input scores on four tests // Average is computed and letter grade is determined // Letter grades are based on 90 for an A, 80 for a B, and so on start string name num score

  3. computer science java

    write a program in java for a grocery (fruit shop calculate the prize of bananas @ $.89/kg declaring the the prices of all either as instances or class variables.declare the weight of the fruit as local variables

  4. computers - Programming

    Create a program that uses two parallel one-dimensional arrays. The program displays a shipping charge that is based on the number of items ordered by a customer. The shipping charge scale is shown in Figure 1 below. Store the

You can view more similar questions or ask a new question.