I am having trouble creating an inverted half-square out asterisks. The problem requires three nested for-loops, I believe, but am unsure as how to proceed. Here is the work I have so far, with the UN-inverted half-square code in italics. The inverted portion should be a simple manipulation of that ...
friends. I'm trying to write a program that accepts an odd number from 1-9 and outputs the diamond of asterisks as follows user enters 5_ _ _ * _ _ __ _ * * * _ _ _ * * * * * __ _ * * * _ _ _ _ _ * _ _ _I was able to accomplish the problem using nested for loops but I then realized that I needed to ...
If anyone can help me out on this problem I would sure appreciate it.The problem:Your task, should you choose to accept it, is to write a program in Visual Basic.Net that will display a diamond made out of asterisks (*).You must use nested loops to create the diamondYou may only use the following di ...
My friend and i were having a discussion the other day and we were having a heated argument about how to make that dang diamond pattern in C++ code...does anyone remember how to make that thing? like this? ****" alt="****" border="0" /> ...
What is this diamond problem in C++ in multiple inheritance? how does it arise and what is the solution of it? ...
This question is specific to C# not providing multiple inheritance unlike C++ and the need to go about using interfaces to implement multiple inheritance.Its about Multiple Inheritance and how to solve diamond Inheritance problem.To begin with this is what my class design looks like, on a very hig ...
Well we all have seen the common questions on creating squares and hollow squares out of asterisks in C++, but how about creating a program that prints out a circle in asterisks? Obviously this would look like an oval due to line adjustment, but it would be quite interesting to see if someone could ...
Can any one help or give some good advice on where I need to go from a point in my code. I am building an asterisks tree and I managed to get that part done, but there are three thing I need to input to complete the assignment.1. And the line numbers to the asterisks.2. Limit the asterisks tree to o ...
Im trying to write the programme for the following question, and im really struggliing. I will be reaaly thankful if someone can give me some tips or a programme for this.I would also like to point that im new to programming and this website so please give me some details for statements if possible. ...
I am trying to make a function that does the following:A function that prints onto the screen a diamond of ones where the middle of the diamond has as many ones as the number given. The function should not return anything. For example, if the user inputs 7 the output should look something like below ...
i was wondering if anyone could please help me with my c++ assignment due in 3 days. It am only a beginner and don't know how to even start it.The assignment's outline is- write a simple basic program that reads an odd number in the range of 1 to 25 and prints a series of asterisks(*) in a diamond s ...
patter liken=2 ** ** * ** * * ** * ** **pls help me in solve this program ...
Hello, I am just wondering if there is an easy way to do the following in my constructorIOScreen(int row, int col, int width, int height); sets the row, col, width, height attributes of the IOScreen to the corresponding incoming values in the argument list. If an IOScreen is made using this construc ...
this is a solution to a common programming exercise where you have to make a program that makes diamonds using nested for loops. This is only one way you can do it. There are many ither ways to do it#include <stdio.h>int main(){int i,j,k;printf("Select Size \n");scanf("%d", ...
I'm trying to take a friends program, written in C, and translate it to C++. The program is meant to count the number of gray values for red blue and green in a bitmap image and output it to the screen. This is what I have so far. most of whats commented out is his original c code. The only errors I ...
HiI am running 10.04 LTS - the Lucid Lynx since last 6-8 months and just bought a webcameFrontech E-Cam (Diamond)Make JIL -2232 and it is not workingI typed gstreamer-properties in terminal click video try v4l1 and v4l2click the bottom test button for each 1it gave following error Cannot identify de ...
Description: This code simply is a switch case that handles user inputs & checks it against the switch case. If input isn't matched each of the cases, then it goes to default. The only thing is, my switch case can not handle Ctrl+Z & Ctrl+C.If user inserts Ctrl+Z, my code ends up in an infin ...
:rolleyes: have a simple question. my Emachine will not proceed to clean C: drive. it just hangs at 3 bars for ever. it is a 2.167 ghz. athon w/ wxp pro. sp1. 30 gb maxtor diamond max. 7200 rpm hdd. whats the deal? can do a defrag. w/ no issues though. is there another process other than going direc ...
#include <iostream>using std::cout;using std::cin;int Forla_ciz(int);int While_ile_ciz(int);int DoWhile_ile_ciz(int);void main(){int genislik,no;while ( (genislik<1) || (genislik>22) ) {cout<<"0 ile 22 arasında bir genişlik girin:"; cin>>genislik;}while ((no<1) ...
My name is Stephanie I am new to the forum I have been just reading, this is my first time actually participating in one of the threads. I must say that I have learned a great deal from this site, I have been able to fix minor problem that I have had with my application in my C# homework and I thank ...
all, I'm new to linux and am trying to get my Diamond MX300 sound card to work. I have downloaded and uncompressed the file au88xx-1.1.2.tar.bz2.When I try to install the drivers I get the following error:[root@localhost aureal]# make installcc -D__KERNEL__ -DMODULE -DAU8830 -mpentium -O6 -fomit-fra ...
i start learning c++ and still at basics and was trying to solve a exercise in second chapter. this exercise asked to print a square using asterisks. i am able to create a asterisks solid square and colde is as follows. # include<iostream>using namespace std;int main(){int row;int col;int size ...
Hi, im confuse making this program,.. i need a little help from expert here in dream in code so i decided to post it in here,..Write a program that uses for statements to print the following patterns separately, one below the other. Use for loops to generate the patterns. All asterisks (*) should be ...
Hello, Im taking C in school, and i have a problem with my code, nothing happens at all when i run the program.The task is:A program is required that prompts the user for a number. The program will then print a series of asterisks to represent the number. If the user enters a number less than 1, the ...
I'm trying to implement a program in C to read and display data from a text file, assign certain values to pre-defined variables and continue reading in the data.And example format of the data file is:---------------------------------------------------------------------------------------------*** Ge ...
I have a program for my c++ program in which I have to open a text file and count the number of lines, characters, sentences and words. so far I have been able to do must of the work but I dont know how to make my counter count the words. I know it has something to do with spaces, or counting spaces ...
Okay friends this is actually my school work.My teacher asked me to make a diamond asteriks.I just try and with my code #include<iostream>using namespace std;int main(){char b='*';for(int i=10;i>0;i--){for(int j=0;j<i;j++){cout<<" ";}for(int c=10;c>i;c--){cout<<b ...
I need help writing this program and it has to have user input. It has to be C++ language1) Write a program that displays the following diamond shape. You may use output statements that display either a single asterisk (*) or a single blank. Maximize your use of repetition (with ‘nested repetition ...
I have problems when I try to generate code for an aggregation relationship with ANSI C++.When I declare aggregation by value (containment), which is a full diamond in UML, code generated is an object containment ( My_class obj;). This work just fine.But when I declare an aggregation by reference, w ...
i am Nishank and have got a project -to make periodic table by using the followinga. Data Structureb. Object Oriented Programming in C++c. Data File Handlingthrough the program the user should be able to:a.view the periodic tableb.edit the periodic tablec.delete a recordd.quitcan anyone help me with ...
I am new to C++ and have a problem in a class I am taking.I am having trouble trying to create this the way my professor wants. this is what is required from the program:Write a complete program that prints out a “tree” of asterisks with the number of lines specified by the user. The following o ...
Ok my project is to make several shapes that are all controlled by the user as far as what size and character is used I have the parallelogram, rectangle, triangles and the even diamond. But I cant get the odd diamond. I can only use the libraries that are in the code no arrays just selection, seque ...
guys i've been stuck by this program for a while...Although you might find it easy,, but i'm still a beginner on c++ so please pleasehelp me on this program.. Write a program that will display a pattern depending on the value of n entered by the user. ex. if n = 3, display********* (diamond shaped)w ...
I got this program that supposed to display a diamond but I only got the top part of diamond to work. As for bottom part I am not sure what calculation I could use. Any hint would be appreciated! ThanksThis is the part://Bottom Partfor ( row = 1; row <= num/2+1; row++ )This is the actual code:pub ...
I am attempting to create a simple console maze generator in C++ for a school project. I've already gotten most of it down but I'm having a problem debugging the actual generation algorithm I've implemented. I've been learning C++ for the past few months now but I haven't ventured into the STL very ...
there, I have been given this question to complete but I can't seem to get my code working properly. I'm very new to C# so sorry if i come across as stupid! Here is the question... Create a class that represents the grade distribution for a given course. In this class you should write methods to per ...
Hi...I'm still new to C++ programming and I was wondering if anyone could help me compose a loop using the WHILE () loop function. The output should be a diamond composed of the character and extending the width specified by the integer. This is all I've come up so far:using namespace std;void main( ...
all, I'm somewhat of a novice programmer taking a C++ course in college. I'm having some trouble writing a program (probably because I rarely attend class and my textbook is awful). The program I need to write reads from a separate text file that follows the format following:1000 4.01010 3.21000 2.2 ...
i have spent alot of time trying to figure this out but im stuck. anything i change from here on gives me 29+ errors. what the program is supposed to do is ask the user to put in a playing card abbreviation (example, KH = king of hearts) KH and the program puts out KING OF HEARTS. i know this can be ...
I have a problem making a simple program..."Write a functional decomposition and a C++ program that inputs an integer and a character. The output should be a diamond composed of the character and extending the width specified by the integer. For example, if the integer is 7 and the character is ...
Write a C++ program that inputs a dollar amount to be printed on a check and : 1. Calls a function to print the amount in check-protected format with leading asterisks if necessary. [ For example amount 1230.60 should be written as **1,230.63 ] Assume that eleven spaces are available for printing an ...
what is death of diamond in c++,can i get an example pl,I am not CLEAR with other resources,thx in advance. ...
what is Diamond Death problem in C++. ...
all, I'm a newbie on this board, and semi-newbie to C++. I've asked around and done some homework but I can't find anywhere that explains how to display asterisks (*) when text is entered. Is there some way to stop keyboard input being echoed to the screen and replace it with asterisks? Or, just to ...
Hi, after a small amount of investigation I have finally got the HTC Diamond working as a Rndis modem over the USB port.What this means is that you can use the Internet connection sharing function of the Diamond to get a computer onto the Internet using the H or G phone data connection.Please note t ...
Microgold still has a few promotional C# tools left. WithClass 2000 reverse engineers C# into class diagrams which you can capture in gifs or jpegs. It also draws all other UML diagrams, generates C# code and writes reports. You can get this special offer at http://www.c-sharpcorner.com C# Corner al ...
I'm working on a school assignment and I'm having a hell of a time figuring out how to show some phrase with the letters converted into asterisks. Here's an example:I am going to the store -> should be -> * ** ***** ** *** *****It should preserve the whitespace. A little back story:It's suppos ...
I just started learning Java and my teacher assigned us this program to write:Write a program which will display a diamond figure of a specified size. Ask the user for a number which determines the size of the diamond. Keep prompting until the user types an odd, positive value. Then display a diamon ...
I am having the following error when I compile a pro c program. Any hints will be appreciated ---diamond:/home/rechever$ make -f $BANNER_HOME/general/c/sctproc.mk rzrload CHECKOPT='sqlcheck=full userid=baninst21/xxxxx'proc iname=rzrload.pc ireclen=132 oreclen=132 lines=y select_error=no hold_cursor= ...
I guess I now need to replace the middle segment of what is retrieved with asterisks.So, the string in the middle '99999988' should be replaced with '********'. I am basically trying to mask the middle sement string. The length of the original string is not known but the first segment is 6 character ...