please can u help me out in the following patterns
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
ABCDEFEDCBA
PATTERN 2:
4 4 4 4
3 3 3
2 2
1
2 2
3 3 3
4 4 4 4
PATTERN 3:
PASCAL'S TRIANGLE..
THIS IS URGENT PLZZZZ HELP ME OUT ALLL HAV 2 BE DONE USING LOOPS NO ARAYS AND USE ONLY INT,DOUBLE,CHAR ,PLZZZZZZZ
7 6166 JosAH 11,448
Recognized Expert MVP
please can u help me out in the following patterns
A
ABA
ABCBA
ABCDCBA
ABCDEDCBA
ABCDEFEDCBA
PATTERN 2:
4 4 4 4
3 3 3
2 2
1
2 2
3 3 3
4 4 4 4
PATTERN 3:
PASCAL'S TRIANGLE..
THIS IS URGENT PLZZZZ HELP ME OUT ALLL HAV 2 BE DONE USING LOOPS
So you expect me or someone else to give you the working code which you are
going to hand in (that's cheating) and you hope to pass your exam this way?
Imagine that you get a programming job somewhere; I pity your future colleagues
then because they have to help you out all the time because you cheated in the
past and are not capable to do any programming work at all. (that's fraud).
You give it a try first and when you're stuck we might help you out but we don't
do your homework for you.
kind regards,
Jos
ps. I visit Sun's Java developer forums as well and they don't like cheaters there
either. They're more nasty though: they try to track down your school and inform
your teacher about your cheating attempts.
These codes hav been tried many times but i fail to understand...pl zzz help
These codes hav been tried many times but i fail to understand...pl zzz help
If you've tried them many times before, then post one of your attempts so someone can advise you.
Isn't it nice that a forum exists where people actually enjoy helping you with your homework?
Don't expect anyone to volunteer to do your work for you, though. You won't learn anything that way.
Hope this helps.
sicarie 4,677
Recognized Expert Moderator Specialist
These codes hav been tried many times but i fail to understand...pl zzz help
Have you read the Posting Guidelines? I think you might find them illuminating and incredibly helpful.
Have you read the Posting Guidelines? I think you might find them illuminating and incredibly helpful.
Ah, now sicarie. This is one of those times when you don't want to point someone to the posting guidelines.
JosAH 11,448
Recognized Expert MVP
Ah, now sicarie. This is one of those times when you don't want to point someone to the posting guidelines.
<high squeaky voice>
Take him to the attic!
</high squeaky voice>
kind regards,
Jos ;-)
<code snipped>
This is the code for
A
ABA
ABCBA
ABCDCBA
.....
Please don't spoonfeed the OP; we don't do boilerplate homework code here,
it doesn't help anyone at all.
kind regards,
Jos
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Abby Lee |
last post by:
I ask the user to enter a time in the formatio 12:30 PM. onChange I
send the string to this function. I'm using alert boxes to test
it...and am always getting the "Does not work" alert box. What am I
doing wrong?
function checkTime(pattern){
if(pattern.value.match(/ + : + + + /)) {
alert ("works")
}
else alert(pattern.value + "Does not work")
|
by: Tony Johansson |
last post by:
Hello Experts!
I'm reading about design patter in the GAMMA book and there is something
that I don't understand.
That's why I ask you.
It says "Pluggable adpters. A class is more reusable when minimize the
assumption other classes must make to use it. By building interface
adaptation into a class, you eliminate the assumption that other classes see
the same interface. Put another way, interface adaptation lets us
incorporate our class...
|
by: Jim Lewis |
last post by:
Anyone have experience with string pattern matching?
I need a fast way to match variables to strings. Example:
string - variables
============
abcaaab - xyz
abca - xy
eeabcac - vxw
x matches abc
|
by: Jordan Richard |
last post by:
I'm designing a new .NET 2.0 Windows Forms application to support users who,
amongst other things, need to print letters and envelopes. They currently do
such printing by manually managing a collection of MS Word documents. They
want for the new Windows Forms application to provide the capability to
and envelopes.
I'm wondering what would be a smart way to provide this capability. I don't
want to re-invent MS Word, so perhaps I could...
|
by: orel |
last post by:
Please,
As i tried hundreds different implementation to make it work and actually didn't succeed, can someone here help me to understand and use the implementation of the Object Factory design pattern. I'm using gcc 3.4.2 on Mingw.
The factory is the same as the one in Modern C++ design (without error checking) ,
like this :
| |
by: orel |
last post by:
<o_r_l_25@yahoo.frwrote,
As the message says, to help the compiler with template parsing,
I add 'typename' as you said, it now understands the expression, but but i have now those complier errors :
src\core\objectfactory.cpp:41: instantiated from here
src\include\objectfactory.h:125: error: no matching function for call to `std::pair<const int, Shape*>::pair(const int&, Shape**(*&)())'
\c++\3.4.2\bits\stl_pair.h:69: note:...
|
by: keirnna |
last post by:
I am trying to display only the line that ends with a . or , or ? that has the in the line that ended with .|,|?
So here is my pattern-matching operator:
m/the/ .. /(\.|\?|\,)$/im
I am not sure if that is the correct pattern to look for, but if it is how do I extract just what matches that?
For example if I had
|
by: xhani |
last post by:
Hi , can anyone help me about writing a given sentence in Floyd's triangle .
e.g ,
printf("Write a sentence:\n");
sentence=getchar(); ( I should not use arrays , functions,pointers)
and as a sentence this one is given , e.g. helloworld!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |