Refer to the snippet, what gets printed?
Q: array( "Programming" => 95, "DataBase" => 85, "Web" => 74, ),…
A: Objective: A program should be developed to arrange numbers by the name of students in ascending…
Q: iostream> using namespace std; string name; int number; int age; string city;
A: It is defined as a direct descendant of C programming language with additional features such as type…
Q: PYTHON ONLY Please create a code that checks if 'user' favourite game is in the top 3 games. if…
A: Answer:
Q: Given float MyValues[ ]={-0.4, 3.14, 99.9, 119.99}; and int index=2; what will be displayed by the…
A: the solution is an given below :
Q: Define stubs for the functions called by the below main(). Each stub should print "FIXME: Finish…
A: Simply put, a stub is an empty function. It's a quick way to put the foundation of your programme…
Q: #include #include //user-defined functions question! using namespace std; struct Books { char…
A: Here is the c++ code.
Q: 1) Define a global variable Emps that is an array of pointers to employee structs. 2) Change your…
A: According to the question , we have to solve 5 parts in the questions but we will discuss first…
Q: Given float MyValues[ ]=(-0.4, 3.14, 99.9, 119.99); and int index=2; what will be displayed by the…
A: First we are defining array of float values with 4 items in array, and integer index variable with…
Q: Create a JavaScript function expression that meets the following requirements: _spellCorrection(…
A: Actually, program is an executable software that runs on a computer.
Q: what is Procedure-level array ?
A: The Procedure-level array is the array which is declared under the procedure, this array has the…
Q: #include #include "ContactNode.h" int main() { ContactNode* contactList = new ContactNode();…
A: The source code of the program #main.cpp #include <iostream>#include "ContactNode.h"int…
Q: pty string value, it will create a Variable object, otherwise it will create a VariableString…
A: #include <iostream>#include <string>using namespace std; class Variable {public: string…
Q: Review the code snippet. func printWelcomeMessage() { } print("Welcome to My ToDo List") Which…
A: The solution is given below
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: 1) Define a global variable Emps that is an array of pointers to employee structs. 2) Change your…
A: The solution to the given problem is below. ***According to Bartleby policy we are allowed to…
Q: is asked to select an option. Reporting, buying, or selling? (0=quit, 1=report, 2=buy, 3=sell): Use…
A:
Q: programming: C# (Csharp) Help me please kindly apply the C# METHOD on my program Here is my code:…
A: Below is the required code of swapping using method in C#: using System; namespace Program { //…
Q: Create a Python application that makes use of inputs, outputs, and sequence structures in Python.
A: import random """*************************Lists in…
Q: A floor plan is arranged as follows: • You may freely move between rooms 1 and 2. • You may freely…
A: In this problem we need to write the progam into the RUBY programming language. To solve this…
Q: <?php $marks = array( "Sara" => array( "Programming" => 95, "DataBase"…
A: The given code is written in PHP language and is an associative array which means that the array…
Q: Python Data = { "logs": [ { "logType": “xxxxx” }, { "logType":…
A: - We have to work on the count of "count" in the data used. - We are using python here.
Q: Insert =, as appropriate in the problem 1/6,1/8 B. 1/4, 1/3 C. 1/5 ,1/8
A: In the first problem given fractions are 1/6 and 1/8. Now if we cross multiply 1/6 and 1/8 we get:…
Q: A local bank is seeking for help to analyze transactions in the bank. They want to perform some…
A: The answer given as below:
Q: the following is a method for redefining a data type? union pointer struct typedef
A: the answe is an typedef
Q: Create a generic function sum that takes two integer/double numbers as paramet and prints the sum.…
A: We need to define a generic method that accepts a subclass of Number as parameters and compute the…
Q: function removeErrMsgs() { var errMessages = document.getElementsByClassName('msg'); for (let msg…
A: function removeErrMsgs() { var errMessages = document.getElementsByClassName('msg');for (let msg of…
Q: A floor plan is arranged as follows: • You may freely move between rooms 1 and 2. • You may freely…
A: In this problem we need to write the progam into the RUBY programming language. To solve this…
Q: String reversing game. Take a string from user and prints it's reverse on the console in php
A: <?php //Take input from user and store it into variable string $string = readline('Enter a…
Q: What benefits do enumeration types provide over a collection of named constants? What benefits does…
A: Enumeration An enumerated type is a user-defined type that is used to assign names to integer…
Q: Question 23 The information passed to a method in its parenthesis is called as:
A: option (B) is correct option.
Q: Question 2 The following code segment will print “Congratulation! Correct answer". [Keratan aturcara…
A: Given:
Q: Template parameter names among template definitions must be unique. T/F
A: Given: To declare statement true or false.
Q: Create a program that will be used as a POS (Point of Sale) system in a restaurant. The bill_total…
A: algorithm of the code :- 1. Enter the total bill amount : 2. individual_bill = bill_total /…
Q: please only c code dont use c++ and c#. Function: write the compare_restaurants_descending function…
A: Given restaurent structure - typedef struct{char restaurant_name[15];double rating;char…
Q: hank you soo much!
A: I have solved question 1. as guidelines. please find the code below:
Q: This is the C code I have so far #include <stdio.h> #include <stdlib.h> struct…
A: As per our guidelines, we are supposed to answer only 1st three parts. Kindly repost the remaining…
Q: Assign pizzasInStore's first element's numCalories with the value in pizzasInStore's second…
A: Algorithm for the code : 1. Start 2. Declare a struct to store information about a pizza. 2. Declare…
Q: C program: complete the calculator function to make the main program work
A: The basic arithmetic performed below, the code of calculator functions is completed below :
Q: #include #include typedef struct Number_struct { int num; } Number; void Swap(Number*…
A: Code: Swap Function void Swap(Number* numPtr1, Number* numPtr2) { int temp = numPtr1->num;…
Q: - In resizeYearArray, construct a temporary array of type Month that is size numMonths + 1. Iterate…
A: Below is the complete solution with explanation in detail for the given question about the…
Q: matrix = {{1,2},{4,5}} this in c++
A: Required:
Q: Programming Language: C++ I need the codes for extRomanType.cpp, extRomanType.h, main.cpp,…
A: #include <iostream> #include <string> #include "roman.h" using namespace std; void…
Q: C++ language. Using the coding prepared below, add and create the Undo last pop, Display undo list…
A: #include<iostream>#include<iomanip>#include<ctype.h> using namespace std; char…
Step by step
Solved in 2 steps with 1 images
- You have been tasked to write accounting software for a bank. Each account contains the following information: typedef struct{ - customer name (string) - savings account balance (double) - checking account balance (double) }Customer; typedef struct{ Customer *; }Bank; Task 1: Create a data structure to contain information about N banks. Take N as input from the user. Task 2: For each bank, ask the user how many customers have accounts in that bank and create an array of Customer structures. Task 3: Now, for each bank, take the names, savings, and checking account information as input. Task 4: Write a function displayAllCustomers to display the information about all customers. Task 5: Write a function to delete all memory that you have dynamically allocated in Tasks 1 and 2.Which one of the following is used to redefine a data type? pointer struct typedef unionC LANGUAGE. According to the instructions, the function will be written. ArrayList search_restaurants
- Javascript Programming <script>function getCardType() {var cNum1 = document.getElementById("ccNum1").value;var cardname = "";if (cNum1 != "") {if (cNum1.startsWith("4")) {cardname = "Visa";} else if (cNum1.startsWith("5")) {cardname = "MasterCard";} else if (cNum1.startsWith("6")) {cardname = "Discover";} else if (cNum1.startsWith("3")) {cardname = "American Express";}}document.getElementById("cardType").innerHTML = cardname;}</script></body>i am writing a code in python in order to create an employee management application for a fictional paper company. Each employee is represented by 3 attributes: name, age and position I need to define and use the following functions display_employees(): (this needs a loop inside of the function) allocate_department (returns single list containing information) display_department_employees() (needs a loop inside of this function and uses allocate_department) head_of_department() (uses allocate_department and need to use a loop inside of this function) display_department_employees() (function that displays all info for all department. ThanksIn Python, grades_dict = {'Wally': [87,96,70], 'Eva': [100,87,90], 'Sam': [94,77,90], 'Katie': [100,81,82], 'Bob': [83, 65, 85]} Ask user to enter the names of the rows, i.e., indices. You can use: len(grades) to get the number of rows of the DataFrame. In addition, using the sort_index() method, ask user whether they wish to sort by rows or by columns and whether to sort in ascending or descending order (do not use any if-else statements)
- function phone (inputtext) { var phonenum = /^\d{8}$/; if(inputtext.value.match(phonenum)) { return true; } this script will restrict the user to enter only. . digit phone number. ........ O a. 6 b. 8 с. 9 Od. 10Given C code: #include <stdio.h>typedef struct compound { float realNumber; float imaginaryNumber;} compound; compound add(compound n1, compound n2); int main() { compound n1, n2, temp; printf("For the first compound number \n"); printf("Enter the real and imaginary parts: "); scanf("%f %f", &n1.realNumber, &n1.imaginaryNumber); printf("\nFor the second compound number \n"); printf("Enter the real and imaginary parts: "); scanf("%f %f", &n2.realNumber, &n2.imaginaryNumber); temp = add(n1, n2); printf("Sum = %.1f + %.1fi", temp.realNumber, temp.imaginaryNumber); return 0;} compound add(compound n1, compound n2) { compound temp; temp.realNumber = n1.realNumber + n2.realNumber; temp.imaginaryNumber = n1.imaginaryNumber + n2.imaginaryNumber; return (temp);} Task: Please change the C program above to execute complicated numeral multiplication. Hint: (e+fi)(g+hi) = (eg−fh) + (eh+fg)iCreate the following c functions:- void acceptSubscribers(Subscriber *, int size); // accept all subscriber inputs- void displaySubscribers(Subscriber *, int size); // display all subscribers- void displaySubscriber(Subscriber); // display 1 subscriber- Subscriber * getSubscribersWithPlan(Subscriber *, int size, char *); // get subscribers with desired plan
- Analyze the following code and fill in the output. ## Employee List name = ["Joe", "Janice", "Ahmed", "Maria"] ## create dictionaries for wages and hours ## Use variable names. as keys dWage = {"Joe":17.55, "Janice":12.35, "Ahmed":22.95, "Maria":18.75} dHours = {"Joe":40, "Janice":42, "Ahmed":37, "Maria":45} ## Caluculate gross pay for each employee if dHours [name [0]]>40: dGPO = dWage [name [0]] *40 + 1.5 * dWage [name [0]]* (dHours [name [0]]-40) dGPO = dWage [name [0] ] *dHours [name [0]] else: if dHours [name [1]]>40: dGP1 = dWage [name [1]] *40 + 1.5 * dWage [name [1]]* (dHours [name [1]]-40) dGP1 = dWage [name [1]] *dHours [name [1]] if dHours [name [2]]>40: dGP2 = dWage [name [2]]*40 + 1.5 * dWage [name [2]]* (dHours [name [2]]-40) dGP2 = dWage [name [2]] *dHours [name [2]] if dHours [name [3]]>40: dGP3= dWage [name [3]]*40 + 1.5 * dWage [name [3]]* (dHours [name [3]]-40) dGP3= dWage [name [3]] *dHours [name [3]] ## Display variable and results print (name [0], 'worked', dHours…#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define NAME_LEN 25 #define MAX_PARTS 100 struct part { int number; char name[NAME_LEN + 1]; int on_hand; double price; } inventory[MAX_PARTS]; int num_parts = 0; int find_part(int number); void insert(void); void search(void); void update(void); void print(void); int read_line(char str[], int n); int main(void) { char code; for (;;) { printf("Enter operation code: "); scanf(" %c", &code); while (getchar() != '\n') /* skips to end of line */ ; switch (code) { case 'i': insert(); break; case 's': search(); break; case 'u': update(); break; case 'p': print(); break; case 'q': return 0; default: printf("Illegal code\n"); } printf("\n"); } } int find_part(int number) { int i; for (i = 0; i < num_parts; i++) if…please only c code dont use c++ and c#. * Function: create_restaurant * Function: search_restaurants * Function: update_restaurants * Function: print_restaurant * Function: delete_restaurants write the functions according to the given parameters. #include <stdio.h>#include <stdlib.h>#include <string.h> #define N 2000#define D 250 // A simple restaurant structuretypedef struct{char restaurant_name[15];double rating;char city[31];unsigned short opening_year;} RESTAURANT_t, *RESTAURANT; // Arraylist structuretypedef struct ArrayList_s{void **list;int size;int capacity;int delta_capacity;} ArrayList_t, *ArrayList; /*** Function: create_restaurant* ---------------------------* This function creates a restaurant with the given parameters. Rating of the restaurant which is a rational number between 0 and 10.*/RESTAURANT create_restaurant(char *restaurant_name, double rating, char *city, unsigned short opening_year){// TODO: Fill this block. } * Function:…