Starting Out With Visual C# (5th Edition)
5th Edition
ISBN: 9780135183519
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 2, Problem 9MC
Program Description Answer
In
Hence, the correct answer is option “C”.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
I having troubles running this C linux program.
please use my code to fix any errors that need to be removed or added.If it needs sin() cos() tan() - Please adddisplayTriTab • Receive an integer called degrees that represents the number of degree for incrementation and return nothing. • Display the heading “--- TRIGONOMETRIC TABLE ---” center over the table •A blank line • Display the column headings as sown on the output. • A blank line. • Produce a table based from 0 to 360 degrees in increments based on the users input. • The table columns will be as follows: 1. Degrees ( Format: Right justified, no decimal places) 2. The radian value for the number of degrees in column 1 3. The sine value for the degrees in column 4. The cosine value for the degrees in column 5. The tangent value for the degrees in column 6. Tangent values for 90 and 270 will be infinity • The 360 degrees row will always be the last row even if the increment value entered would not
[Bold] the code I do not…
Which of the following is NOT an example of instantiating an object.a.Keyboard k;
k = new Keyboard( );
b.InputFile infile = new InputFile( fn );
c.String s = “abcd”;.
d.int x = 100;
Here is the code for the questions below
pic = makeEmptyPicture(100,100)
pixy = getPixel(pic, 70, 30)
setColor(pixy, blue)
pixie = pixy
setColor(pixie, red)
1.What is the meaning of the instruction pixie = pixy in the code above? which one of this is the answer
a. Make the pixie variable refer to the same pixel object that pixy already refers to
b. Make a copy of the pixel object referred to by pixie, and store it in the variable pixy
c. Make the pixy variable refer to the same pixel object that pixie already refers to
d. Make a copy of the pixel object referred to by pixy, and store it in the variable pixie
2. What color is pixel pixy when this code finishes running?
a. cannot be determined from the information provided
b. magenta
c. blue
d. red
3. What color is pixel pixie when this code finishes running?
a. blue
b. red
c. magenta
d. cannot be determined from the information provided
Chapter 2 Solutions
Starting Out With Visual C# (5th Edition)
Ch. 2.1 - Prob. 2.1CPCh. 2.1 - Prob. 2.2CPCh. 2.1 - What is the purpose of an objects sizing handles?Ch. 2.1 - What must each form and control in an applications...Ch. 2.1 - Prob. 2.5CPCh. 2.1 - Prob. 2.6CPCh. 2.1 - Prob. 2.7CPCh. 2.1 - What does a forms Text property determine?Ch. 2.1 - Prob. 2.9CPCh. 2.1 - Prob. 2.10CP
Ch. 2.1 - Prob. 2.11CPCh. 2.1 - Prob. 2.12CPCh. 2.1 - What are the rules for naming controls?Ch. 2.1 - What naming convention do most C# programmers use...Ch. 2.3 - A file that contains program code is known as what...Ch. 2.3 - What must you do if you want your application to...Ch. 2.3 - What does the Program.cs file contain?Ch. 2.3 - Prob. 2.18CPCh. 2.3 - Prob. 2.19CPCh. 2.3 - Prob. 2.20CPCh. 2.3 - Prob. 2.21CPCh. 2.3 - Prob. 2.22CPCh. 2.3 - Prob. 2.23CPCh. 2.3 - Prob. 2.24CPCh. 2.3 - What method do you use in Visual C# to display a...Ch. 2.3 - What is a literal?Ch. 2.3 - Prob. 2.27CPCh. 2.3 - Prob. 2.28CPCh. 2.5 - In which group of the Toolbox can you find the...Ch. 2.5 - Prob. 2.30CPCh. 2.5 - Prob. 2.31CPCh. 2.5 - Prob. 2.32CPCh. 2.5 - Prob. 2.33CPCh. 2.5 - Prob. 2.34CPCh. 2.5 - Prob. 2.35CPCh. 2.5 - How can you use a Label control to display output...Ch. 2.5 - What happens if you assign an empty string to a...Ch. 2.7 - What is a PictureBox control used for?Ch. 2.7 - Prob. 2.39CPCh. 2.7 - Prob. 2.40CPCh. 2.7 - Prob. 2.41CPCh. 2.7 - Prob. 2.42CPCh. 2.7 - Prob. 2.43CPCh. 2.7 - Prob. 2.44CPCh. 2.8 - Prob. 2.45CPCh. 2.8 - Prob. 2.46CPCh. 2.8 - Prob. 2.47CPCh. 2.8 - Why do programmers insert blank lines and...Ch. 2.10 - What statement do you use to close an applications...Ch. 2.10 - Prob. 2.50CPCh. 2.10 - Prob. 2.51CPCh. 2.10 - Prob. 2.52CPCh. 2 - Prob. 1MCCh. 2 - Prob. 2MCCh. 2 - __________ is the name of the blank form that...Ch. 2 - Prob. 4MCCh. 2 - A file that contains program code is called a(n)...Ch. 2 - A namespace is container that holds __________. a....Ch. 2 - A(n) __________ is a method that executes when a...Ch. 2 - Prob. 8MCCh. 2 - Prob. 9MCCh. 2 - Prob. 10MCCh. 2 - Prob. 11MCCh. 2 - The time during which you build the GUI and write...Ch. 2 - The time during which an application is executing...Ch. 2 - When you want to display text on a form, you use a...Ch. 2 - The __________ property allows you to set the...Ch. 2 - A __________ property can be set to one of two...Ch. 2 - Prob. 17MCCh. 2 - Prob. 18MCCh. 2 - In code, you use a(n) __________ to store a value...Ch. 2 - Prob. 20MCCh. 2 - The standard notation for referring to a controls...Ch. 2 - __________ is a feature of Visual Studio that...Ch. 2 - Prob. 23MCCh. 2 - Prob. 24MCCh. 2 - Prob. 25MCCh. 2 - Prob. 26MCCh. 2 - Most controls have a __________ property that...Ch. 2 - A(an) __________ appears on one line in a program....Ch. 2 - A __________ can occupy multiple consecutive lines...Ch. 2 - Programmers commonly use blank lines and...Ch. 2 - To close an applications form in code, you use the...Ch. 2 - Changing an objects Text property also changes the...Ch. 2 - When a form is created, its Text property is...Ch. 2 - The forms title is displayed in the bar along the...Ch. 2 - Prob. 4TFCh. 2 - Prob. 5TFCh. 2 - Prob. 6TFCh. 2 - In C# code, each opening brace must have a...Ch. 2 - When you double-click a control in the Designer,...Ch. 2 - Prob. 9TFCh. 2 - Prob. 10TFCh. 2 - Prob. 11TFCh. 2 - Prob. 12TFCh. 2 - Prob. 13TFCh. 2 - Prob. 14TFCh. 2 - Prob. 15TFCh. 2 - Prob. 16TFCh. 2 - When you write the values true or false in code,...Ch. 2 - Prob. 18TFCh. 2 - To close an applications form in code, you use the...Ch. 2 - The Visual Studio code editor examines each...Ch. 2 - What does a bounding box indicate about an object...Ch. 2 - Prob. 2SACh. 2 - What determines an objects appearance and other...Ch. 2 - Prob. 4SACh. 2 - Prob. 5SACh. 2 - What steps must you perform to change a forms Size...Ch. 2 - Prob. 7SACh. 2 - Prob. 8SACh. 2 - Prob. 9SACh. 2 - Prob. 10SACh. 2 - Prob. 11SACh. 2 - Prob. 12SACh. 2 - Prob. 13SACh. 2 - Prob. 14SACh. 2 - Prob. 15SACh. 2 - Prob. 16SACh. 2 - Prob. 17SACh. 2 - Prob. 18SACh. 2 - What are the three types of comments you can use...Ch. 2 - How does Visual Studio help you to quickly correct...Ch. 2 - Prob. 1AWCh. 2 - Prob. 2AWCh. 2 - Prob. 3AWCh. 2 - Suppose an applications GUI has a Label control...Ch. 2 - Suppose an applications GUI has a PictureBox...Ch. 2 - Latin Translator Look at the following list of...Ch. 2 - Prob. 2PPCh. 2 - Prob. 3PPCh. 2 - Joke and Punch Line A joke typically has two...Ch. 2 - Prob. 5PPCh. 2 - Prob. 6PP
Knowledge Booster
Similar questions
- Create a program that calculates the amount of federal tax you will have to pay depending on a given salary. Hint: The second tax bracket does not mean you pay 20.5% on ALL of your income! https://www.moneysense.ca/save/tax-brackets-canada-provinces-2020/ need the answer in pythonarrow_forwardWhich one of a, b, c, d correct? During the writing of a program, you are confronted with a coding problem very similar to one you've already solved in another part of the program. One way to take advantage of this is by copying and pasting the a)comments b)code c) import statements you wrote previously. The problem is that any changes made to the copied code will then need to be applied to a) the original code b)all the javadoc comments c)the program’s API. A more effective strategy is to construct a a)try/catch block b)a method c)a ternary operator that is used in both situationsarrow_forwardthis is what you responded with while asking for coral help. Editable Source Code: #include <iostream> using namespace std; int main(){ int arr[5], searchValue; for(int i=0; i<5; i++) cin>>arr[i]; cin>>searchValue; for(int i=0; i<5; i++){ if(searchValue >= arr[i]) cout<<arr[i]<<" "; } return 0;} That is obviously C++ NOT Coral. Here was the original question I asked... which very clearly startes that I am asking for help IN CORAL. this is the 4th time this month you have done this to me. Why am I paying for all these questions when you make me use 2 to even get 1 answer, maybe. So may I please get help for the question below in th4e language I ask for help in? I am looking for Coral assistance and nothing wlse please. Write a program that first reads a list of 5 integers from input. Then, read another value from the input, and output all integers less than or equal to that last value. Ex:…arrow_forward
- Write an application that determines whether a phrase entered by the user is a palindrome. A palindrome is a phrase that reads the same backward and forward without regarding capitalization or punctuation. For example, “Dot saw I was Tod”, “Was it a car or a cat I saw?”, and “Madam, I’m Adam” are palindromes. Display the appropriate feedback: You entered a palindrome or You did not enter a palindromearrow_forwardIN JAVA PLEASE REST OF THE SAMPLE RUN: --------------------------------------------------- Main Menu 1 : Student Management 2 : Course Management 0 : Exit Enter your selection: 1 ----------------- Student Management Menu: Choose one of: A - Search add a student B - Delete a Student C – Print Fee Invoice D – Print List of Students X – Back to Main Menu Enter your selection: D PhD Students ------------ - Zydoun BenSellam - Erica Belksiri MS Students ------------ - Caleb Sidi Kacem - Erika Jones - Walid Wali Undergraduate Students ------------ - Ed Johnson - Willian Jones - Kirby Sons Student Management Menu: Choose one of: A - Search add a student B - Delete a Student C – Print Fee Invoice D – Print List of Students X – Back to Main Menu Enter your selection: A Enter Student’s ID: ew44-yye Invalid id format or ID already exists Try again later! Student Management Menu: Choose one of: A - Search add a student B - Delete a Student C – Print Fee Invoice D – Print List of Students X – Back…arrow_forwardPlease create a encryption and decryption code using java. A user must be able to enter any word or sentence that they would like to encrypt or decrypt. DONT MAKE IT ONE WORD PLEASE. Then please create a gui for that program. Instructions are below in the photosarrow_forward
- I need help with this. Thanks in advance. Write an application that accepts a word from a user and converts it to Pig Latin. If a word starts with a consonant, the Pig Latin version removes all consonants from the beginning of the word and places them at the end, followed by ay. For example, cricket becomes icketcray. If a word starts with a vowel, the Pig Latin version is the original word with ay added to the end. For example, apple becomes appleay. If y is the first letter in a word, it is treated as a consonant; otherwise, it is treated as a vowel. For example, young becomes oungyay, but system becomes ystemsay. For this program, assume that the user will enter only a single word consisting of all lowercase letters. import java.util.*;public class PigLatin {public static void main(String[] args) {// Write your code here}public static boolean isVowel(char c) {// Write your code here}}arrow_forwardAssume we are creating an application that allows multiple users to form groups andwrite a story together concurrently. We have a single 'notebook' interface where all users cantype. We want to restrict changes to the notebook so that only one user can write at a time.This is to prevent users who are typing at the same time from overwriting each other’s'work.- Explain how you would handle the problem of ensuring that only one user's input isaccepted at any given time. Use Pseudo code.arrow_forwardDevelop an object-oriented programming (OOP) application to create two clocks that display simultaneously and allow for user input using secure and efficient C++ code.1. Clock12: Time should be displayed in 12-hour format where the clock does not exceed 12:59:59.2. Clock24: Time should be displayed in 24-hour format where the clock does not exceed 23:59:59.3. Both clocks should display on the screen with the current time in the proper format.Any clue where to even start? Title: Clocks FlowchartTop of chart begins: “Clear Screen” “Display time in two formats”. Decision: “Button Pressed?” If “No” to button pressed, then to “Add 1 Second”. Then “Wait 1 second”. Then back to “Clear Screen”. If “Yes” to button pressed, then to “Display Menu”. Then “Read user input”. Then to Decision: “User input = exit?”. If “Yes” to exit, then endpoint: “End program”. If “No” to exit, then Decision: “Add Hour?” If “Yes” to hour, then “Add 1 hour.” Then back to “Clear screen”. If “No”…arrow_forward
- This is an answer that was found on Chegg and doesn't address the requirements I typed out that are in addition to the screenshot. How do you set the displayed decimal places to zero for the Celcius values and two for the Fahrenheit values? This is my code that does everything but that: #include <iostream>#include <iomanip>#include <cmath>using namespace std; int main(){ cout << "This program converts temperature from Celcius to Fahrenheit"; cout << endl; double start, stop; cout << "Please enter starting value: "; cin >> start; start = floor(start); cout << "Please enter stopping value: "; cin >> stop; stop = ceil(stop); cout << endl; const int COL1 = 12; const int COL2 = 12; cout << right; cout << setw(COL1 + COL2) << "Conversion Table" << endl; cout << endl; cout << setw(COL1) << "Celsius" << setw(COL2) << "Fahreneheit"…arrow_forwardWhen using this code i keep getting a syntax error on the Zybooks lab Warm up: Online shopping cart. I keep getting the following message: File "main.py", line 20 Item_1.item_quantity=int(input("Enter the item quantity:\n") ^ SyntaxError: invalid syntax What am i doing wrong?arrow_forwardPLEASE DO IT IN JAVA!! Create a Palindrome application that prompts the user for a string and then displays a messageindicating whether or not the string is a palindrome. A palindrome is a word or phrase that isspelled the same backwards and forwards. For example, “mom” is a palindrome, as well as “kayak”and “Never odd or even”.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- EBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,EBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781305480537
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
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