Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
expand_more
expand_more
format_list_bulleted
Textbook Question
Chapter 2, Problem 7E
Write a C#
Expert Solution & Answer
Trending nowThis is a popular solution!
Students have asked these similar questions
Write a C# program named ProjectRaises that includes a named constant representing next years anticipated 4 percent raise for each employee in a company. Also declare variables to represent the current salaries for the three employees. Assign values to the variables, and display with explanatory text, next year’s salary for each employee.
Write a C# program named ProjectedRaises that includes a named constant representing next year’s anticipated 4 percent raise for each employee in a company.
Also declare variables to represent the current salaries for three employees. Assign values to the variables, and display, with explanatory text, next year’s salary for each employee.
Note: For final submission assign the following current salaries for the employees: 25000 for employee 1, 38000 for employee 2, 51000 for employee 3.
Then next year's salary for employee 1 would be displayed as: Next year's salary for the first employee will be $26,000.00
In order to prepend the $ to currency values, the program will need to use the CultureInfo.GetCultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: WriteLine("This is an example: {0}", value.ToString("C", CultureInfo.GetCultureInfo("en-US")));
Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers admission in Computer Science as choice 1, Software Engineering as choice 2, Computer Engineering as choice 3, Business management as choice 4, Pharmacy as choice 5.
The program takes integer input as choice number. And their percentage in float.
On the basis of their choice decide whether a student is eligible for this department or not.
If eligible display message “Your admission is confirmed”. Else display message “change your field”.
Selection criteria
>=85 Computer Engineering
Less than 85 and greater and equals to 82 Computer Science
Less than 82 and greater and equals to 79 Software Engineering
Less than 86 and greater and equals to 76 Business management
Less than 88 and greater and equals to 70 Pharmacy
Chapter 2 Solutions
Microsoft Visual C#
Ch. 2 - Prob. 1RQCh. 2 - Prob. 2RQCh. 2 - Prob. 3RQCh. 2 - Assume that you have two variables declared as int...Ch. 2 - Assume that you have a variable declared as...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...Ch. 2 - Prob. 8RQCh. 2 - Assume that you have a variable declared as int...Ch. 2 - Assume that you have a variable declared as int...
Ch. 2 - Prob. 11RQCh. 2 - Which of the following is not a C# comparison...Ch. 2 - Prob. 13RQCh. 2 - Which of the following C# types cannot contain...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - Assume that you have declared a variable as double...Ch. 2 - When you perform arithmetic operations with...Ch. 2 - Prob. 18RQCh. 2 - Prob. 19RQCh. 2 - Which of the following compares two string...Ch. 2 - What is the numeric value of each of the following...Ch. 2 - What is the value of each of the following Boolean...Ch. 2 - Choose the best data type for each of the...Ch. 2 - In this chapter, you learned that although a...Ch. 2 - Write a C# program named InchesTOCentmeters that...Ch. 2 - Prob. 6ECh. 2 - Write a C# program named ProjectedRaises that...Ch. 2 - Convert the ProjectedRaises class to an...Ch. 2 - Malcolm Movers charges a base rate of $200 per...Ch. 2 - Prob. 10ECh. 2 - Write a program named Eggs that declares four...Ch. 2 - Modify the Eggs program to create a new one named...Ch. 2 - Write a program named MakeChange that calculates...Ch. 2 - Write a program named Testslnteractive that...Ch. 2 - Write a program named FahrenheitToCelsius that...Ch. 2 - Prob. 16ECh. 2 - Prob. 17ECh. 2 - Pig Latin is a nonsense language. To create a word...Ch. 2 - Each of the following files in the Chapter.02...Ch. 2 - In Chapter 1, you created two programs to display...Ch. 2 - Prob. 2CP
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Write a C# program named InchesTOCentmeters that declares a named constant that holds the number of centimeters in an inch: 2.54. Also declare a variable to represent a measurement in inches, and assign a value. Display the measurement in both inches and centimeters—for example, 3 inches is 7.62 centimeters.arrow_forwardWrite a program named Eggs that declares four variables to hold the number of eggs produced in a month by each of four chickens, and assign a value to each variable. Sum the eggs, then display the total in dozens and eggs. For example, a total of 127 eggs is 10 dozen and 7 eggs.arrow_forwardWrite a C# program named InchesToCentimeters that declares a named constant that holds the number of centimeters in an inch: 2.54. Also declare a variable to represent a measurement in inches, and assign a value. Display the measurement in both inches and centimeters—for example, if inches is set to 3, the output should be: 3 inches is 7.62 centimeters. Note: For final submission, set the number of inches equal to 3.arrow_forward
- Write a program that declares a variable that represents minutes worked on job and assign a value. Display the value in hours and minutesarrow_forwardWrite a C++ program that permits users to enter the following information about your small company's 10 employees and then writes the information to a file: ID No. Sex (M/F) Hourly Wage Years with the Companyarrow_forwardThe programming language is C++, write a program base on the given statement. Write a program that examines the value of a variable called TEMP.Then display the following messages, depending on the valueassigned to TEMP. TEMPERATURE MESSAGE Less than 0 ICEBetween 0 and 100 WATERExceeds 100 STEAMarrow_forward
- Create a program that will ask the user the type a year and display the Chinese Zodiac animal forthe entered year.The program should: Ask the user to enter a year and save the entered year in a variable as an integer. The yearas to be between 1936 and 2050. If the user entered a year that is not within the range, theprogram will display an invalid message as:is an invalid year On the other hand, if the year is between 1936 and 2050, then the program will use thefollowing formula to find the remainder of the year:(year-1936)%12Using the formula above, it should provide you 12 different remainders. After it, use the following table to display the message according to the remainder:Remainder Message0 Year ______ is the year of Rat1 Year ______ is the year of Ox2 Year ______ is the year of Tiger3 Year ______ is the year of Rabbit4 Year ______ is the year of Dragon5 Year ______ is the year of Snake6 Year ______ is the year of Horse7 Year ______ is the year of Goat8 Year ______ is the…arrow_forwardCreate a variable called c, assign a +b to it, and display the result. Assume a is initialized with value of 5 and b with value of 10.arrow_forwardsuppose that age is an int variable, char variable, and name is a string variable. What are the calues of age,ch and name after the following statement executes: cin>> age; cin>>ch; getline (ch,name); if the input is: 39 Dimitrios Selloumtos A. Age=39, ch=D, name + Imitrios Sellountos b. Age = 39, ch= Ditmitrios, name= Sellountos c. none of the abovearrow_forward
- A customer in a supermarket is purchasing four different items. The items and the exact quantities purchased are listed below: Item Quantity Candy 2 Apple 10 Cookies 3 Hot-Dog 5 Write a c++ program that stores the quantities of the four purchased items in four variables. Using the cout object, print the information about the quantities of each item purchased.arrow_forwardCreate a programming flowchart that requires computing the grade ofa student through getting the average of the 5 exams. Then, if the student grade reaches the following grade range, corresponding remarks will be displayed: • 95% and above – Excellent• 90% - 94% - Very Satisfactory• 85% - 89% - Satisfactory• 80% - 84% - Low Satisfactory• 75% - 79% - Fair• Below 75% - Failedarrow_forwardWrite a program that calculates the future value of an investment at a given interest rate for a specified number of years. The formula for the calculation is as follows:futureValue = investmentAmount * (1 + monthlyInterestRate)years * 12 Use text fields for users to enter the investment amount, years, and interest rate. Display the future amount in a text field when the user clicks the Calculate button, as shown in Figure 9.22b.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Algebraic Expressions – Algebra Basics; Author: TabletClass Math;https://www.youtube.com/watch?v=U-7nq7OG18s;License: Standard YouTube License, CC-BY
Python Tutorial for Beginners 3 - Basic Math, Mathematical Operators and Python Expressions; Author: ProgrammingKnowledge;https://www.youtube.com/watch?v=Os4gZUI1ZlM;License: Standard Youtube License