[ { "firstName": "Abdo ", "lastName": "Saleh", "email": "ab@iii.com", "password": "123455" }, { "firstName": "Ahmed ", "lastName": "Khaled", "email": "ak@iiicom", "password": "33242" } ] I have these users when I create a new I want it add under theses users in json file using Kotlin
Q: Can you please help me write the code using the instruction below because my code won't run, it just…
A: the code and output is in the 2nd steps:
Q: Write a C program to do the following tasks: 1. Create file midterm.txt contains at most 100…
A: #include<stdio.h>#include<stdlib.h>int statistic(int arr[],int n,float* avg,int*…
Q: 1. int boot [10]; 2. int x; 3. у %3Dfoo(x); 4. y foo(boot[5]); 5. у%3Dfoo(&х); 6. у%3D foo(boot); 7.…
A: Note: Answering only the first 3 questions as per the policy. 38). Suppose an array is declared as…
Q: c++/ cpp question 1- Define a class student with the following fields: a. First name b. Last name…
A: class student a. First name- stringb. Last name- stringc. ID- integerd. Number of courses enrolled…
Q: 1. Write a C++ program that creates a two-dimensional array or table of characters. The number of…
A: Given: a) C++ program to store random characters in an array and count the occurrences of each…
Q: What happens when an object's reference count is zero? The object is no longer referenced. The…
A: Given: When an object's reference count reaches 0, what happens?
Q: Write a C+ program that contain a menu rto call user defined functions on a one dimendional array:…
A: The C++ program is given below.
Q: c++ Redo Programming Exercise 6 of Chapter 8 using dynamic arrays. The instructions have been…
A: Note : a)Verify the file name of input file. In the program it is given like…
Q: A set of names can be represented as a A. two-dimensional array of characters B. one-dimensional…
A: A set of names can be represented as a A. two-dimensional array of characters B.…
Q: Pointers may be assigned which of the following values? Select one: a. Any integer values. b. An…
A: Pointer is a variable which is used to store the address of another variable
Q: a) The following main function and its output are given. Class Address has only one private static…
A: According to the Bartelby guidelines we are suppose to answer only one question at a time. Kindly…
Q: Question 21 Multiple Choice, Select One: Which of the following causes a memory leak Making too many…
A: Given : 1) Which of the following causes a memory leak O Making too many pointers 0 Asking for too…
Q: 1- Define a class student with the following fields: a. First name b. Last name c. ID d. Number of…
A: 1- Define a class student with the following fields:a. First nameb. Last namec. IDd. Number of…
Q: 2. Fill in the values indicated by the pointer variable expressions below, based on the following…
A: Given linked list is Double circular linked list. It contains pointers to previous node and next…
Q: Write a oop c++ program to implement a telephone directory using formatted I/O file. You should…
A: Solution: Given: As per the problem statement, we have to write a program that should be capable of…
Q: Write a C++ program that contain a menu rto call user defined functions on a one dimendional array :…
A: Solution: Given, 1- fill the array with integers >20 2- print the content of the array 3- find…
Q: . Using one dimensional array create a java program that will compute SUM and AVERAGE of the given…
A: Here, for loop is used to compute the sum of array elements and then divide the sum by a number of…
Q: Create a class named as arithmetic Operations Create functions that could ADD, SUBTRACT, MULTIPLY,…
A: As the given arithmetic operations can be performed on the data types like int, float, double, etc.…
Q: Write a script that will display the element of a single dimensional array of numbers in reverse by…
A: Arrays in c: A variable that may…
Q: Apex SalesforceWrite a Batch Apex Class to update the Account Name using good demonstrated…
A: Write a Batch Apex Class to update the Account Name using good demonstrated Example Details -…
Q: Write a C++ program that contain a menu rto call user defined functions on a one dimendional array:…
A: Given, 1- fill the array with integers >20 2- print the content of the array 3- find all…
Q: Write a C++ program that stores the data of football players on a team. It should store the Player’s…
A: C++ is a general-purpose programming language which is created by Bjarne Stroustrup as an extension…
Q: Write a C+ program that contain a menu rto call user defined functions on a one dimendional array:…
A: Solution: Given, 1- fill the array with integers >20 2- print the content of the array 3- find…
Q: What happens when an object is no longer referenced? O Nothing until the problem terminates O The…
A: In java the garbage collector periodically frees the memory used by objects that are no longer…
Q: Write a script that will find the sum of the array elements using pointers. Conditions a) The user…
A: The Answer is in step-2.
Q: 8.11 LAB: Movie show time display Java Please Write a program that reads movie data from a csv…
A: ANSWER:-
Q: Which of the following statements are true for ordinary/automatic arrays in C++? (select all that…
A: Actually, array is a collection of elements.
Q: I need answer of three questions 1.Three of the following expressions have the same value. Which of…
A: 1) Assume A variable that is located at memory location 0xf55 and it contains 46 and assume that ptr…
Q: Implement a C++ program to create a class as Book having attributes as Title, book_id, publisher,…
A: include<iostream.h>#include<conio.h>#include<stdio.h>#include<string.h>…
Q: Please answer it in Python We want to manage the exam scores of the students in a group. Not all…
A: We will create a function courses_hard(notes_groupe). This function will find the name of the…
Q: Assignment (1) Use the operator (&) to print out the memory addresses of the following variables int…
A: Create one C++ program that has following variables, int x=2,*a; char y='c',*b; float z =…
Q: Write a C+ program that contain a menu rto call user defined functions on a one dimendional array:…
A: Given, 1- fill the array with integers >20 2- print the content of the array 3- find all perfect…
Q: Exercise 1) Creating and manipulating Data frames Problem Description a) Create a new code cell or a…
A: Initializing the data list. Storing the values. Display Total of students. Display Average of…
Q: C++/cpp Exercise: 1- Define a class student with the following fields: a. First name b. Last name…
A: Write a c++program that: Define a class student with the following fields: a. string First name b.…
Q: What is the code required to display the following message from the page, assuming that username and…
A: function getvalues(){ var idx = document.URL.indexOf('?'); var values = new Array(); if…
Q: MemoryManagerFirstFit The MemoryManagerFirstFit class is derived from the MemoryManagerBase class.…
A: ans is given below
Q: ET-580 Object-Oriented Progzanning. 5. rowbridge 2020 b) Create a function that returns the count…
A: In the main method – Declare a variable to input the number. Take a number as an input. Call the…
Q: define the following function: 1. This function must add a task to a checklist, setting its…
A: Algorithm/Program Plan: Create a function addTask() that accepts two parameters checklist and key…
Q: A.) This script, named build.sh gets as argument the path to a folder where to find a source file…
A: Answer Code: using System;using System.IO;using System.Linq;using System.Collections.Generic;…
Q: Question 2 Choose the correct answer after considering the following statements: 1. A weak pointer…
A: The correct answer considered of the given statement
Q: Apex Salesforce Write a Batch Apex Class to update the Account Name using good demonstrated Example…
A: Write a Batch Apex Class to update the Account Name using good demonstrated Example Details -…
Q: Write a C++ program that contain a menu rto call user defined functions on a one dimendional array:…
A: Solution: Given, 1- fill the array with integers >20 2- print the content of the array 3- find…
Q: 1. Differentiate the following with suitable examples: a) Call by value vs Call by reference b)…
A: As per our guidelines, only 3 sub parts will be answered. So, please repost the remaining questions…
Q: use c++ to Implement a city database using a BST to store the database records. Each database record…
A: Actually, given information: c++ to Implement a city database using a BST to store the database…
Q: 1. Write a C++ program that creates a two-dimensional array or table of characters. The number of…
A: Given: a) C++ program to store random characters in an array and count the occurrences of each…
Q: Do you know what smart pointers are? What is the purpose of these objects?
A: Introduction: A pointer wrapper class that contains operators is called a Smart Pointer like * and…
Q: Apex Salesforce Write a Batch Apex Class to update the Account Name using good demonstrated Example…
A: Given: Write a Batch Apex Class to update the Account Name using good demonstrated Example Details -…
Q: IN JAVAScript - Create a function that takes an object and returns the keys and values as separate…
A: Algorithm - Create a method with one argument named keysAndValues. Now use the below logic -…
Q: Java program: 1. A list of students (student ID, first name, last name, list of 4 test grades) will…
A: import java.util.*;import java.lang.*;import java.io.*; class runner{ public static void main(String…
Q: Question 5: A 20 matrix can be represented as a list and a column count value in Python. For…
A: Actually, program is a executable software that runs on a computer.
Computer Science
I have these users when I create a new I want it add under theses users in json file using Kotlin
Step by step
Solved in 2 steps with 1 images
- Using C# (Sharp) with Visual studio: Make a class of Book with 5 properties - ISBN, author, title, publisher, copyright date In the main method, create 5 instances of the Book class with different data for each Create a LIST and add each of the 5 objects to the LIST Use a foreach loop to display the ISBN, author, title, publisher, and copyright date in the LIST Create a DICTIONARY and add each of the 5 objects (key should be ISBN) Display author, title, publisher, copyright date for each book Create a SEARCH feature: ask the user to type in an ISBN. If the entry matches an item in your dictionary, display the author, title, publisher, and copyright date. If there are no matches, display "ISBN not found". Hint: use ContainsKey Create a REMOVE feature: ask the user to type in an ISBN to remove a book from the list. If the entry matches an item in your dictionary, remove the item and re-display your list. If there are no matches, display "ISBN not found".Create a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.Using C language in visual studio,arrays,pointers,functions,and if possible using a switch case. Build an application for a car rental company. It should offer the following features: 1-• Maintain a customer database in a file: o Register / add new customers. Customer information should include ▪ Customer ID number ▪ Name ▪ Phone number o Search customer database by: ▪ Customer ID number ▪ Name ▪ Phone number And print out the matching records And an option to go back 2-• Maintain a database in a file: o Add a new vehicle to the fleet. Vehicle information should include ▪ Model year ▪ Make ▪ Model name ▪ License plate number ▪ Customer number who is currently renting vehicle o Delete a vehicle from the fleet o Rent a vehicle to a registered customer o Receive rented vehicle back from customer o Search vehicle database by any field: ▪ Model year + Make + Model name ▪ License plate number ▪ Customer number who is currently renting vehicle And print out all matching records And an…
- Using java, Create a simple Student Information System. The program must perform the following: Create student information, Retrieve the student information Update and Delete the specific student.note: Use the Java GUI.LabProgram.java:8: error: class HorseDatabase is public, should be declared in a file named HorseDatabase.java public class HorseDatabase { ^ 1 error Complete the Java program to create a Horse table, insert one row, and display the row. The main program calls four methods: createConnection() creates a connection to the database.createTable() creates the Horse table.insertHorse() inserts one row into Horse.selectAllHorses() outputs all Horse rows.Complete all four methods. Method parameters are described in the template. Do not modify the main program. The Horse table should have five columns, with the following names, data types, constraints, and values: Name Data type Constraints ValueId integer primary key, not null 1Name text 'Babe'Breed text 'Quarter horse'Height double 15.3BirthDate text '2015-02-10'The program output should be: All horses:(1, 'Babe', 'Quarter Horse', 15.3, '2015-02-10')This lab uses the SQLite database…Create series from the following two dictionaries: {'A': 'a', 'B': 'b', 'c': 'c', 'D': 'd', 'E': 'e'} {'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5} From those series create a dataframe called Q15, such that the first series represents the "lowercase" column and the second series represents the "numbers" column. Index Q15 to add an additional column to the dataframe called "percent", that takes each number and divides it by the sum of all the numbers.
- The databse system has a database called online shop. What is a result of a CREATE statement that tries to create OnlineShop a second time? A)The statement replaces OnlineShop with a new OnlineShop database. B)The statement produces an error that the database already exists. C) The statement creates a copy of the database OnlineShop as onlineShop_1 D) The statment is ignored.Automatic generation of Databases: Python Would anyone have some tips/pointers on writing some code that takes an input file (csv) that contains a number of columns and rows such as Job title, Salary etc. but does not have information such as Name, Address, phone number etc. I have been messing around with the Python Library 'Faker' which has been doing well but I need some advice on making the overal user experience look better. Could someone recommend a good GUI library/package to test with. I love the look of Tableau Dashboards. I would like to be able to display possibly two to six different algorithmic stats to generate the fake data to then be saved in a new output file.A little bit of a strange question I know but any tips greatly appreciated :DUsing Java, create a personal directory that contains a data structure for first name, last name, email address and phone number. The data structure should be able to contain the information for an unlimited number of people (depending on system resources).• The program interface should consist of a menu that provides the user with ways to (at least):▪ Add: Get data from user and add the data to the structure.▪ View: which will view the current data in the directory ▪ Edit/Update: Edit existing data ▪ Remove: Delete an entry▪ Search: which prompts the user for search criteria (program should be smart enough to know how to tell what kind of data is being searched for. Try to make this as versatile as possible). Display the data if found. If not found add the new information to the data structure (you must provide the right input for this).The program should store the data in a file so that the program can be run whenever the user wants, even after closing.• Your program should:▪ Contain…
- I need help with this one please, already tried but still getting a wrong answer Scenario You have been tasked with building a URL file validator for a web crawler. A web crawler is an application that fetches a web page, extracts the URLs present in that page, and then recursively fetches new pages using the extracted URLs. The end goal of a web crawler is to collect text data, images, or other resources present in order to validate resource URLs or hyperlinks on a page. URL validators can be useful to validate if the extracted URL is a valid resource to fetch. In this scenario, you will build a URL validator that checks for supported protocols and file types. Task Create two lists of strings – one list for Protocol called valid_protocols, and one list for storing File extension called valid_fileinfo. For this take the protocol list should be restricted to http, https and ftp. The file extension list should be .html, .csv and .docx. Split an input named url, and then use the first…Scenario: You have been tasked with building a URL file validator for a web crawler. A web crawler is an application that fetches a web page, extracts the URLs present in that page, and then recursively fetches new pages using the extracted URLs. The end goal of a web crawler is to collect text data, images, or other resources present in order to validate resource URLs or hyperlinks on a page. URL validators can be useful to validate if the extracted URL is a valid resource to fetch. In this scenario, you will build a URL validator that checks for supported protocols and file types.Create a simple program for a quiz bee. Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: 1. Create a folder named LastName_FirstName (ex. Reyes_Mark) in your local drive. 2. Create a new project named LabExer5B. Set the project location to your own folder. 3. The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). 4. Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: • an invalid letter (not A, B, or C) • a number or any special character • blank (no answer) 5. Prompt the user that he can answer again if any of the three (3) exceptions is thrown. 6. Display the score.