- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
24 Posted Topics
I want to figure out how this loop sequence how would the computer execute this loop by going through all the steps in the picture attached. | |
prompt: need the user to input 1st and last values for the table. DIsplay in a column in the table starting with 1st base value that was inputted. Last column has to the ending base value that was entered. I need to make 15 rows of computations. First row should … | |
total += nValue; so would that mean that whatever the total is it will be added towards nValue, or is something being incremented? Thanks | |
Ok So Im writing a app which would pick the 'cheapest' plan for a consumer. While writing this I came across something puzzling to me. Why is it starting after the default constructor, the first CellPlan has three arguments passed too it and then the next one two and then … | |
Ok So I have to create a Date Class that will allow me to return the current day with data members of month , day, and year this is what I have for from my Main() class: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DateApp2 { class DateApp … | |
Hello all, im doing this problem which will allow a store to return a invoice, I have two classes and I guess I am at the very end and need help fixing some things so I can finally have the program execute: Class1: "Invoice": [CODE]using System; using System.Collections.Generic; using System.Linq; … | |
So I have a placeholder question in the code that i am reviewing [CODE] { Console.Clear(); Console.WriteLine("{0,24}", "Calories Burned"); Console.WriteLine("\n{0,15}:{1,8:f1} hours", "Hours", hours); Console.WriteLine("{0,15}:{1,8:f1} minutes", "Minutes", minutes); Console.WriteLine("{0,6}:{1,8:f1} calories burned", "Calories Burned", CaloriesBurned); Console.ReadKey(); }[/CODE] I know the first half of the following code "{0,15}" , 0 is placeholder and … | |
Ok I think im getting better at these but not quite still have these implicit convert from int to string problems and the usual "does not exist in the current context" dilemma. [CODE]/* * */ using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Calories { class Calories { static … | |
Ok so this time before I wrote this program I did more reading and practicing and reading examples of code with method statements and class examples. When I finished this program Im still getting a lot of errors...any help? [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Problem10Pg179 { … | |
Getting some errors at least this time I know why..seems like I am not declaring the methods inside my classes I tried rearranging the method and then inserting all my code into a class but Im still getting all those errors in the bottom. If you guys can tell me … | |
Ok so while reviewing this code which is meant to convert yards, and feet to inches I found on lines 17-19 , and 32. There are "string data" (if that makes sense) as parameters in each method? What do they denote, serve , and their purpose? MSDN usually has convoluted … | |
Ok so after modeling after another application Im modifying a previous console app which converts Celsius[CODE][/CODE] temp (with user input) to Fahrenheit. Visual Studio has annoying habits to give errors on variables that "haven't been declared yet". Im looking at this and wondering why the heck is it complaining. I … | |
Ok so while working on this I want to figure out at about line 23 for "hours" I understand the argument "NUMBER_OF_SECONDS_IN_AN_HOUR" but not "totalSeconds" is totalseconds the value coming from : "totalSeconds= GetNumberOfSeconds();" ? Which is the input received by the user? For lines 25-29 , how does totalSeconds … | |
Alright So I want to know when looking at the code below: every so often with each method argument there is an "identifier" starting with the first one: "Inside() , Show(), Outside(), Display() " I know the names can be made up literally but what do the parenthesis signify ? … | |
ok so I am practicing with a basic carpet calculator , but when I came midway into it I noticed the " (double) " data types , I know its used to shift a value's decimal places two places but in this case it is acting the same way how … | |
So Im writing this basic payroll tax program as an assignment , I have everything good this time except for one thing, with the multiple identifiers I have assigned to the data types when I go to write them to the output how do I tell the compiler to write … | |
So I was looking at this problem , and in monodevelop (and Visual Studio). But for somereason I keep getting unreachable code or error in Visual Studio, I retyped and relooked over my code but I cant seem to find what the mistake is that I can run my code. … | |
ok so here is my code so far: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace PracticeReview { class Program { static void Main(string[] args) { const double TAX_RATE = 0.0675; const int SPEED = 80; const char HIGHEST_GRADE = 'A'; Console.Read(); TAX_RATE = 0.0675; SPEED = 80; HIGHEST_GRADE … | |
Hi, I wanted to know what does the ("{0}, {1}" signify in : [CODE]Console.WriteLine("{0}, {1}", mixedCase, lower);[/CODE] Couldn't find it on google at all. Thanks for everything! | |
Alright back with the same but different example problem but this time I think it requires some "formating" and knowledge of "escape characters". As a novice programmer this is the caliber of trouble I am going through lol. Does this need knowledge of escape characters as well ? ("\t") would … | |
Ok so here is the problem... this is my code: [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DesignOutput { class Assignment { static void Main() { Console.WriteLine("CCCCCCCCCC"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CC\t\t##############"); Console.WriteLine("CC\t\t##\t##"); Console.WriteLine("CCCCCCCCCC"); Console.ReadKey(); } } } [/CODE] Im trying to match this: [CODE]CCCCCCCCCCC CC ## ## CC … | |
[CODE]// This is traditionally the first program written using System; namespace HelloWorldProgram { class HelloWorld { static void Main() { Console.WriteLine("Hello World!"); } } }[/CODE] I dont get why the statements in the body end with a " ; " but nothing is placed at the end of method headings. … | |
Hi I wanted to ask what is the relationship between "system" , "console" and "read" so far I found out that console is a "class" in the system name-space. | |
Hi Im a beginner in programming C# while watching this tutorial on C# (writing a console application) the guy skipped over a couple segments in between parts of code. Where he was doing "if" statements of " if (input3 == "n" (vertical lines here) input3 == "n"). Im wondering how … |
The End.