ssume that the value Sutype='doctor'; is stored in the $ SESSION array using the index type. Vhich of the following statements will display the image heart.jpg for doctor users. O • session_start(); • ifisset($_SESSION[type]) { • iffS_ SESSION["type]=="doctor") echo ""; } O • session_start): • S SESSION['type']='doctor; • echo "cimg src=heart.jpg>"; O echo "cimg src=heart.jpg>": O ifisset(S_SESSION['type']) echo "";
Q: AppointmentList -_appointmentList: Array = [] +constructor( +get appointmentList(): Array…
A: In this program it is asked to provide two classes 1. An Appointment class having all data member…
Q: Write an application that; creates an undergraduate student object, setTuition(), set CGPA to 3.00…
A: The given problem is related to Java programming where the requriement is to build the classes…
Q: The Data class contains: • a static array called courses. The array should be initialized by 4…
A: Note :- You have not mention the language ,So i am doing your question in Java language . Textual…
Q: 1. $employee3['eId'=>' ST1','eName'=>'Nasser Al- Kindi','estatus'=>'M'; 2. $statuses=[…
A: It is defined as the list-like objects whose prototype has methods to perform traversal and mutation…
Q: Which of the following data structures is best used to store homogeneous data clements? A Arrays. B…
A: Explanation: Arrays are knows as Homogeneous Data Structures because they store elements of the same…
Q: Section 1 - Create a code chunk where you assign a vector of three numbers representing your month,…
A: Answer:-
Q: For this assignment *c++ & no ifstream, you need to build a class that contains basic information…
A: Here I have provided code in which you can do changes as per your need. Code:- // Include all the…
Q: 6- Which of the following adds 95 to the array element that is currently storing 14? int [, ]x=…
A: x is a two dimensional array and the indexing starts from 0
Q: Q/Linespace command consist of the first number, final number of the vector and the number of…
A: Line space command is used to generate linearly spaced vectors. It gives direct control over the…
Q: 2- The purpose of the method resize() in the IntegerArray class below is to dynamically change the…
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful.…
Q: 1. Hotel Reservation System Note: Implement OOP Concepts(Class, Object, Inheritance, Information…
A: Requirement specificationAs a result of the requirement elicitation carried out, therequirement of…
Q: contains 10 rows the length of the first row is 10, next row is 9…and the last row is 1 each index…
A: Java programming language is an object-oriented programming language, that's used to develop…
Q: 1. Which of the following will display the last value in vector x? a. cout << x[last] << endl; b.…
A: C++ container as the name says is an object that stores a collection of objects of similar type. For…
Q: Define two arrays with 5 elements each for the key and its values. When INSERT button is clicked,…
A: Note: Answering in python as no language is mentioned. Design the form as per the given layout.…
Q: The dataset file in assets/grades.txt contains a line separated list of people with their grade in a…
A: Question given - A python program code is given, find and correct error in this code so it can run…
Q: Create a javascript file and use it as script for the products.html page. In the script, create an…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: studentNumber (int), courseCode (char array [8]), finalGrade (float). 200201078 CENG104 89.75…
A: Declare an integer variable to store user input for options from 0 to 6. Declare variables to hold…
Q: the state and variable display must be: Unsorted Partition Reference Index: 0, Traversing Index: 7,…
A: The given input is:- ["apple", "avocado", "orange", "banana", "strawberry", "pineapple", "plum",…
Q: Given the following arrays 1. $shop=['shCode'=>' Shl','shName'=>'lulu…
A: Given the code for sending managers data to the web browser from the managers array in dynamic radio…
Q: includeciostream> using namespace std; struct Employee int Id; char Name [25]; int Age; long Salary;…
A: In problem there is structure, main function and a display function.
Q: function removeErrMsgs() { var errMessages = document.getElementsByClassName('msg'); for (let msg…
A: function removeErrMsgs() { var errMessages = document.getElementsByClassName('msg');for (let msg of…
Q: Given the following arrays 1. $clinic=['cCode'=>'CN1',' cName'=>'badr assama','cType'=>'V']; 2.…
A: 4) if ($a==$cType) echo "checked";
Q: YOUR TASK IS TO IMPLEMENT A JAVA APPLICATION WHICH WILL FUNCTION AS A TYPE OF STUDENT REGISTRATION…
A: It is defined as programs can be asked from control statements, array, string, oops etc. Java basic…
Q: Here you are required to draw a bar chart of batchwise strength of Avionics Department with…
A: import matplotlib.pyplot as plt import numpy as np fig, ax = plt.subplots() Batch =…
Q: 9. populateSelectMenu a. Depends on the createSelectOptions function we created b. Receives the…
A: As per Our Guidelines we are supposed to answer first question only,Kindly re post another parts in…
Q: Code a hbs file named fruits.hbs that utilizes Handlebars placeholders and Handlebars helpers to…
A: fruits.hbs <!-- HANDLEBARS FRUITS TEMPLATE --> <h1>Fruits</h1> <!-- CREATING A…
Q: CHALLENGE 6.6.3: Arrays. АCTIVITY Jump to level 1 Assign each element in the array userVals with the…
A: CODE AND OUTPUT:
Q: T/F Q. By default if any regular file is created, the number of link is displayed as 1.
A: Question. By default if any regular file is created, the number of link is displayed as 1. True…
Q: te a UserService Interface with following methods. addUser(User user) updateUser(User user)…
A: Program: import java.util.ArrayList;// interface namepublic interface UserService { // all…
Q: A client with a completed main function is provided. The main function should not be modified. You…
A: The answer is given below:-
Q: Suppose the file nums.txt contains the following data: 15 9 -11 22 -7 -18 21 20 -19 12 Suppose…
A: In the given code simply reading each element from the file into num variable if(num%2==1) means…
Q: Write the statement that declares and instantiates an array of type double using the identifier…
A: Arrays are the simplest linear data structure that are used to hold data of same data type, so we…
Q: Task 1: In the driver file (main.cpp), perform the following sub-tasks. 1. Create two objects of…
A: In the C++ program, create the class Main not main because main is reserved and it is used for…
Q: Assume that the value Sutype='doctor"; is stored in the $ SESSION array using the index type. Which…
A: The question is on finding correct statement with respect to the given question.
Q: Student* func () { unique ptr arr[] make_unique ("csc340") ); // #1 Insert Code int main () ( // #2…
A: Here is the code with explanation:-
Q: Please use javascript to write the function. write a function editDateTime() that runs when the…
A: Explanation: 1) An appointment's date and time can be kept up to date with the help of the function…
Q: Surround the call to processNumbers with a try-catch statement. The catch block should assign…
A: The fixed javascript source code has been provided with an explanation in the next step.
Q: My code below. I am getting an error when trying to create my adjacency matrix. i dont know what i…
A: def readMatrix(inputfilename): ''' Returns a two-dimentional array created from the data in the…
Q: QUESTION 9 A given file can only be opened once per program -- you cannot close it and open again…
A: Q9. False Q10. ArrayList
Q: 1 reference private void dataGridViewl_CellContentClick(object sender, DataGridviewCellEventArgs e)…
A: The error is in 3 line As mention below.
Q: Which of the following displays the number of elements contained in theintItems array?a.…
A: Length property: The length property is used in jQuery to get or set the length (i.e the number of…
Q: Assume array of 5 dynamic objects has been created (dynarrObj[5]). Which of the following is the…
A: delete is used for deallocation
Q: Add a command to this chapter's case study program that allows the user to view the contents of a…
A: • filesys is the program that obtains information about the filesystem present in the PC. • When…
Q: sincludeciostream> using namespace std; struct Employee { int Id; char Name [25]; int Age; long…
A: #include<iostream>using namespace std;//declaring structurestruct Employee{ int Id; char…
Q: Create a file called index.html and a file called min-max.js. In min-max.js create a class called…
A: By using java script
Q: (b) display dict(adict) that takes a dictionary as the input and prints all keys and values of the…
A: Kindly Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Step by step
Solved in 2 steps
- Assume that the value Sutype='doctor'; is stored in the $_SESSION array using the index type. Which of the following statements will display the image heart.jpg for doctor users. O • session_start(): • S SESSION['type']='doctor; • echo "simg src=heart.jpg>": O • session_start(): • ifisset($ SESSION['type']) { if(S_SESSION['type')=='doctor") echo ""; } O echo ""; O ifisset($ SESSION['type']) echo "";Assume that type='doctor' is data stored in the $_SESSION array. Which of the following can ONLY display the image heart.jpg for the doctor users? a. session_start(); if($_SESSION['type']=='doctor') echo ""; b. session_start(); $_SESSION[type]= 'doctor'; echo ""; c. echo ""; d. if(isset($_SESSION['type']) echo "";<?php $marks = array( "Sara" => array( "Programming" => 95, "DataBase" => 85, "Web" => 74, ), "Diana" => array( "Programming" => 78, "DataBase" => 98, "Web" => 66, ), "Amy" => array( "Programming" => 88, "DataBase" => 76, "Web" => 99, ), ); // 1 : sort the array by the name of student from A-Z; // 2 : search if Ram is exist :// if exiset print the value; else : student does not exist
- <?php $marks = array( "Sara" => array( "Programming" => 95, "DataBase" => 85, "Web" => 74, ), "Diana" => array( "Programming" => 78, "DataBase" => 98, "Web" => 66, ), "Amy" => array( "Programming" => 88, "DataBase" => 76, "Web" => 99, ), ); ?> 1 : sort the array by the name of student from A-Z; 2 : search if Ram is exist : if exiset print the value; else : student does not exist 3 : calculate the avg of each student and print it as : the avg for Sara is : 84.66Case Problems - 1- In Chapter 8, you modified the EventDemo program for Carly’s Catering to accept and display data for an array of three Event objects. Now, modify the program to use an array of eight Event objects. Prompt the user to choose an option to sort Events in ascending order by event number, number of guests, or event type. Display the sorted list, and continue to prompt the user for sorting options until the user enters a sentinel value. Save the file as EventDemo.java.String data type is not allowed you can make use of CString instead (char arrays with null termination). Q1. Create an Input File with the following information regarding to inventory: Item_Id Price Quantity Availability Add atleast 10 records in input file. Where item_id will be of type int , price will be of type double , quantity will be of type int and Availability will be of type char representing the status y for yes the product is available and n for not available. Write a menu driven C++ program to perform the following four tasks in a single file, if user press option 1 the task 1 get solved and so on: 1. Display the Item_Id of the products which are not available in stock on screen. 2. Copy all the available products data in a separate file. 3. Read the original input file and update the price of each item by 10 percent increase in the original price and save the complete information in separate file. 4. Try to save the information processed in part 3 in the original…
- Q2:<?php $marks = array( "Sara" => array( "Programming" => 95, "DataBase" => 85, "Web" => 74, ), "Diana" => array( "Programming" => 78, "DataBase" => 98, "Web" => 66, ), "Amy" => array( "Programming" => 88, "DataBase" => 76, "Web" => 99, ), ); // 1 : sort the array by the name of student from A-Z; // 2 : search if Ram is exist :// if exiset print the value; else : student does not exist // 3 : calculate the avg of each student and print it as ://the avg for Sara is : 84.66#Data is given in the order: Serial Number | Item Name | Quantity | Priceprice_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]] #Write Code to increase the price of all the items by 50 taka #Code1 #Write code to add a new item to the list using user input #Code2 print()#Print the list using nested loops #Code3 #Sample output given below: Enter Serial: 05Enter Item Name: MonitorEnter Quantity: 200Enter Price: 50 01Keyboard4250.0-----------------02Mouse4200.0-----------------03Printer2350.0-----------------05Monitor20050-----------------Q2:<?php $marks = array( "Sara" => array( "Programming" => 95, "DataBase" => 85, "Web" => 74, ), "Diana" => array( "Programming" => 78, "DataBase" => 98, "Web" => 66, ), "Amy" => array( "Programming" => 88, "DataBase" => 76, "Web" => 99, ), ); // 1 : sort the array by the name of student from A-Z; // 2 : search if Ram is exist :// if exiset print the value; else : student does not exist