All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Hire a Tutor
AI Study Help
New
Search
Search
Sign In
Register
study help
computer science
systems analysis design
Questions and Answers of
Systems Analysis Design
The \(t\)-parameters of the two-port networks \(N_{\mathrm{a}}\) and \(N_{\mathrm{b}}\) in Figure P17-23 areFind the impedance looking into the input port of \(N_{\mathrm{a}}\) when a resistive load
Find the inverse transforms of the following functions:(a) \(F_{1}(s)=\frac{e^{-10 s}(s+100)}{(s+10)(s+1000)}\)(b) \(F_{2}(s)=\frac{s e^{-10 s}+100}{(s+10)(s+1000)}\)(c) \(F_{3}(s)=\frac{s+100 e^{-10
Write a program that takes a decimal value between 1 and 10 and displays its equivalent roman numeral value. Display an error message if the value entered is outside of the acceptable range. Write a
Two fuel stops, CanadianFuel and AmericanFuel, are positioned near the U.S.–Canadian border. At the Canadian station, gas is sold by the liter. On the American side, it is sold by the gallon. Write
Design a solution that prints the amount of profit an organization receives based on it sales. The more sales documented, the larger the profit ratio. Allow the user to input the total sales figure
Create an application with four classes. Three of the classes should contain data and behavior characteristics for circle, rectangle, and cylinder. The fourth class should allow the user to input a
Write an application that computes the area of a circle, rectangle, and cylinder.Display a menu showing the three options. Allow users to input which figure they want to see calculated. Based on the
A large Internet merchandise provider determines its shipping charges based on the number of items purchased. As the number increases, the shipping charges proportionally decrease. This is done to
Write a program that calculates the take-home pay for an employee. The two types of employees are salaried and hourly. Allow the user to input the employee first and last name, id, and type. If an
Write a program to calculate and display a person’s Body Mass Index (BMI).BMI is an internationally used measure of obesity. Depending on where you live, either use the Imperial BMI formula or the
Create a Month class that has a single data member of month number. Include a member method that returns the name of the month and another method that returns the number of days in the month. The
Write an application that will enable you to display an aquarium’s pH level. The pH is a measure of the aquarium water’s alkalinity and is typically given on a 0-14 scale. For most freshwater
Write conditional expressions to perform the following tests:a. When amountOwed is greater than 1000.00, display an overdue message.b. When amountOfRain is greater than 5 inches, add 5 to total. When
Rewrite the following compound expression as nested if statements:if ((aValue > bValue) && (bValue == 10))Console.WriteLine("Test complete");
Rewrite the following switch statement as a nested if statement using a series of else. . .if statements:string birdName;switch (birdName){case "Pelican":Console.WriteLine("Lives near
Could a switch statement be designed logically to perform the same tests as the following nested if statement? If so, explain how it could be done.if (aValue == 100)Console.WriteLine("Value is
Assuming a is 5, b is 6, and c is 8, which of the following is false?a. a == 5;b. 7 = 0;g. a
The string data type can be used:a. as an operand for the == or !=b. as an expression in the switch statement to be evaluatedc. as an operand for the > or < operatord. a and b are correcte. all of
Which of the following statements about logical operators is correct?a. Logical AND yields true if and only if both of its operands are either true or false.b. Logical OR yields true if either or
Given the switch statement, which of the following would be the first if statement to replace the first test in the switch?switch (control){case 11 : Console.WriteLine("eleven");break;case 12 :
What is the result of the following conditional expression when aValue = 100 and bValue = 7?result = aValue > bvalue + 100 ? 1000 : 2000;a. 0b. 1000c. 2000d. 7e. none of the above
Given the following segment of code, what will be the output?int x = 5;if (x == 2)Console.WriteLine("Brown, brown, run aground.");else Console.WriteLine("Blue, blue, sail on
If you intend to place a block of statements within an if statement, you must use around the block.a. parenthesesb. square bracketsc. quotation marksd. curly bracese. none of the above
After execution of the following code, what will be the value of inputValue?int inputValue = 0;if (inputValue > 5)inputValue += 5;else if (inputValue > 2)inputValue += 10;else inputValue += 15;a.
Consider the following if statement, which is syntactically correct, but uses poor style and indentation:if (x >= y) if (y > 0) x = x * y; else if (y < 4) x = x - y;Assume that x and y are int
Examine the code to complete the following question. (Be careful.)if (A == B);C = 3;a. when A is equal to Bb. when A is not equal to Bc. neverd. every time the program is executede. not enough
Which logical operator (op) is defined by the following table? (T and F denote true and false.) P Q P op Q T T T F F T F T F F F F F a. NOT b. AND c. OR d. not enough information is given e. none of
What does the following program segment display?int f = 7, s = 15;f = s % 2;if (f != 1){f = 0;s = 0;}else if (f == 2){f = 10;s = 10;}else{f = 1;s = 1;}Console.WriteLine(" " + f + " " + s);a. 7 15b. 0
Incorrect use of spacing with an if statement:a. detracts from its readabilityb. causes a syntax error messagec. can change the program logicd. causes a logic error messagee. all of the above
The symbol (=) is:a. the operator used to test for equalityb. used for comparing two itemsc. used as part of an assignment statementd. considered a logical compound operatore. all of the above
The operator represents the logical AND.a. ++b. ||c. &&d. @e. none of the above
What will be displayed from executing the following segment of code? You may assume testScore has a value of 90.int testScore;if (testScore < 60); // Note the semicolon.Console.WriteLine("You failed
Which statement in C# allows you to do the following: properly check the variable code to determine whether it contains the character C, and if it does, display‘‘This is a check’’ and then
What is displayed when the following code executes? score = 40; if (score > 95) a. b. Console.WriteLine ("Congratulations!"); Console.WriteLine ("That's a high score!"); Console.WriteLine("This is a
What is the output for total after the following segment of code executes? int num = 4, total = 0; switch (num) { case 1: case 2: total = 5; break; case 3: total = 10; break; case 4: total total +3;B
Which expression is evaluated first in the following statement?if ( a > b && c == d || a == 10 && b > a + 7)?a. a > bb. b && cc. d || ad. a + 7e. none of the above
The result of the expression if (aValue == 10) is:a. true or falseb. 10c. an integer valued. aValuee. determined by an input statement
Write a program that creates a ProfessorRating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity. In a separate
Write a program that includes an Employee class that can be used to calculate and print the take-home pay for a commissioned sales employee.All employees receive 7% of the total sales. Federal tax
There are a number of national and state parks available to tourists. Create a Park class. Include data members such as name of park, location, type of(i.e., national, state, local) facility, fee,
Create a Money class that has as data members dollars and cents. Include IncrementMoney and DecrementMoney instance methods. Include constructors that enable the Money class to be instantiated with a
Create a Trip class. Include as data members destination, distance traveled, total cost of gasoline, and number of gallons consumed. Include appropriate constructors and properties. Add additional
Create a Date class with integer data members for year, month, and day.Also include a string data member for the name of the month. Include a method that returns the month name (as a string) as part
Create a Receipt class that could be used by an automobile parts store.Items to include as data members are receipt number, date of purchase, customer number, customer name and address, customer
Create an Employee class. Items to include as data members are employee number, name, date of hire, job description, department, and monthly salary. The class is often used to display an alphabetical
Create a Motorway class that can be used as extra documentation with directions. Include data members such as name of motorway, type (i.e., Road, Street, Avenue, Blvd., Lane, etc.), direction (i.e.,
Create a class representing a student. Include characteristics such as student number, first and last name, overall GPA, classification, andmajor. Write at least two constructors. Include properties
The following program has several syntax errors as well as style inconsistencies.Correct the syntax errors and identify the style violations. } public class Chair { private string type; private
Explain the role of the constructor. What is the default constructor? When do you automatically get a default constructor?
What does it mean to override a method? Why should the ToString( ) method be overridden for user-defined classes?
Explain how instance methods differ from class methods. What differs when you want to invoke each different type? Which one requires an object in order for it to be called?
Given the following code snippet:Identify the following items by line number:a. method headingsb. property identifierc. default constructorsd. formal parameterse. local variables public class Camera
In order to provide a new definition for the ToString( ) method, what keyword is added to the method heading?a. staticb. overridec. newd. overloade. public
For a class called Account that has data members of accountNumber, balance, and transactionAmount, which would be the most appropriate instance method heading for a method that reduces the
Normally, member data uses a access modifier, and methods use a access modifier for object-oriented solutions.a. protected, publicb. private, protectedc. public, protectedd. public, privatee.
Which of the following modifiers in C# is used with constructors?a. constb. privatec. publicd. statice. protected
With a UML class diagrama. the name of the class appears at the bottom section of the diagramb. data members show a + to indicate public accessc. methods are not shownd. objects of the class appear
Given the following class definition, what would be a valid heading for a mutator?public class Student {private string name;private double gpa; }a. public double SetGpa(double gpaValue)b. public void
Which of the following would be a valid call to the default constructor for the following class?public class Employee {a. Employee employee1 = new Employee( );b. Employee employee1= new undergrad(
If you follow the standard C# naming conventions, the property name for the following instance variable would be:private string name;a. propertyNameb. namePropertyc. getNamed. namee. Name
The following is probably an example of a(n) .public double GetYards( )a. constructorb. mutatorc. propertyd. accessore. class definition
Given the Employee class shown below, which of the following would be the most appropriate heading for its default constructor?public class Employee {a. public void Employee( )b. public Employee( )c.
Instance variables are the same as:a. private member datab. local variablesc. propertiesd. argumentse. parameters
What operator is used to instantiate the classa. methodb. plus symbolc. ToString( )d. newe. equal symbol
Which of the following is a valid overloaded method for CalculateAvg( )?int CalculateAvg(int val1, int val2)a. void CalculateAvg(int val1, int val2)b. int CalculateAvg(int val1, int val2)c. int
Properties are associated with the of the class while methods are affiliated with the of the class.a. activity, fieldsb. accessors, mutatorsc. objects, instancesd. data, behaviore. behavior, data
Which of the following is one of the user-defined methods inherited from the object class?a. ToString( )b. Main( )c. CalculateAvg( )d. EqualsHashCode( )e. TypeHashCode( )
Which of the following would be the most appropriate way to invoke the CalculateAvg( ) method found in the Student class if an object named gradStudent had been instantiated from the class?public
Which of the following identifiers follows the standard naming convention for naming a class?a. Calculate Final Gradeb. MilesPerGallonc. Studentsd. Reportse. Employee
Which of the following modifiers is the most restrictive?a. privateb. staticc. publicd. internale. protected
Properties are defined with access mode.a. publicb. staticc. privated. voide. protected
Objects are instances of .a. data membersb. parametersc. propertiesd. methodse. classes
Write an application that helps landowners determine what their property tax will be for the current year. Taxes are based on the property’s assessed value and the annual mileage rate. The
Write a program that calculates and prints the take-home pay for a commissioned sales employee. Allow the user to enter values for the name of the employee and the sales amount for the week.
Write a program that computes the amount of money the computer club will receive from proceeds of their granola bar sales project. Allow the user to enter the number of cases sold and the sale price
Write a program that can be used to determine the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%). Produce
Write a program that can be used to convert meters to feet and inches. Allow the user to enter a metric meter value in a method. Write appropriate methods for your solution.
Write a program that converts a temperature given in Fahrenheit to Celsius.Allow the user to enter values for the original Fahrenheit value. Display the original temperature and the formatted
Design an application using methods that convert an integer number of seconds to an equivalent number of hours, minutes, and seconds. Use methods for entering the initial seconds, performing the
Write an application that allows a user to input the height and width of a rectangle and output the area and perimeter. Use methods for entering the values, performing the computations, and
Design a message display application. Allow users to enter their name and favorite saying in a single method that gets invoked two times. First call the method asking for the person’s name. Send a
Write an application that includes two additional methods in addition to the Main( ) method. One method should return a string consisting of four or five lines of information about your school. The
The following program has several syntax errors as well as style inconsistencies.Correct the syntax errors and identify the style violations./* **********************************************
What will be produced from the following predefined Math class method calls?a. Console.WriteLine(Math.Abs(-98887.234));b. Console.WriteLine(Math.Pow(4,3));c. Console.WriteLine(Math.Sign(-56));d.
Write methods to do the following:a. Display three full lines of asterisks on the screen.b. Accept as an argument your age, and display that value along with an appropriate label.c. Accept two
Use the following method headings to answer the questions below:public static int DetermineResult(int value1, ref double value2)public static void DisplayResult(int value1, double value2)public
Given the following task, which would be the most appropriate method heading?Results have been calculated for taxAmount and totalSales. Write a method heading that accepts these values as input for
Given the following task, which would be the most appropriate method heading?A method receives three whole numbers as input. The values represent grades. They should be unchangeable in the method.
Given the following task, which would be the most appropriate method heading?A method displays three integer values formatted with currency.a. public static int int int DisplayValues( )b. public
Which of the following is not a modifier in C#?a. intb. privatec. publicd. statice. protected
If a method is to be used to enter two values that will be used later in the program, which of the following would be the most appropriate heading and call?a. heading: public void InputValues(out int
Given the following method definition, what would be a valid call? The variable someIntValue is defined as an int.public static int GetData(out int aValue, ref int bValue)a. someIntValue =
Which of the following would be a valid call to a method defined as shown below?public static void InitializeValues( )a. void InitializeValues( );b. Console.WriteLine(InitializeValues( ));c. int
If you follow the standard C# naming conventions, the local variable names:a. follow the Camel case conventionb. should use an action verb phrasec. begin with an uppercase characterd. are named like
The following is probably an example of a .DisplayInstructions( );a. call to a value-returning methodb. call to a void methodc. method headingd. method definitione. call to a method with multiple
Given the call to the method ComputeCost( ) shown below, which of the following would be the most appropriate heading for the method? The variable someValue is declared as an int.someValue =
Variables needed only inside a method should be defined as .a. private member datab. local variablesc. propertiesd. argumentse. parameters
What is the signature of the following method?public void SetNoOfSquareYards(double squareYards){noOfSquareYards = squareYards;}a. public void SetNoOfSquareYards(double squareYards)b. public
Which of the following is a valid method call for DetermineHighestScore?void DetermineHighestScore(int val1, int val2)a. void DetermineHighestScore(int val1, int val2)b. DetermineScore(int val1, int
After completing the called method’s body, control is returned:a. back to the location in the calling method that made the callb. to the last statement in the method that made the callc. to the
Showing 1 - 100
of 5434
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Last