A __________ is a data type you can create that contains one or more variables known as fields. a. structure b. collection c. volume d. list
Q: Python: On-line Grocery Shopping Use grocery py in Canvas to start your program. It contains two…
A: Answer: Code: food = ["tomato_soup", "cheese", "sauce", "chicken"] stock = {"tomato_soup": 20,…
Q: Develop a C# program using Visual Studio for Siyabonga. The application must have the following…
A:
Q: Create a program for Smalltown Regional Airport Flights that accepts either an integer flight number…
A: Actually, given information: Pass the user’s entry to one of two overloaded GetFlightInfo() methods,…
Q: write the psuedocode and drow the flowchart Create a program to enter grades and calculate averages…
A: In this question it asked to give the pseudocode and draw a flowchart. The question needs to create…
Q: Create a final program that meets the requirements outlined below. Create an automobile class that…
A: Code for the given problem :- class Automobile: vehicle_list = [] def __init__(self, make,…
Q: python The intent of this program is to manage a set of contacts. Each contact will have data…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: Write a program that shows Game sales. The program should use a structure to store the following…
A: Actually, program is a executable software that runs on a computer.
Q: // Add to this partially built code. // fill in code where there is a TODO…
A: Add data type char for variables destination and typeOfDay. Define bool variable isDayTime and…
Q: Lab Task 5: Greater number in array: Write a code that finds greater number in the array.
A: Note: There are multiple questions are given in one question. According to the rule, you will get…
Q: Problem Definition You are provided with a text file (employees.txt) containing a number of text…
A: GIVEN:
Q: Solution Description Create a file CarWash1331.java that will simulate ordering car wash services.…
A: Given than testing against only valid inputs. so input validation is not added. The program is…
Q: This file is about rectangles. It requires a main function and three custom functions, all of which…
A: Below is the code in python which has two function returning the value and one void function and…
Q: using visual studio and C# languange please help with the following In the Chap07 folder of the…
A: Hello student I am giving this code as per my best of knowledge :-
Q: Create a module called chemistry that contains the following three functions: elementName(symbol)…
A: import math def elementName(symbol): ''' The function returns the name of the element of the…
Q: // Add to this partially built code. // fill in code where there is a TODO…
A: Add data type char for variables destination and typeOfDay. Define bool variable isDayTime and…
Q: Microsoft Visual C# 7th edition. In Chapter 7, you modified the GreenvilleRevenue program to include…
A: The Answer is
Q: Define a rectangle class with length, witdh, coor (x), coor (y). Then write the following methods:…
A: Code is given below;:--
Q: Microsoft Visual C# 7th edition. In Chapter 7, you modified the GreenvilleRevenue program to include…
A: Below find the solution using static System.Console; class GreenvilleRevenue{static void…
Q: 2. a. Write a class with name EmployeeInfo that will keep track of employees name, salary, post, and…
A: class with name EmployeeInfo that will keep track of employees name,salary, post, and joining year,…
Q: Flowchart for student interface program please. Create a program to enter grades and calculate…
A: import java.util.Scanner; //create a class class Student { //declare attributes private String…
Q: Write a small application to maintain contact information about people. For each person in your…
A: used to create computer programs. An example program of C++ is : #include <iostream> using…
Q: Write a program which has a class named FileHandler to read StudentName, MarksObtained from the…
A: the c++ code is an given below :
Q: The ByteBuffer class array method returns an array of bytes, which is used as the argument of the:…
A: given Data:- The ByteBuffer class array method returns an array of bytes, which is used as the…
Q: Create an application that reads numbers from a file into an array, displays the array’s contents in…
A: program is an given below : using System; using System.Collections.Generic; using…
Q: Create two classes one to read data from file, and the other to write data into a file. The data can…
A: #include <windows.h>#include <iostream> using namespace std; class employee{ int…
Q: GRADEBOOK PROJECT Attached Files: Gradebook.docx (18.278 KB) Gradebook Practicla Project: use the…
A: Here we have given the program for given appropriate grades. You can find the code in step 2.
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: You will write a program to manage a shopping list. The program should display a list of items. The…
A: #include<iostream>#include<iomanip>#include<conio.h>using namespace std;class…
Q: Create an application that reads the contents of two text files and uses LINQ extension methods to…
A: Code: main.py # Ask user for the file namesfile1 = input("Enter file1 Name:")file2 = input("Enter…
Q: Please write this in C# so I can compare with my code. Create an application that reads the…
A: //Code #include<iostream> #include<fstream> #include<set> using namespace std;…
Q: Create an application that reads the contents of two text files and uses LINQ extension methods with…
A: Actually, c# is a object oriented and type safe programming language.
Q: quadratic equation in the form: ax? + bx + c = 0 where a, b and c are coefficients. Write a modular…
A: #include<bits/stdc++.h> #include <fstream> using namespace std; int main() { //…
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: Create a Windows Forms application named FirstInitiallastName6PA Save the application in the…
A: Form1.cs file using System; using System.Collections.Generic; using System.ComponentModel; using…
Q: Please help me modified my c++ code, it has some problems and I do not know how to fix. Thank you
A: After fixing the code , I have provided C++ CODE along with CODE SCREENSHOT and OUTPUT…
Q: Question 10 The default data type for a sequence object is O a Decimal Char b. Varchar Oc. Int
A: The default data type for a sequence object is given below
Q: Please solve in C++ /* * CECS 2223, Computer Programming II Laboratory * Winter 2021, Sec. 05 *…
A: class Box{ private: int height = 0; int width; int length; public:…
Q: Here are the contents for a movie: Lab 27 Home Alone Jeff Nunn 1990 Here are the contents for a…
A: According to the question We have to write code for the following question: Sample code and output…
Q: Problem Statement: In the CreateAFile class create the createAFile( method. The method must create a…
A: Here is the approach : We have three operations to dop . Create the file , Write the file and read…
Q: In a python program, create a new file and call it “ tracking”. Write to it four lines each contains…
A: Python Code for the above Question is given below
Q: A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your…
A: Code is Given Below:- ------------------------------------------ Movie.java…
Q: Which programming principle indicates that code should be stored in the same structure as the data…
A: INTRODUCTION: The proper phrase for the object-oriented programming principle states that code…
Q: Can you implement a module named inventory that will be responsible for managing the players…
A: Creating a Module Inventory: Create an empty folder Inventory using mkdir Execute Following…
Q: How many bytes does the creation of this template take up in memory? Struct phone{ char brand[51];…
A: Intro Structures in C/C++ A structure allows the user to define a type that contains one or more…
Q: The set accessors should verify that length and width and depth are all floating-point numbers…
A: This is the solution for your question: First code public class Cube{ public double Length { get;…
Q: Step 1: Create the Project: Create a Visual Basic Project using the project name “GalaxyTrekkers”.…
A: Instructions In this case, you will create a Visual Basic solution that displays the Galaxy Trekkers…
Q: Microsoft Visual C# 7th edition. In Chapter 7, you modified the GreenvilleRevenue program to…
A: Program in C#: using static System.Console; class GreenvilleRevenue{ static void Main() {…
Q: A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your…
A: Code snippet:
Q: String data type is not allowed you can make use of CString instead (char arrays with null…
A: Given: String data type is not allowed you can make use of CString instead (char arrays with null…
A __________ is a data type you can create that contains one or more variables
known as fields.
a. structure
b. collection
c. volume
d. list
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your Eclipse Project.( If your Eclipse Project name is Assignment2, the text file is located under Assignment2, NOT src folder) It contains data for one movie on each line.Each Movie contains the following data items:Title(String), Year(int-4 digits), Runtime(double). Example: Gemini Man,2019,1.97 Mortal Engines,2018,2.01 Write Java program(s) to do the following:1) Read the movies.txt Text file and write the data as a Serialized file called movies.ser to the local directory(same as movies.txt).2) Read the movies.ser serialized file and output the data on to the Console in the format shown below. NOTE: DO NOT just write out the data from movies.txt using System.out.println(). This will receive no credit. You MUST read the data from the movies.ser file and output the data.We will check the movies.ser file for grading. The spacing for the output is: Title(20), Year (8) and Runtime (10.2)Title and…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.Assign pizzasInStore's first element's caloriesInSlice with the value in pizzasInStore's second element's caloriesInSlice. Only the *your code goes here* can be affected, the rest of the program cannot be changed.Program below:--------------------------- #include <iostream>#include <vector>#include <string>using namespace std; struct PizzaInfo {string pizzaName;int caloriesInSlice;}; int main() {vector<PizzaInfo> pizzasInStore(2); cin >> pizzasInStore.at(0).pizzaName;cin >> pizzasInStore.at(0).caloriesInSlice; cin >> pizzasInStore.at(1).pizzaName;cin >> pizzasInStore.at(1).caloriesInSlice; /* Your code goes here */ cout << "A " << pizzasInStore.at(0).pizzaName << " slice contains " << pizzasInStore[0].caloriesInSlice << " calories." << endl;cout << "A " << pizzasInStore.at(1).pizzaName << " slice contains " << pizzasInStore[1].caloriesInSlice << " calories." <<…
- Pythone3 code please: You are going to create a race class, and inside that class it has a list of entrants to the race. You are going to create the daily schedule of three or so races and populate the races with the jockey/horse entries and then print out the schedule. Create a race class that has The name of the race as a character string, ie “RACE 1” or “RACE 2”, The time of the race A list of entries for that race Create a list of of 3 (or 4) of those race objects(races) for the day For the list of entries for a particular race, make a entrant class (the building block of your entrants list) you should have The horse name The jockey name Now you need to Populate the structure (ie set up three races on the schedule, add 2-3 horses entries to each race. You can hardcode the entries if you want to, rather than getting them from the user, just to save the time of making a menu interface and whatnot. Be able to print the days schedule So example output would…Fix the errors in the Customer class and the Program. DATA FILE ThinkAbout Tech 344 Park Ave, NY, NY 10022 Kemp Technologies 3601 Broadway, NY, NY 10021 Verizon 6 Hudson Street, NY, NY 10001 Merrill Lynch 7 World Financial Center, NY, NY 10001 Philips Laboratories 345 Scarborough Rd, Briarcliff Manor, NY 10510 CODE #include <iostream> #include <fstream>#include <string>using namespace std; class Customer { // Constructorvoid Customer(string name, string address) : cust_name(name), cust_address(address){acct_number = this.getNextAcctNumber();} // Accessor to get the account numberconst int getAcctNumber() { return acct_number; } // Accessor to get the customer namestring getCustName(} const { return cust_name; } // Accessor to get the customer addressstring getCustAddress() const { return cust_address; } // Set a customer name and addressstatic void set(string name, string address); // Set a customer addressvoid setAddress(string cust_address) { cust_address =…This file is about rectangles. It requires a main function and three custom functions, all of which take the rectangle dimensions as arguments. a function that returns the area of a rectangle. a void function that prints the perimeter of a rectangle. a function that returns the length of a rectangle's diagonal. This function must use a method of the math module. The main function should prompt the user for the rectangle dimensions (as floats) and execute the custom functions. All calculations should be printed accurate to three decimal places using f-strings. This is for Python and the area and diagonal have to be value returning and the other is a void function. This is what I have and the value returning areas are incorrect. def area(x, y):ans = x*yprint("Area of rectangle = %.3f"%ans) def perimeter(x, y):ans = 2*(x+y)print("\nPerimeter of rectangle = %.3f"%ans) def lengthofdiagonal(x,y):ans = math.sqrt((x*x)+(y*y))print("\nLength of diagonal of rectangle = %.3f"%ans) def…
- 1. // MAINTENANCE10 // This program accepts data about 100 books and // determines a price for each. // The price is 10 cents per page for the // first 200 pages, then 8 cents // per page after that. // After pricing, all the data is displayed. // Create a Book class and modify the program to use // an array of Book objects instead of individual // data items. start Declarations num SIZE = 100 num sub string titles[SIZE] num pages[SIZE] num prices[SIZE] num MIN_PAGES = 200 num HIGH_PRICE = 0.10 num LOW_PRICE = 0.08 sub = 0 while sub < SIZE output "Enter title … " input title[sub] output "Enter pages … " input pages[sub] if pages[sub]A Comma Separated Value (CSV) text file called movies.txt is located in the directory of your Eclipse Project.( If your Eclipse Project name is Assignment2, the text file is located under Assignment2, NOT src folder) It contains data for one movie on each line.Each Movie contains the following data items:Title(String), Year(int-4 digits), Runtime(double). Write Java program(s) to do the following:1) Read the movies.txt Text file and write the data as a Serialized file called movies.ser to the local directory(same as movies.txt).2) Read the movies.ser serialized file and output the data on to the Console in the format shown below. The spacing for the output is: Title(20), Year (8) and Runtime (10.2)Title and Year are left-justified, Runtime is right-justified.(You can use your own text file to test your program) Sample output: Title Year Runtime aaaaaaaaaaa aaaa aa.aa...... ...... ...........…Microsoft Visual C# 7th edition. need help, please. Thanks In previous chapters, you created applications for Marshall’s Murals. Now, modify the version of the MarshallsRevenue program created in Chapter 5 so that after mural data entry is complete, the user is prompted for the appropriate number of customer names for both the interior and exterior murals and a code for each that indicates the mural style: L for landscape S for seascape A for abstract C for children’s O for other When a code is invalid, re-prompt the user for a valid code continuously. For example, if Y is input, output Y is not a valid code, and re-prompt the user until a valid code is entered. After data entry is complete, display a count of each type of mural. For example the output should be in the following format with the correct number next to each mural type: The interior murals scheduled are: Landscape 1 Seascape 2 Abstract 1 Children's 3 Other 9 The exterior murals scheduled are: Landscape 4 Seascape 0…
- Please submit a flowchart of your program for your project below. Need a class which will contain: Student Name Student Id Student Grades (an array of 3 grades) A constructor that clears the student data (use -1 for unset grades) Get functions for items a, b, and c, average, and letter grade Set functions for items a, n, and c Note that the get and set functions for Student grades need an argument for the grade index. Need another class which will contain: An Array of Students (1 above) A count of number of students in use You need to create a menu interface that allows you to: Add new students Enter test grades Display all the students with their names, ids, test grades, average, and letter grade Exit the program Add comments and use proper indentation. Nice Features: I would like that system to accept a student with no grades, then later add one or more grades, and when all grades are entered, calculate the final average or grade. I would like the system to display the…Create a program named SalesTaxDemo that declares an array of 10 Sale objects. Prompt the user for data for each object and display the 10 objects. Data fields for Sale objects include an inventory number, amount of the sale, and tax owed. Include a property with get and set accessors for the first two data fields, but make the tax owed a read-only property. The tax should be calculated whenever the amount of the sale is set. Assume that the tax rate is 8 percent for the first $100 and 6 percent for any amount greater than $100. Create a program named SalesTaxDemo2 so that after the 10 Sale objects are displayed, they are sorted in order by the amount of tax owed and displayed again. Modify the Sale class so its objects are comparable to each other based on tax owed.Each of the following files in the Chapter.08 folder of your downloadable student files has syntax and/or logical errors. In each case, determine the problem, and fix the program. After you correct the errors, save each file using the same filename preceded with Fixed. For example, DebugEight1.cs will become FixedDebugEight1.cs. a. DebugEight1.cs b. DebugEight2.cs c. DebugEight3.cs d. DebugEight4.cs