n a string, the last item is at position (or index) ___________. A 1 B 0 C 10 D -1
Q: program to convert capital letter into small letter. Write down the major changes you make in .text…
A: program to convert capital letter into small letter.
Q: Modify the following code to do the following when the the paragraph is clicked: Prompt the…
A: code :-- <!DOCTYPE html><html><body> <!--user have to click here…
Q: Create a web page that produces the following output. Fruit Table Fruit Cree Name Calories (100g)…
A: Create HTML(HyperText Markup Language) web page document. In the body, the section creates the…
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: The below, python dictionary (my_fruits_dic) holds fruits and their price. my_fruits_dic = {…
A: Lets see what needs to be done.
Q: Make Change takes one number as input, representing dollars only, and then produces a list of…
A: The given STARTER CODE is: <!DOCTYPE html><html><body><script> var m=534; //…
Q: Create a JavaScript Arrow fiunction that meets the following requirenments: • Authored using arrow…
A: I have provided HTML CODE ( having internal JAVASCRIPT ) along with CODE SCREENSHOT and…
Q: State if the following statement is True or False. It is possible that a loss-less decomposition…
A: Your answer is given below as you required.
Q: 1. Create a list that contains a numeric vector (1 to 30), a sequence of number from 1 to 30 with…
A:
Q: Write a program called WebPageGenerator that asks the user their name, then asks the user to enter a…
A: The code is given below def filecreate(): name = input("Enter your name: ")…
Q: Consider a string as mentioned: “Hi! I am a student at Kean University. This is my junior year and…
A: The query is about doing the string manipulation using different operations. It has given a string…
Q: 1. Write a program that utilizes string literals and varlables 2. Differentiate between a literal…
A: - We need to highlight the codes for the provided scenarios. - We need to complete three solutions…
Q: Language c++: 1. Given string str is "Great", which choice has all matching expressions? Group…
A: As per our rules, we should answer only the first three questions when multiple questions are posted…
Q: m. Make a php web page that prompt the user for 3 number values representing red, green and blue and…
A: It is defined as a server side scripting language that is used to develop Static websites or Dynamic…
Q: can you make and HTML file for this code please function validate() { var x =…
A: Here I have created the HTML code. In the head tag, I have created the script tag and inside it, I…
Q: 1 PEE] 3. What will be the output for the program below? Hincladeciosresm> Hinclodo it main s s ine…
A: In this answer I will be discussing about the question which is printing the sentence.
Q: #include using namespace std; int main() { string name,address,c_qual,c_spec,c_status; int…
A: As I go through the code I found you didn't check that entered value is an integer or not. so you…
Q: Create a JavaScript Arrow function that meets the following requirements: Authored using arrow…
A: The below code represents the JavaScript arrow function:
Q: Without using a loop, write a program to calculate first seven values of the Fibonacci number…
A: Calculate first seven values of the Fibonacci number sequence, main Irvine 32.inc main PROC mov eax…
Q: First screenshot is what the assignment wants me to do and the expected output. Second screenshot is…
A: All of the steps mentioned in the question are implemented and coded with explanatory comments in…
Q: Task 2: Using XHTML and JavaScript you have create a web page Implement the function…
A: Code: function Searchingstrings(string, searchString){ let startIndex=0; let…
Q: Please write a a php scripts with html to merge two arrays.Please use the inline php inside the…
A: You can use the PHP array_merge() function to merge the elements or values of two or more arrays…
Q: in phython langauge: Write a program which reads the number of blocks the builders have,and outputs…
A: Program approach: Inputted blocks from user. Initialized height with 0 and initialized raw with 1.…
Q: QUESTION 15 Consider the statements below: String a = "History of the "; String b = "New York Times,…
A: String Concatenation : In string concatenation, two strings are joined in such a way that one…
Q: Hello I need help formatting this code: This is my code: def display_characters(character_list,…
A: Coded using Python 3.
Q: hi can you please write this code function avg(){ vara = parseInt(prompt("Enter 1st number"))…
A: <!DOCTYPE html><html><head> <title> Average of four numbers </title>…
Q: I used the let keyword inside the block.As I called the function within the block only.Why the error…
A: Variable declaration using the let keyword can have Block Scope. Example:- var x = 12;// Here x is…
Q: PROBLEM: A canteen sells soft drink for P10 and sandwich for P15. Design a page that accepts the…
A: Following is the code as per your requirements: <!DOCTYPE html> <html lang="en">…
Q: According to the below screenshot of an app, build an Android App that has a set of java files that…
A: Android app that has a set of java files that implement an adapter with Recyclerview.
Q: write a program for adding content of the following picture in HTML page اکتب برنامج بلغة HTML…
A: We are required to design the given HTML page
Q: HTML based question not JAVA Assume your html file contains the following code: Create a function…
A: According to the Question below the Solution: Output:
Q: Why do we use subi $v1,$a0,0x20 instruction in func1?
A: func1: subi $v1,$a0,0x20 jr $ra
Q: 1. Write a program that utilizes string literals and variables. 2. Differentiate between a literal…
A: A string literal is where you specify the contents of a string in a program.
Q: Problem D. Find URLs HTML is a language for representing documents designed to be displayed by a web…
A: Given The answer is given below.
Q: Now three isn't going to the loop. How can I prompt the user to enter the college and city five…
A: Now three isn't going to the loop. How can I prompt the user to enter the college and city five…
Q: A(n) ________________ element indicates that its contents should be emphasized. A emphasize…
A: A(n) ________________ element indicates that its contents should be emphasized. emphasize focus…
Q: Given the following array 1. $olinic=['cCode'=>'CN1', 'cName'=>'badr assama', 'cType'=>'V']; Which…
A: Here have to determine correct option for problem about php code.
Q: A php program. Make a web page that prompt the user for 3 number values representing red, green and…
A: <!DOCTYPE html><html><head> <title>Color…
Q: alphabet = "abcdefghijklmnopqrstuvwxyzæøå ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ " l= len(alphabet) def…
A: PLEASE DO SUPPORT FOR MY EFFORTS, THANKS!ANSWER:alphabet = "abcdefghijklmnopqrstuvwxyzæøå…
Q: Write an application that prints the following diamond shape. Don’t print any unneeded characters.…
A: Program objective: The java program Diamond.java is to print a diamond shape pattern . There is…
Q: Which of the following is not a valid data type? A. Integer B. Real C. Decimal D. String Which of…
A: Let's answer all the questions: 1. In SQL(Structured Query Language) Integer, Real and Decimal…
Q: Which of the following is not a valid data type? A. Integer B. Real Q1 C. Decimal D. String Which of…
A: VB.Net: VB.Net is the object oriented programming language. It is the structured language and it is…
Q: Create a JavaScript Arrow function that meets the following requirements: _missingSpace(string) •…
A: Introduction Create a JavaScript Arrow function that meets the following requirements:…
Q: Please write a a php scripts with html to merge two arrays. Please use the inline php inside the…
A: -- We can use php inside the HTML body tag using the PHP start tag <?php and the PHP end tag…
Q: wordBag is type BagInterface. What is printed? wordBag.add("apple"); wordBag.add("banana");…
A: Bag interface in java An interface that describes operation of bag of objects. Methods defined in…
Q: 1. '\0' is used in a c string to : a. show the start of a c string b. show where a c string…
A: '\0' is used in a c string to show where a c string ends for functions that use the c…
Q: Write a program that uses a loop to calculate the first seven values of the Fibonacci number…
A: Since the programming language is not mentioned, I am using java language. Algorithm: 1. Start 2.…
n a string, the last item is at position (or index) ___________.
A |
1 |
|
B |
0 |
|
C |
10 |
|
D |
-1 |
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- A(n) ________________ element indicates that its contents should be emphasized. A emphasize B focus C strong D em JavaScript support which of the following data types? A Numbers B char C int D double(3) Write a C# .NET Core Console App that asks the user to enter a number and then displays a string with the original number followed by the reverse of the number. For example, if the user entered 123 as an int you program should create a string "123321" and display it on the screenPLEASE HELP ME RUN THIS CODE #include <iostream>#include <string>using namespace std;string player1,player2,word,underscore,guess;int wrong=0;int main (){string copy = word; cout << "----------------------Hello! Welcome to the HANGMAN game!---------- ----------" << endl;cout << "Please type in your name, PLAYER 1" << endl;cin >> player1;cout << "Please type in your name, PLAYER 2" << endl;cin >> player2;cout << "OK " << player1 << " and " << player2 << ". Let's start with the game!" << endl;cout << player1 << " please input the word you want " << player2 << " to guess." << endl; cin >> word; //spacefor (int x=0; x<30; x++){cout << endl;} //UNDERSCOREwhile (underscore.size() != word.size()){underscore.push_back('_');} cout << underscore << endl; //MAIN WHILEwhile(wrong<12){cin >> guess; //IF GUESS ISNT…
- Zybook Lab highway_number = int(input())if(highway_number>=1 and highway_number<=99): if(highway_number%2==0): print("I-"+str(highway_number),"is primary, going east/west.") else: print("I-"+str(highway_number),"is primary, going north/south.") elif(highway_number>=100 and highway_number<=999): highway_number_string = str(highway_number) length = len(highway_number_string) rightmost_digits = int(highway_number_string[length-2:length]) if(rightmost_digits==0): print(highway_number,"is not a valid interstate highway number.") elif(rightmost_digits%2==0): print("I-"+str(highway_number),"is auxiliary, serving I-",rightmost_digits,"going east/west.") else: print("I-"+str(highway_number),"is auxiliary, serving I-",rightmost_digits,"going north/south.")else: print(highway_number,"is not a valid interstate highway number.") i am getting whitespace error on output : I-290 is auxiliary, serving I- 90 going…Based on coding below, help me fix all the error until the program can be run properly and neatly #include <iostream>#include <iomanip>#include <ctype.h>#include <string> using namespace std; struct nodeBankAccount{string bank_acc_name;string bank_acc_num;double bank_acc_bal; nodeBankAccount*link;}; nodeBankAccount *head, *rear;nodeBankAccount *current;nodeBankAccount *newNode;nodeBankAccount *deleteBank;nodeBankAccount *previous;nodeBankAccount *found; void addBankAccount(){char answer;int insertOption; do{newNode = new nodeBankAccount; cout << "Fill in the details below" << endl;cout << "Bank Account Name: ";cin>>newNode->bank_acc_name;cout << "Bank Account Number: ";cin>>newNode->bank_acc_num;cout << "Bank Account Balance: " << "RM ";cin>>newNode->bank_acc_bal;newNode->link = NULL; if(head == NULL){head = newNode;}else{cout<<"Press 1 to insert the new record at front of the…A 3-character string, userString, is read from input. Replace the first character in userString with '=' if the first character is alphabetic. Replace the second character in userString with '$' if the second character is alphabetic. If neither condition is true, userString is not changed. Ex: If the input is gwv, then the output is: =$v #include <iostream>#include <string>#include <cctype>using namespace std; int main() { string userString; getline(cin, userString); /* Your code goes here */ cout << userString << endl; return 0;}
- Given string userGreeting on one line and string userName on a second line, append a space to userGreeting. Then, append userName to userGreeting. Lastly, append a period to userGreeting. Ex: If the input is: Hey Wilma Lee then the output is: Hey Wilma Lee. #include <iostream>#include <string>using namespace std; int main() { string userGreeting; string userName; getline(cin, userGreeting); getline(cin, userName); /* Your code goes here */ cout << userGreeting << endl; return 0;}#include <ctime>#include <cstdlib>#include<iostream> using namespace std; char choice;void printMenu();int getSelect(int&);bool isUnique(int[], int, int);void printArray(int[], int); int drawing[] = { 56,34,1,8,12 }; int main(){ int sel; printMenu(); getSelect(sel); return 0;} void printMenu(){ cout << " Welcome to the Lottery\t\n"; cout << "---------------------------------\n"; cout << " 1. Quick Pick\n"; cout << " 2. Pick Numbers\n"; cout << " 3. Exit\n";} void selection1_output(){ int r[5]; for (int i = 0; i < 5; i++) { r[i] = 1 + (rand() % 69); } cout << "Players Ticket : "; for (int i = 0; i < 5; i++) { cout << r[i] << " "; } cout << "\nDrawings : "; for (int i = 0; i < 5; i++) { cout << drawing[i] << " "; } int same = 0; for (int i = 0; i < 5; i++) { for (int j = 0; j…Morse code is a code where each letter of the English alphabet, each digit, and various punctuation characters are represented by a series of dots and dashes. Table 8-4 shows part of the code. Write a program that asks the user to enter a string, and then converts that string to Morse code. 366 Chapter 8 More About Strings Table 8-4 Morse code Character Code Character Code Character Code Character Code space space 6 – . . . . G – – . Q – – . – comma – – . . – – 7 – – . . . H . . . . R . – . period . – . – . – 8 – – – . . I . . S . . . question mark . . – – . . 9 – – – – . J . – – – T – 0 – – – – – A . – K – . – U . . – 1 . – – – – B – . . . L . – . . V . . . – 2 . . – – – C – . – . M – – W . – – 3 . . . – – D – . . N – . X – . . – 4 . . . . – E . O – – – Y – . – 5 . . . . . F . . – . P . – – . Z – – . . Gaddis Tony. Starting Out with Python (2-downloads) (p. 366). Pearson Education. Kindle Edition.
- Prompt the user for data points. Data points must be in this format: string, int. Store the information before the comma into a string variable and the information after the comma into an integer. The user will enter -1 when they have finished entering data points. Output the data points. Store the string components of the data points in a list of strings. Store the integer components of the data points in a list of integers.Ex: Enter a data point (-1 to stop input): Jane Austen, 6 Data string: Jane Austen Data integer: 6// Program 4.8.1 #include <iostream>#include <cstring>using namespace std;int main (){char str1[10] = "Hello";char str2[10] = "World";char str3[10];string str4 = "Hello";string str5 = "World";string str6;int len1, len2 ;cout << "==============================="<< endl;cout << "Copy string"<< endl;cout << "-------------------------------"<< endl;str6 = str4;cout << "str6 : " << str6 << endl;strcpy( str3, str1);cout << "strcpy( str3, str1) : " << str3 << endl<<endl;cout << "==============================="<< endl;cout << "Concatenates string"<<endl;cout << "-------------------------------"<< endl;str6 = str4 + str5;cout << "str4 + str5 : " << str6 << endl;strcat( str1, str2);cout << "strcat( str1, str2): " << str1 << endl<<endl;cout << "==============================="<< endl;cout << "String…Please make me a script or explanation on how this source code functions and what are the codes it has #include<iostream> using namespace std; struct seniorcitizen { int number; char firstname[50]; char middlename[50]; char lastname[50]; string address; int age; string healthstatus; } s[3]; int main() { cout << "Enter information of senior citizens: " << endl; // storing information for(int i = 0; i < 3; ++i) { s[i].number = i+1; cout << " Sno: " << s[i].number<< endl; cout << "Enter first name: "; cin >> s[i].firstname; cout << "Enter Middle Name: "; cin >> s[i].middlename; cout << "Enter Last name: "; cin >> s[i].lastname; cout << "Enter address: "; cin >> s[i].address; cout<< "Enter age :"; cin>>…