Write a program that uses a structure to store the following information on a company division: Division name (such as East, West, North, or South) Quarter (1, 2, 3, or 4)Quarterly salesThe user should be asked for the four quarters’ sales figures for the East, West, North, and South divisions. The information for each quarter for each division should be written to a file.
Q: In this lab, you will be building a software application that will print the most popular ice-cream…
A: Answer is given below .
Q: A vehicle inspection station keeps records of its checking services in a text file (called…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: The struct song is defined as : typedef struct { char* title; char* artist; int year; }…
A: #include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <time.h>…
Q: Write a c++ program in which you will keep a record of all transactions (deposit/withdrawal)…
A: #include <iostream>using namespace std; class Bank {private: int acno; char name[30];…
Q: 2. The manager of a basketball stadium wants you to write a program that calculates the total ticket…
A: The below program is written using C++ language and it can be compiled successfully.
Q: Write a program that reads the student information from a tab separated values (tsv) file. The…
A: import csv tsv_name=input("Enter tsv file name: ") tsv_file=open("%s.tsv"%tsv_name) read_tsv =…
Q: Write a program that reads movie data from a CSV (comma separated values) file and output the data…
A: Here have to determine about the movie data programming problem statement.
Q: Problem Definition You are provided with a text file (employees.txt) containing a number of text…
A: GIVEN:
Q: Problem Definition You are provided with a text file (employees.txt) containing a number of text…
A: Required: python
Q: Geraldine's Landscaping Service and Gerard's Lawn Maintainance are merging their businesses and want…
A: The logic is designed in the next step. This Logic merges the two files into one file containing all…
Q: Using C/C++ programming language, solve the following problems. typedef structure { int phoneID;…
A: GIVEN: Using C/C++ programming language, solve the following problems. typedef structure { int…
Q: Write a Java program that stores different records of employees in a file called employees.txt with…
A: C++ is a general-purpose programming language created by Bjarne Stroustrup as an extension of the C…
Q: software application that will print the most popular ice-cream flavor among kids
A: #software application to print the most popular ice-cream flavor among kids #function to creat a…
Q: Question 1 It is a container in computer storage devices used for storing data. Structure Array O…
A: Container in Computer storage used for data storage is File. Rest are data structures who are…
Q: Please do this in C++ 9.18 LAB: Movie show time display Write a program that reads movie data…
A: Solution: C++ code: #include<iostream>#include<fstream>#include<iomanip> using…
Q: design an application for the ABC Company that will process inventory from a file called…
A: Code: count=0summ=0 f = open("ABC_INVENTORY.txt", "r")for x in f: count=count+1…
Q: Using C/C++ programming language, solve the following problems. typedef structure { int phoneID;…
A: GIVEN: 4. Write a function that will find all the devices from a specific country and print the…
Q: Geraldine's Landscaping Service and Gerard's Lawn Maintenance are merging their businesses and want…
A: Since here no programming language is specified. So, we are providing the program code in C++.…
Q: Average grades bar chart Write a python program grades.py that reads a file of assignment grades…
A: In this question we have to write a python program to generate average grades bar chart. Let's code
Q: n this exercise, you will write a Point structure that represents a space in two-dimensional space.…
A: the code is an given below : 10,567 answers If you have any doubts, please give me comment...…
Q: Program in C language the creation of a vector of n=5 records, each record made up of the following…
A: Below we are providing the code for this problem
Q: In C language, write the following two functions maintaining a database of entries of type song in a…
A: I have implemented the given requirements as per the specification. The code is as follows:…
Q: In C language, write the following two functions maintaining a database of entries of type song in a…
A:
Q: Program in C language the creation of a vector of n=5 records, each record made up of the following…
A:
Q: Using C programming language to write the following project. This week we'll make a primitive…
A: The complete code is given below.
Q: Description Write a program to compute average grades for a course. The course records are in a…
A: Algorithm: 1. Open the text file. 2. Print error if file not opened. 3. Open average.txt and write…
Q: 8.11 LAB: Movie show time display Java Please Write a program that reads movie data from a csv…
A: ANSWER:-
Q: Using C/C++ programming language, solve the following problems. typedef structure { int phoneID;…
A: Given: solve the following problems.typedef structure {int phoneID; char phoneName[50];int price;int…
Q: Write the following two functions maintaining a database of entries of type song in a file in c…
A: C++ requires that any feature be declared earlier than it's far used. I.E. A function's prototype…
Q: file contains a list of telephone number in following form. Aman 23456 Raj…
A: Note: We are authorized to answer one problem at a time since you have not mentioned which one you…
Q: Write a C++ program which takes 5 students’ information (records) as inputs from the user and save…
A: C++ code: #include <iostream>#include <fstream>using namespace std; int main(){…
Q: rite a program in Perl language you have to copy a file element in other file. The 1st file is abc.…
A: Write a program in Perl language you have to copy a file element in other file. The 1st file is…
Q: A file contains a list of telephone number in following form. Aman 23456 Raj…
A: #include <bits/stdc++.h>using namespace std;int main(){ fstream my_file;…
Q: A vehicle inspection station keeps records of its checking services in a text file (called…
A: Actually, python is a easiest programming language. It is a dynamically typed programming language.
Q: write in c++ Write a program that would allow the user to interact with a part of the IMDB movie…
A: Implementation details Your program should contain a structure: Movie. Has 4 fields: id - integer…
Q: Exercise 5: Write a C++ program which reads from a file inventory records of some items…
A: 1)Read the each number from input file 2)And assign it to array 3)Based on the index print to the…
Q: C programming language Topic : Input/Output Program : Product list (product.c) Definition : The…
A: FILE is a pointer variable that is used to create files. The fopen function allows to pass the name…
Q: OOP PROGRAMMING LANGUAGE: C++ In main program, ask user for the number of students whose records…
A: It is defined as a direct descendant of C programming language with additional features such as type…
Q: In this lab, you will be building a software application that will print the most popular ice-cream…
A:
Q: Code should be in Python. Write a program that reads the student information from a tab separated…
A: Answer:Code 1- # opening file for reading fileread= open("StudentInfo.tsv") # opening file for…
Q: An organization has a file named “staff.txt” that has 10 records of staffs having their id, name and…
A: Since the coding language is not mentioned , I have done the code in C++. Algorithm : Step 1 :…
Q: Write a program to compute average grades for a course. The course records are in a single file and…
A: Code: #include<stdio.h> #include<stdlib.h> //definition of the function readFile()…
Q: Data File: Example #1 AAAAABBBBBCCCCCDDDDD AAEBCBAFBBCDCECDADDEFEEFFF Example #2…
A: PROGRAM: //Header File import java.io.File; import java.io.FileNotFoundException; import…
Q: Use C++ Language Problem 2 (Save and Get Info): Write a program that asks for the user's name,…
A: Use C++ Language Problem 2 (Save and Get Info): Write a program that asks for the user's name,…
Q: Write a C/C++ program that calculates the least squares line for two sets of values.
A: Solution (C++ program) is in Step 2.
Q: This C++ mini project on STUDENT REPORT CARD has student class with data members like roll no, name,…
A: Solution: //C++ code: //Include necessary header…
Q: Using C/C++ programming language, solve the following problems. typedef structure { int phoneID;…
A: GIVEN: ' Using C/C++ programming language, solve the following problems. typedef structure { int…
Q: The student information is seperated by a comma and is in the following format :…
A: The program is written in cpp
Q: Build and run your project. The program should compile without any errors. Note that function…
A: BinaryTree.h // Binary Tree Template#ifndef BINARYTREE_H#define BINARYTREE_H #include…
Q: Information for 20 customers of a bank is stored in a random Access file named musteri.dat using the…
A: // File Name:CustomerAccount.c #include <stdio.h>#include <stdlib.h>#include…
Write a
Division name (such as East, West, North, or South) Quarter (1, 2, 3, or 4)
Quarterly sales
The user should be asked for the four quarters’ sales figures for the East, West, North, and South divisions. The information for each quarter for each division should be written to a file.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write a program that declares a structure of 114 employees of a company. Your program should accept the employee’s id, first name, last name, type of employee, hours worked. Store the data entered in a suitable defined structure. Your program should calculate and display each employee’s information along with their salary for that time period. The table for the rate per employee type is given below: Type Rate 1 1657.47 2 2493.26 3 3219.93 4 5467.28Question 1: Write a C function that declares a student structure that contains his name, his first name and his student number. Question 2: Write a C function that initializes the cell by taking the 3 parameters from the keyboard. Question 3: Write a function that displays the contents of the cell passed as a parameter.This need to be written in c++ Write a program that: Defines an enum named Classification. The enum Classification will have 2 data values: undergraduate, graduate. Defines an enum named Status. The enum Stutus will have 2 data values: parttime, fulltime. Defines an enum named Residency. The enum Residency will have 2 data values: resident, international. Defines a student name variable. Creates a Classification, Status, and Residency, credit hour, cost per credit hour, and tuition variable. Reads the value of the Classification, Status, and Residency, student name and credit hour variable from the user. If the student is a fulltime undergraduate resident student, tuition is credit hour times 345.00 If the student is a fulltime undergraduate international student, tuition is credit hour times 685.00 If the student is a fulltime graduate resident student, tuition is credit hour times 545.00 If the student is a fulltime graduate international student , tuition is credit hour times…
- Write a C++ program. Imagine a publishing company that markets both book and audiocassette versions of its works. Create a structure publication that stores the title (a string) and price (type float) of a publication. From this structure nest two structures: book, which adds a page count (type int), and tape, which adds a playing time in minutes (type float). Each of these three structures should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the book and tape structures by creating instances of them,asking the user to fill in data with getdata(), and then displaying the data with putdata().do q3 Question No 1: Create the following structures in C: Student : Name RegId Enrolled courses (Labs + Theory) Department Semester Faculty: Name Department Designation Salary: Implement the following scenario using functions: setMarks():This function will allow faculty member to set Student marks. getGpa(): Takes student as an argument and calculates the student’s GPA. displayStudent(): display the given student’s information. displayFaculty(): display the given faculty’s information. Question No 3: Refer to Question NO 01 Student structure and using pointer determine the senior student among two students. Print information of the senior student.Write a c++ program that uses a structure named Movie Data to store the following information about a movie. Title (string) Director (string) Year Released (int) Running Time (in minut) (int) The program should create two MovieDate variables; store values in their members, and display the information about movie.
- Write a program to find the gross salary of an employee using the following structure. Print the details of the employee along with the gross salary.struct employee{float basic_sal, DA, HRA, gross_sal;char name[20];int age;} *s;(Hint: gross_sal = basic_sal + DA + HRA. DA=30% of basic_sal, HRA=10% ofbasic_sal).A car showroom wants to put cars on exhibition. The cars are to be displayed pricewise to the customers. Create a structure in C language for storing three details (model, name and price) of 100cars. Display the names of cars having price less than 10 lakhs separately along with their price.The Manhattan distance between two points P(x1,y1) and Q(x2,y2) is defined as follows: M.D. = |x1-x2| + |y1-y2|. Create a structure named Point that models a point in the 2-dimensional space. Using the above structure, take input for two points and calculate the Manhattan distance between them. Use a function named get Distance that will take in 2 Point type variables argument and return the distance in float type.
- Q1:Write a program that have three structures .The first structure contains an information of 10 teachers and this information is: the name of the teacher and the subjects he teaches and the name of his department, the second structure contains information of 10 students which includes the name, stage and section and contains an internal structure containing ten degree, average and sum of each student, then print the information of teachers and students with their degrees and average of each student * Your answerIn C++ Write a program which stores time information in a structure. The time structure should store the data in hours:minutes:seconds format (12:59:59). You must validate the input e.g if user enters valid data for each of the member of the structure. Create 3 objects of time structure and ask user to enter value for each member of each object. Finally, retrieve the data from each object and display the total number of seconds of the entered time. Note: time is in 12 hours format and not in 24 hours formatWrite a program to add two complex numbers using structure. Create a structure called Complex with two components, real and imag. Write a function that takes two structure variables as input, then sum up the two complex number.struct Complex{float real; float imag;};struct Complex add(struct Complex n1, struct complex n2);