Comment down
for any queries
Please give a thumbs up if you are satisfied with the
answer
#include <iostream>
#include<cmath>
#include<cstring>
using namespace std;
int main()
{
int rows;
cout << "\n Printitng patteren of Diamond:\n";
cout <<
"############################################\n";
cout << " Enter the number of Rows(Half): ";
cin >> rows;
for(int i=0;i<rows;i++)
{
for(int j=1;j<=rows-i;j++)
cout<<" ";
cout<<"*";
for(int j=1;j<=2*i-1;j++)
cout<<" ";
if(i!=0)
cout<<"*";
cout<<endl;
}
for(int i=rows-1;i>=0;i--)
{
for(int j=1;j<=rows-i;j++)
cout<<" ";
cout<<"*";
for(int j=1;j<=2*i-1;j++)
cout<<" ";
if(i!=0)
cout<<"*";
cout<<endl;;
}
}
Comment down
for any queries
Please give a thumbs up if you are satisfied with the
answer

Can someone please code this problem in c++? Problem 1 You are to write a C++...
Practice Problem [no points]: You should read and understand Fibonacci algorithm, write a code in a high level language of your choice and in Assembly to find a Fibonacci number and check your result. At the end of this assignment a possible solution to this problem is given both in Python and MIPS assembler. Note that it would have been possible to write the Python differently to achieve the same function. . [20 points] Write and debug a MIPS program...
I need only one C++ function . It's C++ don't
write any other language.
Hello I need unzip function here is my zip function
below. So I need the opposite function unzip.
Instructions:
The next tools you will build come in a pair, because
one (zip) is a file compression tool, and
the other (unzip) is a file decompression
tool.
The type of compression used here is a simple form of
compression called run-length encoding (RLE). RLE is quite simple:
when...
CAN SOMEONE PLEASE HELP ME WRITE THIS CODE IN C++, PLEASE HAVE
COMMENTS IN THE CODE IF POSSIBLE!!
General Description: Write a program that allows the user to enter data on their friends list. The list holds a maximum of 10 friends, but may have fewer. Each friend has a name, phone number, and email address. The program first asks the user to enter the number of friends (1-10). You are not required to validate the entry, but you may...
PLEASE DO THIS IN PYTHON!!!!!!!! 1.) For each lab program you develop, make sure to include the following header - replace the dots with your section #, semester, your full name, your instructor’s name, and lab #: Class: CSE 1321L Section: ... Term: ... Instructor: ... Name: ... Lab#: ... Make sure to put the correct comment character(s) before the above lines in each file. C# & Java use // for comments, Python uses a # Exercise #1:...
Write a C++ program for the instructions below. Please
read the instructions carefully and make sure they are followed
correctly.
and please put comment with code!
Problem:2 1. Class Student Create a "Hello C++! I love CS52" Program 10 points Create a program that simply outputs the text Hello C++!I love CS52" when you run it. This can be done by using cout object in the main function. 2. Create a Class and an Object In the same file as...
guys can you please help me to to write a pseudo code for this
program and write the code of the program in visual studio
in.cpp.
compile the program and run and take screenshot of the output
and upload it. please help is really appreciated.
UTF-8"CPP Instruction SU2019 LA X 119SU-COSC-1436- C Get Homework Help With Che X Facebook -1.amazonaws.com/blackboard.learn.xythos.prod/584b1d8497c84/98796290? response-content-dis 100% School of Engineering and Technology COSC1436-LAB1 Note: in the instruction of the lab change "yourLastName" to your last...
I need this done in C++ Can someone help me get my code from crashing. The code compiles but it can be easily crashed with user input. The rubric and code below Instructions: Write a program that scores the following data about a soccer player in a structure: Player’s Name Player’s Number Points Scored by Player The program should keep an array of 12 of these structures. Each element is for a different player on a...
Please use C programming to write the code to solve the following problem. Also, please use the instructions, functions, syntax and any other required part of the problem. Thanks in advance. Use these functions below especially: void inputStringFromUser(char *prompt, char *s, int arraySize); void songNameDuplicate(char *songName); void songNameFound(char *songName); void songNameNotFound(char *songName); void songNameDeleted(char *songName); void artistFound(char *artist); void artistNotFound(char *artist); void printMusicLibraryEmpty(void); void printMusicLibraryTitle(void); const int MAX_LENGTH = 1024; You will write a program that maintains information about your...
WRITE A CODE IN C++
A CLASS WITH MEMBER FUCNTIONS THAT COUNTS THE LINES OF CODE OF
C++ FILE OR TEXT FILE .COMMENTS SHOULD NOT BE COUNTED AND SPACE
BETWEEN LINES OF CODE SHOULD BE IGNORED AS WELL. ASK FOR INPUT FROM
THE USER IT CAN BE CPP FILE OR TEXT FILE
Assignment:Write a program to count lines of code according to your LOC Counting Standard. Notes: -Your program should accept as input the name of a file that contains...
Develop a functional flowchart and then write a C++ program to
solve the following problem.
1. Create a text file named c1.txt and write your brand of
computer (like Dell, HP, etc) in the file. You will be reading the
name of the file from the keyboard as a string, using the string
class. Your program will also read the brand of your computer from
the keyboard. The process of the file creation (name of the file,
mode for opening...