In C programming language have a program request the user to enter an uppercase letter. Use nested loops to produce a pyramid pattern like this:

The pattern should extend to the character entered. For example,
the preceding pattern would result from an input value of E. Hint:
Use an outer loop to handle the rows. Use three inner loops in a
row, one to handle the spaces, one for printing letters in
ascending order, and one for printing letters in descending
order.
Thank you
#include<stdio.h>
#include<conio.h>
int main()
{
char input_character,read,c;
int sp;
printf("Enter an alphabet : ");
scanf("%c",&input_character);
if(input_character>='a' &&
input_character<='z')
input_character=input_character-32;
for(read='A'; input_character>=read; read++)
{
for(sp=input_character-read; sp>=1; sp--)
printf(" ");
for(c='A'; read>=c; c++)
printf("%c",c);
for(c=read-1; c>='A'; c--)
printf("%c",c);
printf("\n");
}
getch();
return 0;
}
In C programming language have a program request the user to enter an uppercase letter. Use...
in C++, Design a program that asks the user to enter a password, and then analyze the password, and then analyze the password for the following weaknesses: 1. Fewer than 8 characters 2. Does not contain at least one uppercase letter and one lowercase latter 3. Does not contain at least one numeric digit 4. Does not contain at least one special character( a character that is not a letter or numeric digit) 5. Is a sequence of consecutive uppercase...
In C programming language: This program will output a right triangle based on user specified height triangleHeight and symbol triangleChar. (1) The given program outputs a fixed-height triangle using a * character. Modify the given program to output a right triangle that instead uses the user-specified triangleChar character. (1 pt) (2) Modify the program to use a nested loop to output a right triangle of height triangleHeight. The first line will have one user-specified character, such as % or *....
In C Programming Language, write a program Character Pointers and Functions. Keyboard input to enter one character string. Using a single dimension array, populate the array with the character string, call a function using pointers to reverse order the character string, pass back to the main the output and total_count_of_characters. (maybe use a global variable for the total count). Print display the reversed char string and total_count.
In C Programming Language, write a program Character Pointers and Functions. Keyboard input to enter one character string. Using a single dimension array, populate the array with the character string, call a function using pointers to reverse order the character string, pass back to the main the output and total_count_of_characters. (maybe use a global variable for the total count). Print display the reversed char string and total_count.
In this program, you will be using C++ programming constructs, such as overloaded functions. Write a program that requests 3 integers from the user and displays the largest one entered. Your program will then request 3 characters from the user and display the largest character entered. If the user enters a non-alphabetic character, your program will display an error message. You must fill in the body of main() to prompt the user for input, and call the overloaded function showBiggest()...
Use
c++ as programming language. The file needs to be created ourselves
(ARRAYS) Write a program that contains the following functions: 1. A function to read integer values into a one-dimensional array of size N. 2. A function to sort a one-dimensional array of size N of integers in descending order. 3. A function to find and output the average of the values in a one dimensional array of size N of integers. 4. A function to output a one-dimensional...
CSE 002: Fundamentals of Programming Spring 2020 Homework Assignment 6: Objectives. The objective of this homework is to give you practice with writing while, for, and do-while loops. You may find it helpful to work through the check point questions embedded in the chapter, and to practice on homework problems from the text that we have not assigned. Note that solutions to the even-numbered problems are available on the book’s student resource website as described on page xii. All homework...
IN JAVA Overview In this project you will implement a Java program that will print several shapes and patterns according to uses input. This program will allow the use to select the type (say, rectangle, triangle, or diamond), the size and the fill character for a shape. All operations will be performed based on the user input which will respond to a dynamic menu that will be presented. Specifically, the menu will guide the user to decide between different forms...
In the C++ programming language write a program capable of playing 3D Tic-Tac-Toe against the user. Your program should use OOP concepts in its design. Use Inheritance to create a derived class from your Lab #9 Tic-Tac-Toe class. You can use ASCII art to generate and display the 3x3x3 playing board. The program should randomly decide who goes first computer or user. Your program should know and inform the user if an illegal move was made (cell already occupied). The...
Hi everyone, I have a C programming problem, answers are better
with explanations.
Background Materials:
The Task:
The Answer:
The completed C code.
Below is the file charIO4C.c:
#include <stdio.h>
#include <ctype.h>
#define QUIT_LETTER 'q'
int main(void)
{
int c, line_length;
// Each pass through the outer loop reads a line of input.
while (1) {
printf("\nEnter a line of text. (To quit, start the line with %c.)\n",
QUIT_LETTER);
c = fgetc(stdin);
if (c == EOF || c == QUIT_LETTER)...