473,382 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

please help meout

i have an program but i don't know how to do it problem is enter a and
z character and digits 0to9 using switch statement then display
morsecode equivalent of character entered

Sep 24 '06 #1
4 1526
posted:
i have an program but i don't know how to do it
Misspellings:

(1) an --a

Missing capital letter:

(1) At beginning of sentence.
(2) First person, "I".

Strange choice of verb: "do".

problem is enter a and
(1) Missing fullstop at end of preceeding sentence.
(2) Missing capital letter at beginning of sentence.
(3) Unintuitive use of punctuation.
z character and digits 0to9 using switch statement then display
morsecode equivalent of character entered
Confused by previous errors, bailing out!

--

Frederick Gotham
Sep 24 '06 #2
n_*******@yahoo.com wrote:
i have an program
Then show it.
but i don't know how to do it problem is enter a and
z character and digits 0to9 using switch statement then display
morsecode equivalent of character entered
We won't write that program for you. Show us what you got, and we can help
you make it work.

Sep 25 '06 #3
<n_*******@yahoo.comwrote:
>i have an program but i don't know how to do it problem is enter a and
z character and digits 0to9 using switch statement then display
morsecode equivalent of character entered
Does this help?

Given the right headers and using directive and that ch is a char and
contains a value suitable for conversion.

switch (ch)
{
case 'a' : cout << ".-\n"; break;
case 'b' : cout << "-...\n"; break;
...
}

It's conceivable that in some situations the \n has to be replaced with
endl. A lot more typing and you have enough typing ahead of you already
without adding that.
------
A less typing intensive solution would be to use a two dimensional array of
char. But your course probably hasn't gotten that far yet.
Sep 25 '06 #4
<n_*******@yahoo.comwrote in message
news:11**********************@k70g2000cwa.googlegr oups.com...
>i have an program but i don't know how to do it problem is enter a and
z character and digits 0to9 using switch statement then display
morsecode equivalent of character entered
Problem is, we don't know if this is homework or not (sounds a lot like
homework).

So, write some code and then show us what you are having problems with. So
far it's sounding more like "can someone write this program for me" and that
is usually not done here (mostly because if we do your homework you don't
learn a thing).
Sep 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Numberwhun | last post by:
Hello everyone! I am trying to learn java and have run into kind of a snag. Here is the code that I have so far: ------ <begin_code> ---------- import javax.swing.*; import...
1
by: HolaGoogle | last post by:
Hi all, Please help me with the following..it's realy urgent and i tried everything i could and i can't get it work properly!! Thanks in advance. Here's what i'm trying to accomplish: in my...
0
by: s_erez | last post by:
Hi, This is a realy tricky one. I have an ASP.NET application where some pages are reading data from a DB and presenting reports. In order for the user to wait while the page is reading data from...
4
by: dave | last post by:
Hi guys I display one page in popup window...that fetches some data from sql and perfom some calculation (tht approx 10 secs) and display result.... I am trying to display "Please wait ..."message...
2
by: rked | last post by:
I get nameSPAN1 is undefined when I place cursor in comments box.. <%@ LANGUAGE="VBScript" %> <% DIM ipAddress ipAddress=Request.Servervariables("REMOTE_HOST") %> <html> <head> <meta...
7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
4
by: pshindle | last post by:
DB2 Team - I just downloaded and unzipped the new Fixpack 9 for DB2 ESE V8 for Windows (FP9_WR21350_ESE.exe). I then burned the unzipped Fixpack files to a CD. I proceded to install this...
1
PEB
by: PEB | last post by:
POSTING GUIDELINES Please follow these guidelines when posting questions Post your question in a relevant forum Do NOT PM questions to individual experts - This is not fair on them and...
2
by: amitpatil | last post by:
Hi, I have 4 web pages which collects data and insert in database. Since couple of days i am getting following errors. ( there r diff kinds of errors i get each time ): They are in sequence as i...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.