473,326 Members | 2,655 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,326 software developers and data experts.

Is this solution correct?

1
When you have a question that is:
• Calculate a_y where a_y = -9.8m/s^2

Is the code:
Console.WriteLine("Calculate a_y"); // a_y = 9.8m/s^2?

Or is that totally off?
Feb 3 '10 #1
4 1213
ThatThatGuy
449 Expert 256MB
Maybe but what are you trying to say
Feb 3 '10 #3
tlhintoq
3,525 Expert 2GB
When you have a question that is:
• Calculate a_y where a_y = -9.8m/s^2

Is the code:
Console.WriteLine("Calculate a_y"); // a_y = 9.8m/s^2?

Or is that totally off?
The only thing you are going to write is a string consisting of what you put between the quotes.

It would have taken less time to just run the line than to post the question.
Never be afraid of experimenting. Trial and error is the best way to learn.
Feb 3 '10 #4
Curtis Rutland
3,256 Expert 2GB
Ok, just in case you are completely new to C-style programming...
The characters "//" begin what is called a comment, more specifically an inline comment. Everything from the // all the way to the end of the line is completely ignored by the compiler. It's a way for you to make notes in your code.

As to the question, I must say it makes no sense.
• Calculate a_y where a_y = -9.8m/s^2
How can you "calculate" something that's just a definition? This is like saying "calculate A where A = 1". I think there is something missing here.
Feb 3 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

117
by: Peter Olcott | last post by:
www.halting-problem.com
14
by: alwayshouston | last post by:
Hi All! I am working on this very small database and I am confused in the designing a simple form. I only have three tables in the database. First Table: tblExpense Columns: ExpenseID ;...
1
by: Amos | last post by:
My Solution has three different projects: GUI, Api, Match. Project GUI includes a reference to Match.dll and Project Match includes a reference to Api.dll . Project Api doesn't include any...
0
by: Boniek | last post by:
Solution is CurrencyManager in Form.BindingContext. This collection has a list of CurrencyManager (manager of binded controls to the same source). One of them is CurrencyManager which has a...
5
by: gerry | last post by:
single machine - W2Kserver , IIS5 , VS.NET 2003 I spent some time struggling with what looked like the dreaded asp.net debugging configuration problem but none of the solutions for this did any...
2
by: mkd1919 | last post by:
I'm developing a web service that will eventually be sent to other like organizations to communicate for a particular application. After a few weeks, I decided it would be better to split of the...
8
by: Mike S | last post by:
Hi all, I noticed a very slight logic error in the solution to K&R Exercise 1-22 on the the CLC-Wiki, located at http://www.clc-wiki.net/wiki/KR2_Exercise_1-22 The exercise reads as...
8
by: Pawel | last post by:
Hallo group members. //p1.cpp #include <stdio.h> #include <linux/stddef.h> struct Person { int m_age; char* m_name; };
3
by: Manikandan | last post by:
Hi, I'm copying projects from a solution in the vss. In my local system i created solution ,added that project(make modification related to solution) When i added this solution to vss, projects...
16
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.