Without using the line continuation character, you can break a line of code immediately before a comma. True or False?
Q: (4) Extend the program to allow the user to enter a dash (-), which indicates no service. (3 pts)…
A: Please find the answer below :
Q: ake this button.
A: I use HTML to create this button.
Q: Which of the following statement is true? A The default case is required in the switch…
A: Introduction: In this question, we are asked to answer two MCQs and answer is in the following…
Q: create a flowchart that will determine your grade if passed or failed
A: Overview : A flowchart is a diagram that describes a process or operation. It includes multiple…
Q: Which of the following statements are true? You may select more than one answer. A penalty applies…
A: Debugging is to run the code, step by step on a debugging tool, in order to find the exact mistake…
Q: Which of the following variable names are written with the convention used in this book?1.…
A: Which of the following variable names are written with the convention used in this book?1.…
Q: What value will be assigned to the x variable? z = 10 !! x = y y or y > z and z < y
A: Correct option is (a and b) because both num and Val's having same length and also num is longer…
Q: Draw Flowchart to the calculate the average from 25 exam scores?
A: Given: Flow chart for calculated 25 exam scores.
Q: E Projectl - Forml (Code) Command1 Click Const var1 = 100 Const var2 = 200 Private Sub…
A: Need to Justify the given points : 1 . Const Var1 = 100Const Var2 = 200 Private Sub…
Q: Which lines of code (lettered to the right) have mistakes? function handleEvent () { window.alert(…
A: Task: to find the wrong line in the following code:
Q: Match the elements of a flowchart and their purpose of use in the following: Write your answer on…
A: Flow chart is a pictorial representation if the flow of program and these are all the possible words…
Q: Which of the following symbols represents the selection structure’s condition in a flowchart? a.…
A: Flowchart: The flowchart is the diagram that represents a step by step process of the tasks using…
Q: Create a flowchart of the inventory of a grocery store.
A: An inventory is a process for any organization that includes phases of ordering, storing, using and…
Q: Create a script file that will prompt the user for his choice, read in the choice, and use the…
A: We need to write a shell script for the given scenario.
Q: Several commands can be typed in the same line by typing. between the .commands Semicolon Spacebar…
A: 1) Semicolon (;)
Q: If the sentence is true, write T; if it is wrong, write F; and correct the false sentence. Only five…
A: I assume the question is related to MATLAB. Hence , I shall be answering the same.
Q: The edit menu choices serve what purpose?
A: Given: The edit menu choices serve what purpose?
Q: If you have the following function in Mat lab, the line style and color of the function can be using…
A: The correct option is: c) plot(A,Y,'r*-')
Q: Ask the user for the name? Ask the user to input five test scores and calculate the total of the…
A: PROGRAM: #Declaring variable total=0 #Getting input from the user name=input("Enter the Name:")…
Q: Create a flowchart that will accept 3 integers and display the lowest number.(Non-anonymous question…
A: Algorithm that will accept three integers and display the lowest number: Following are the steps:…
Q: Which INT 33h function gets mouse button press information?
A: Explanation: The INT 33h function controls the mouse functions in text and graphics mode. This…
Q: Create an original simple flowchart that will calculate the interest of a bank deposit and add…
A: P, R and N is principal, rate and N is number of years. Interest formula(I)=(P*R*N)/100 Display…
Q: Which line of code changes the value of a variable named exam? A part1 + part2 = exam B…
A: Assignment operator is used to assign value to a variable. Syntax: variable = value Variable must…
Q: Which bit in the keyboard flag byte indicates the use of the ScrollLock key?
A: Intro the question is about Which bit in the keyboard flag byte indicates the use of the ScrollLock…
Q: (who) command used to displays a list of the variables currently in the workspace.
A: ANSWER (1): True Explanation:
Q: In Windows programs, default check boxes are prevalent. What is the difference between true and…
A: In Windows programs, default check boxes are prevalent.What is the difference between true and…
Q: String sport "Basket", Val; sport "Foot"; Val sport + "ball"; %3D
A: The language used here is java. So we need to understand it with respect to java. Here we have 2…
Q: create flowchart that will arrange the value of A, b and c assending order where a gets the lowest…
A: - The question is to create a flowchart for the given problem of printing the provided numbers in…
Q: Which function is used to check whether a character is tab or space or whitespace control…
A: Given, Choices: isspace() isalnum() iscntrl() isblank() We have to find which function is used…
Q: 5 1&& 5> 3 || 2 < x. Based on the code, which statement is not evaluated?
A: Given: 5 < 3 || 6 < 7 || 4 > 1&& 5> 3 || 2 < x We have to tell which…
Q: the flowchart, and write the output. (B) u2, C1, c2) Peg0 Peg0 biackPeg true true MackPege+ u2 c2 C1…
A: Let us understand it with the help of following diagram:- Where U1=B, U2=G , C1=B and C2=G As…
Q: What are the three expression values, including units? Note that at this point in the code, you…
A: Here we will discuss the three expression values
Q: C++ Which function is used to check whether a character is a tab or space? a) isalpha() b)…
A: Given, Choices: a) isalpha() b) isalnum() c) isdigit() d) isblank()
Q: QUESTION 6 Write the code to show numbers from 10 to 1 in descreasing order, one at a time, in a…
A: In this we have to write the different codes for the given statements We will perform it in C# code…
Q: How many times will the message box be displayed in the given code below? For x = 4 To 11 Step 3…
A: Loops are used to perform a set of task repeatedly.
Q: The value of H after executing the program, g-6 Private Sub Commandl Click () Dim g, H As Single…
A: Lets see the solution.
Q: Which INT 33h function gets mouse button release information?
A: INT 33h function The function is used to access the mouse support. It loads the registers and then…
Q: Which header file must be included to use the manipulators fixed and showpoint?
A: Justification: No extra header file is required to be included to use the manipulators "fixed" and…
Q: Which of the following control structure displays the minimum output of one or more? orn
A: These statements of algorithm are the part of the basic structures, where in the structure in the…
Q: Which of these characters are for PS1 variables that specialize user prompt? a \0 b \@ c \d d @
A: PS1 is a primary prompt variable which holds \u@\h \W\\$ special bash characters.
Q: Which header file must be included in order to use the manipulators fixed and showpoint?
A: In this question, we are asked to tell the header file to use manipulators fixed and showpoint…
Q: Which line of code should be placed in the blank to achieve this goal? Select one:
A: The characters from file should be read while we reach end of file. End of file means line="" so we…
Q: If the sentence is true, write T; if it is wrong, write F; and correct the false sentence. Only five…
A: The Answer is given below step
Q: What is the line continuation character?
A: Line continuation character: An underscore “_” is the line continuation character. It should be…
Q: Implement the "Update player rating" menu option. Prompt the user for a player's jersey number.…
A: Here, the dictionary data structure is used to store the jersey number and rating of 5 players.…
Q: Draw flowchart to read 10 numbers from a user and then find the second largest number of them Share…
A: The flowchart to read 10 number from user input. See below steps.
Q: You can replace the text … A. Ctrl+H B. Ctrl+R C. Replace from the edit menu D. Both A and C
A: Introduction: Microsoft word is literally used business word processor which is generally planned…
Q: The following program which was submitted as extra credit in week 7 prints out a triangle of stars…
A: Code: main: pushrbp movrbp, rsp subrsp, 16 movDWORDPTR [rbp-4], 4 jmp.L2 .L5: moveax, DWORDPTR…
Q: Create a flowchart that reads in five score grades and then calculate the average of the five score…
A: Algorithm: Step 1.Start.Step 2.Declare s1, s2, s3, s4, s5 as int And Declare avg = 0 as floatStep…
Q: Which property is used to give a form file a more meaningful name? a. File b. File Name c. Form Name…
A: Property for giving files a name A file name is used to identify a computer file uniquely. These…
Without using the line continuation character, you can break a line of code immediately
before a comma. True or False?
Step by step
Solved in 2 steps
- What will be output by the above code segment ?1# Write a program that allows users to choose from one of three shapes: Squares, Circles or (right) Triangles. Allow the user to use the first letter of the shape (S, C, T) to specify what they want. After the shape is selected, ask the user for the appropriate data to calculate the shape's area, and then and print that area value to the screen for them. Area formulas you can use: Triangle: % base x height Square: length x length Circle: % Pl x radius? Notes: The floating-point data type will be your friend here. Round your area answer so that no more than 2 decimal places are shown when printing on the screen. You can use 3.1415 for Pl; Think about this as a CONSTANT in your code. For this part and especially part (b) below, think about componentizing your code. So one gigantic main() is not a best practice and not what we want to see here. Remember what we discussed about "procedural decomposition" and functions last week!Which line of code reserves space in memory and which line puts a value into memory?LINE 1: int x;LINE 2: x = 1;
- Q1: The local Driver's License Office has asked you to write a program that grades the writ- ten portion of the driver's license exam. The exam has 20 multiple choice questions. Here are the correct answers: 1. A 2. D 3. B 4. B 5. C 6. B 7. A 8. B 9. C 10. D 11. A 12. C 13. D 14. B 15. D 16. C 17. C 18. A 19. D 20. B Your program should store the correct answers shown above in an array. It should ask the user to enter the student's answers for each of the 20 questions, and the answers should be stored in another array. After the student's answers have been entered, the program should display a message indicating whether the student passed or failed the exam. (A student must correctly answer 15 of the 20 questions to pass the exam.) It should then display the total number of correctly answered questions, the total number of incorrectly answered questions, and a list showing the question numbers of the incorrectly answered questions. Input Validation: Only accept the letters A, B, C, or…Programming Language: Java Direction: Write a program to determine the number of PASSED and FAILED out of 15 inputted names with the corresponding grade. Restrict the inputted grade for each name in the range of 50 to 100, in which 75 is the passing grade. If the inputted grade is not on the range, the program will remind the user of a message for the accepted range for the grade and allows the user to re-enter a grade. NOTE: MUST ADD COMMENTSReza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tellsthe ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not.. Test your application with the following ticket numbers: - 123454; is a valid ticket number - 147103; is a valid ticket number -…
- 2. Write an application that will calculate the Cummulative Grade Point Average [CGPA] using While Loop for 3 students. You have to enter the GRADE POINT of 5 different subjects for a student. You have to enter the CREDIT for each of the 5 subjects for a Student. GRADE POINT can take any value as given [5,6,7,8,9,10] CREDIT can take any value as given [2,3,4] CREDIT POINT = GRADE POINT * CREDIT CGPA = CREDIT POINT / Sum of the CREDIT values of all the 10 semesters. Display all the 5 subjects GRADE POINT Display all the 5 subjects CREDIT Display the CREDIT POINT Display the Total of all the CREDIT values Display the CGPA Do the above program for 3 students totally. Save your Shell script as cgpa.shName: Claz 4. Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case. The code segment below is intended to display all multiples of 5 between the values start and end, inclusive. For example, if start has the value 35 and end has the value 50, the code segment should display the values 35, 40, 45, and 50. Assume that start and end are multiples of 5 and that start is less than end. Line 1: i + start Line 2: REPEAT TIMES Line 3: { DISPLAY (i)oplev a bonin vimobn ldemyA i + i + 5 Line 4: Line 5: Line 6: } Which of the following could replace in line 2 so that the code segment works as intended? wlf a0wollo 1 end - start + 1 b. end start + 6 (( end - start) / 5) + 1 d. 5 * (end - start) + 1 а. C.Assume x is 10, y is 7, and z; x and y are int, z is bool. What is assigned to z? z = x < y
- XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.! 1000$ by default, but discounts are applied to it based on different criteria. 1- Students get 20% discount. 2- People who purchase in 30 days in advance get 25% discount. 3- student purchasing 40 days in advance gets a 40% discount. This code segment calculates the final price. x = Text1.Text If x= "student" Then 1-... ElseIf x= "advance" Then price 1000 - 0.25 * 1000 ElseIf x= "stu_adv" Then price 1000 - 0.4 * 1000 2-...... price = 1000 3-..... 4-.. O = 1-price = 1000 - 0.2 * 1000 2-Else 3- End If 4-Print price 1-price 1000 - 0.2 * 1000 2-Else 3- Print price 4-End If 1-price = 3-End If 4-Print price = 1000 -0.2 * 1000 2-Elseif99 question Reza Enterprises sells tickets for buses, tours, and other travel services. Because Reza frequently mistypes long ticket numbers, Reza Enterprises has asked his students to write an application that shows if a ticket is invalid. Your application/program tells the ticket agent to enter a six-digit ticket number. Ticket numbers are designed so that if you lose the last digit of the number, then divide by 7, the remainder of the division is exactly the same to the last dropped digit. This process is shown below: Step 1: Enter the ticket number; for example 123454 Step 2: Remove the last digit, leaving 12345 Step 3: Determine the remainder when the ticket number from step 2 is divided by 7. In this case, 12345 divided by 7 leaves a remainder of 4. Step 4: Display a message to the ticket agent indicating whether the ticket number is valid or not. If the ticket number is valid, save the number to a .txt file called “tickets.txt” and.