|
|
Регистрация Восстановить пароль |
Повторная активизация e-mail |
Регистрация | Задать вопрос |
Заплачу за решение |
Новые сообщения |
Сообщения за день |
Расширенный поиск |
Правила |
Всё прочитано |
|
Опции темы | Поиск в этой теме |
21.01.2017, 07:50 | #1 |
Новичок
Джуниор
Регистрация: 21.01.2017
Сообщений: 1
|
declaring variables in C# help!!!
Description:
Part 1: For each of the following, declare a variable using the best choice for data type. Make sure that your variables have meaningful names and obey the guidelines. a counter for the number of correct responses in the exam the amount of money you owe on student loan the name of your hometown the perecentage grade you hope to obtain on the next exam the letter grade you hope is recorded at the end of the term for this course Part 2: For each of the variables declarations above, write an appropriate initialization: counter for the number of correct responses is 5 amount of money you owe on a credit card is 1000.45 name of the hometown or the city where your school is located grade on the next exam is 100 grade to be recorded at the end of the term for this course is an A Part 3: Write console output statements to display the values stored in the variables declared above. The values should be inserted in the middle of comments indicating the type of value as described above. Use concatenation with the + operator Part 4: Show the output for each of the following data types: int, float, double, and decimal with no digits, two digits, and five digits to the right of the decimal, plus formatted with currency. You will probably want to declare both an integral and floating-point variable to use for your display. Initialize each variable with an appropriate test value. Print one data type per line. |
21.01.2017, 09:12 | #2 |
Старожил
Регистрация: 12.01.2011
Сообщений: 19,500
|
What's the problem? Have you tried reading the first chapter in any C# book for beginners?
It is not the right place to dump your homework and expect someone to do it for you. And even if someone does, it probably will not help you in learning programming.
Ушел с форума, https://www.programmersforum.rocks, alex.pantec@gmail.com, https://github.com/AlexP11223
ЛС отключены Аларом. |
Похожие темы | ||||
Тема | Автор | Раздел | Ответов | Последнее сообщение |
Eurekalog Bug Reports Location + Variables | zakaso | Компоненты Delphi | 4 | 12.10.2016 15:11 |
variables | stck | JavaScript, Ajax | 0 | 17.12.2010 04:16 |