Determine what wil be displayed by this code segment: section = 'CSC 104' professor = 'Alonso' location = 'B111' print('Hello, Mr.', professor, T) print('Go to room' + location) print('Your first class is', section, ')
Q: AircraftTest.cpp: // MS Visual Studio 2015 uses "stdafx.h" - 2017 uses "pch.h" //#include…
A: Programming is a way to instruct the computer devices to operate. Every computer needs a set of…
Q: Format ListBox1's items by using String function and add formatted items to ListBox2 with C# codes.…
A: Step 1 : Start Step 2 : Declare and Initialize the ListBox1 with the initial names and Declaring the…
Q: Create a function that prints converts the light sensor into 3 (equal range) categories based on the…
A: creating a function to 3 equal range category The advantages of simulating real-time events have…
Q: The first 25 prime numbers (all the prime numbers less than 100) are: 2, 3, 5, 7, 11, 13, 17, 19,…
A: Below is the required C code. Approach of a Program: Include a necessary header files to get the…
Q: 2 Tuples. Create a tuple containing the names of five countries and display the whole tuple. Ask the…
A: Step-1: Start Step-2: Declare a tuple countries with values ('Albania', 'Uzbekistan', 'Romania',…
Q: Question 20 (1 point) You have a flexbox with child boxes in a row. You want the child boxes to be…
A:
Q: The dblNums array is a six-element Double array. Which of the following If clauses determines…
A: The if statement “if intSub > dblNums.GetUpperBound(0) Then” searches the entire array. Hence…
Q: 1- If x=[1 5 9; 2 7 41, then a) display the last two elements by using disp command. b) display the…
A: code : - x = [1 2 3; 4 5 6 ]; % store answer in one variable using sum method and dimention = 2…
Q: Trying to get the cin function to work in the menu without interfering with the design but having…
A: First, add or ensure the following lines are near the top of your program ( If you are Visual Studio…
Q: Decide whether the function is one-to-one. If the function is one to one find two elements that have…
A: The term "one to one" refers to any two-item connection in which one thing can only belong to one…
Q: The "chart.colors.ranges" property for level A is set in the following code using arrays. What is…
A: Looking at code we can see that, in the "else" part of code logic, we are inserting the values into…
Q: A vertical tab escape sequence. \n O lb If char is a letter of the alphabet, this function returns…
A: Vertical Tab Escape Sequence: An escape sequence is a series of characters that, when used inside a…
Q: Assignment 5A: Fibonacci Sequence. You may have learned about Fibonacci Sequences in high school or…
A: Step 1 : Start Step 2 : In the main function , Define a while loop which iterates till the user…
Q: 3- Create a function to find a specific letter in a word? 4- Create a function to find the hynoto
A: Hello student Greetings Hope you are doing great. As per our policy guidelines, in case of multiple…
Q: Implement a function get_digits(cs: str) -> str that returns cs with all of its non-digits…
A: def get_digits(cs: str) -> str: ans = "" # set initalize empty string # loop from each letter in…
Q: 2. Create a data structure to store invoice. This data structure can hold M/S Name, Company Name,…
A: To install prettytable syntax : pip install prettytable It helps to create relational table
Q: Quiz After creating the following vector, t, which of the following syntaxes will result in an…
A:
Q: Fix the code in the code tab to pass this challenge (only syntax errors). Look at the examples below…
A: function sumArray(arr) { let sum = 0; for (let i = 0; i < arr.length; i++) { sum+= arr[i] }…
Q: Please Write a function to validate an email
A: According to question we write email validation in java.…
Q: Please provide proper comments. Define the following code. #include 2 #include 3 4 #define…
A: This is the C language code which is playing some songs and calculating their playing time in…
Q: 6. Write a function to validate an email. Below is the html element we're validating. The…
A: Write a function to validate an email. Below is the html element we're validating.<input…
Q: What will the following code segment display? enum Season (Spring, Summer, Fall, Winter) favorite…
A: In this question we have given a piece of code and we need to choose the correct option which will…
Q: Create a counter for each type of item sold (Falafels, Sodas, Extras). 2) When the ‘T’ key is…
A: #include<iostream> #include<iomanip> using namespace std; int main(){ int…
Q: Question 2 The following code segment will print “Congratulation! Correct answer". [Keratan aturcara…
A: Given:
Q: Attach a function to the focus event. The focus event occurs (display a message regarding the text…
A: We have to attach a function to the focus event and display a message regarding text field when…
Q: A(n) comment hides multiple lines of code. O yariable O element O line O block
A: To block comment/*/code: In the C/C++ editorial manager, select different line(s) of code to remark…
Q: 3. Write one line of code for each step a - g. Save your code as PE2_3_YourName.py. All string text…
A: Need to write program using Python which should contain : And Output Example :
Q: struct courseType struct studentType struct nameType { string first; string last; }; { string name;…
A: a. student.name.last = "Anderson"; The statement student.name.last = "Anderson"; is valid because:…
Q: What would this code display? nameList = ["John", "Harry", "Jesse", "John", "Harry", "Harry"] %3D if…
A: The python programming problem has been solved in the following steps.
Q: After creating the following vector, t, which of the following syntaxes will result in an error?…
A:
Q: create a program for a veterinarian's office that will allow the user/receptionist to add, update,…
A: #include<bits/stdc++.h>using namespace std; class VOffice{ // To store animals vector…
Q: allow data to be continuously input for more customer's information such as customer's name and…
A: I have re-written the code with the input of the customer's name and phone number.…
Q: Assume the following code has been written: average = 85 course = 'CSC104' Write a line code to…
A: Note:- always mention programming language name, because syntax varies. This is done in python…
Q: Problem 1: Write a code called pivot.above(A,row,col) which does the pivoting procedure but rather…
A: library(pivottabler)# arguments: pvt(dataFrame, rows, columns, calculations, ...)pvt(dfname,…
Q: Which C++ statement that multiplies the contents of the first element in the price array by .15 and…
A: Option A cannot be the correct answer because the price array is multiplied by 12 but not 15, but…
Q: 1. The main function creates 5 pixels with random red, green, and blue values. Complete the id_color…
A: For the above program, An Image with a single-pixel was created and passed as an argument to the…
Q: add a code at the "Search a book" where i can search for a book and if the word matches the book it…
A: ALGORITHM:- 1. Declare and initialise an arrayList object for Book Titles. 2. Take input for the…
Q: #include struct timeType_struct { int hr; int min; int sec; }; typedef struct timeType_struct…
A: C is a powerful general-purpose programming language. It can be used to develop software like…
Q: struct courseType { string name; struct nameType { string first; string last; }; struct studentType…
A: Student.name.last=”Anderson”; Valid classList[1].name=student; Invalid student.name=…
Q: Q3\ Design a form and write code to find the summation of numbers that are divisible by 2 (from 0 to…
A: There are many languages which are used in today's wold. Computer language can be described as a…
Q: Question 18 D The following question uses a robot in a grid of squares. The robot is represented as…
A: The following code segment moves the robot around the grid. Assume that n is a positive integer.…
Q: Enter the marks of 5 students in Chemistry, Mathematics and Physics (each out of 100) using a…
A: In C/C++ a structure is user defined data type that contains a group of items that are most probably…
Q: The intSales array is declared as follows: Dim intSales() As Integer = {10000, 12000, 900, 500,…
A: If clause Conditional sentences are also known as conditional clauses or if clauses. They are used…
Q: computer graphics topic A particular text index value is chosen with the function Choices:…
A: Given, Choices: setTextIndex() settextindex(ti) SetTextIndex(ti) setTextIndex(ti) We have to…
Q: The number of times the S value is çalculated within the condițion clause in the next code segment…
A: The modulus division is used to get the remainder after the integer division.
Q: initialization will be done within the code (largest value 99.9 minutes). When the remaining time…
A: Program explanation: Include the header file. Take the input for minutes and pass it to the…
Q: Design a data structure to store the class score and exam score of students (using their index…
A: Since language is not mentioned so I have used Python 3. CODE : print("Enter the no. of students…
Q: Q2] (6 Marks): Design a form and write code in VB program to enter the number consist of 3 digit…
A: Given:
Q: Study the following code segment and identify the line that will cause a syntax error int mylist (51…
A: myList is an integer array
Q: Question 2 / 20 Consider the following code segment and identify the line number that will cause a…
A: The error and its solution is given below
Step by step
Solved in 2 steps with 2 images
- Assume the following code has been written: average = 85 course = 'CSC104' Write a line code to display Your avergae in CSC104 is 85. using the cariables average and course.Please Write a function to validate an email. Below is the html element we're validating, please make the java code as simple as posible thank you. The validation should check for: if the numbers were 1 through 9 if there is a name if email is valid if cell phone i valid if Card number, EXP date and CVV is valid or not if the address is valid or not <div class="bg"> <div class="in"> <div class="ro"> <img class="ba"src="stle/pg1/logo.png"> <div class="C">+</div> <form id="result" action="#"> <input type="text" placeholder="Choose from item 1-9"> <input type="text" placeholder="Name"> <input type="email" placeholder="E-mail@gmial.com" id="email"> <input id="Phone nuber" type="text" placeholder="Phone number"> <input id="Card Number" type="text" placeholder="Card Number"> <input id="Card Exp Date" type="text"…Q2. A. write a code to find the number of students who pass CS course, when their marks>=40 . As the list has 85 students. ( list must show how many students passed/failed) use htmp or py B. wite a code to print this shape: * * * * * * * * * * C. Write a code to find the area and parameter of a Tringle; Area =1/2 * High * Base Parameter= S1+S2+ Base
- Here is my code: #include<stdio.h>struct timeType_struct {int hr;int min;int sec;};typedef struct timeType_struct timeType;struct tourType {char city[50];int distance;timeType time;};typedef struct tourType tourType;void printTour(tourType *);tourType getData();tourType tours[3];int main() {int i=0, min;printf("Enter tour data for 3 cities...\n");for (i = 0;i < 3;i++) {tours[i] = getData();}min = tours[0].city;for (i = 0;i < 3;i++) {if (tours[i].distance < min)min = tours[i].distance;}printf("\n");for (i = 0;i < 3; i++) {if (tours[i].distance == min) {printTour(&tours[i]);}}getchar();return 0;}void printTour(tourType* x) {printf("Shortest Tour\n---------------\n");printf("City name: %s\n", (*x).city);printf("Distance: %d\n", (*x).distance);printf("Travel time: %02d:%02d:%02d", (*x).time.hr, (*x).time.min, (*x).time.sec);}tourType getData() {tourType x;char a[5], b[5], c[5]; //Will be used for time inputprintf("Enter a city name: ");scanf("%s",…Here is my code: #include<stdio.h>struct timeType_struct {int hr;int min;int sec;};typedef struct timeType_struct timeType;struct tourType {char city[50];int distance;timeType time;};typedef struct tourType tourType;void printTour(tourType *);tourType getData();tourType tours[3];int main() {int i=0, min;printf("Enter tour data for 3 cities...\n");for (i = 0;i < 3;i++) {tours[i] = getData();}min = tours[0].city;for (i = 0;i < 3;i++) {if (tours[i].distance < min)min = tours[i].distance;}printf("\n");for (i = 0;i < 3; i++) {if (tours[i].distance == min) {printTour(&tours[i]);}}getchar();return 0;}void printTour(tourType* x) {printf("Shortest Tour\n---------------\n");printf("City name: %s\n", (*x).city);printf("Distance: %d\n", (*x).distance);printf("Travel time: %02d:%02d:%02d", (*x).time.hr, (*x).time.min, (*x).time.sec);}tourType getData() {tourType x;char a[5], b[5], c[5]; //Will be used for time inputprintf("Enter a city name: ");scanf("%s",…In PYTHON Print values from the Goal column only Print values only for columns: Team, Yellow Cards and Red Cards Find and print rows for teams that scored more than 6 goals Select the teams whose name start with a G Print values only for columns Team and Shooting Accuracy , and only for rows in which the team is either of the following: England, Italy and Spain Find and print rows for teams that scored more than 6 goals and at least 4000 passes
- A teacher stores the most recent quiz scores for her class in the list scores. The first element in the list holds the maximum possible number of points that can be awarded on the quiz, and each remaining element holds one student’s quiz score. Assume that scores contains at least two elements. Which of the following code segments will set the variable found to true if at least one student scored the maximum possible number of points on the quiz and will set found to false otherwise?The dblNums array is a six-element Double array. Which of the following If clauses determines whether the entire array has been searched? a. If intSub = dblNums.Length Then b. If intSub <= dblNums.Length Then c. If intSub > dblNums.GetUpperBound(0) Then d. Both a and c.computer graphics topic A particular text index value is chosen with the functionChoices: setTextIndex()settextindex(ti)SetTextIndex(ti)setTextIndex(ti)
- Ap is of the Apple type, and the only values it may be assigned (or contain) are those described by the enumeration. This, for example, ap = Apple.RedDel; Create codeadd a code at the "Search a book" where i can search for a book and if the word matches the book it will display "(Title of the book) - Book Available"and if the word doesnt match it will display "Book unavailable"codes should be displayed at line 931.Display the seating capacity, fuel capacity, and miles per gallon for all aircraft manufactured by Boeing. Information about each equipment type should be displayed only once. I have tried this: SELECT EQUIP_TYPE.EQ_SEAT_CAPACITY, EQUIP_TYPE.EQ_FUEL_CAPACITY, EQUIP_TYPE.EQ_miles_per_galFROM EQUIP_TYPEWHERE EQ_EQUIP_NO IN (SELECT MIn( EQ_EQUIP_NO) FROM EQUIP_TYPE where EQ_EQUIP_TYPE LIKE 'BOE%' GROUP BY EQ_EQUIP_TYPE) However it returns the query back empty. I am unsure where i went wrong.