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
- (Numerical) Write an assignment statement to calculate the nth term in an arithmetic sequence. This is the formula for calculating the value, v, of the nth term: v=a+(n1)d a is the first number in the sequence. d is the difference between any two numbers in the sequence.name formatter on c# create an application that lets the user enter the following pieces of data: • the user’s first name • the user’s middle name • the user’s last name • the user’s preferred title (mr., mrs., ms., dr., etc.) assume the user has entered the following data: • first name: kelly • middle name: jane • last name: smith • title: ms. the application should have buttons that display the user’s name formatted in the following ways: ms. kelly jane smith kelly jane smith kelly smith smith, kelly jane, ms. smith, kelly jane smith, kellyC# Language You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60 D =…
- C++ Language Write a program that prints a custom conversion table from Celsius temperatures to Fahrenheit and Newton (Links to an external site.) temperatures. The formula for the conversion from Celsius to Fahrenheit is : F=9/5*C+32 F is the Fahrenheit temperature, and C is the Celsius temperature. The formula for the conversion from Celsius to Newton is C = 100/33*N N is the Newton Temperature and C is the Celsius temperature Your program should prompt the user for a lower value and upper value for a range of temperatures in Celsius. It should then prompt the user for the amount they want to increment by. Then use a loop to output to a file named conversion_table.txt a table of the Celsius temperatures and their Fahrenheit and Newton equivalents within the range of values using the increment given by the user. Make sure to format your output to 2 decimal places. INPUT VALIDATION: Ensure the second number is greater than the first number, and make sure the increment is greater…Domino's Time Function Name: dominosTime() Parameters: N/A Returns: None Description: During the summer, you ordered a lot of food from Domino's. Pizzas are $12, an order of pasta is $6, and chicken wings are $8. Write a function that asks the user how many of each food item they would like, and then print a response telling them what their order to- tal will be. The order total should be an integer. >>> dominosTime() How many pizzas do you want? 3 How many orders of pasta do you want? 2 How many orders of chicken wings do you want? 2 By ordering 3 pizzas, 2 orders of pasta, and 2 orders of chicken wings, your order total comes to $64.Stock Transaction ProgramLast month Joe purchased some stock in Acme Software, Inc. Here are the details of the purchase:• The number of shares that Joe purchased was 1,000.• When Joe purchased the stock, he paid $32.87 per share.• Joe paid his stockbroker a commission that amounted to 2 percent of the amount he paid for the stock.Two weeks later Joe sold the stock. Here are the details of the sale:• The number of shares that Joe sold was 1,000.• He sold the stock for $33.92 per share.• He paid his stockbroker another commission that amounted to 2 percent of the amount he received for the stock. By writing a pseudo code and flow charts, design a program that displays the following information:● The amount of money Joe paid for the stock.
- Following code in C using random Name Reg no and highschool name Use switch case in C language to do the following: Create a restaurant with the name “Your Name - Reg_No – Name of your highschool” The restaurant should come with the options of delivery and take away and the choice should be displayed as “Delivery – Registration No” and “Takeaway – Name” Each option should have the same menu and an extra 15% charge be included if a customer wants home delivery Both menus should have two items that are customizable, such as a burger can have chillies removed, cheese added and extra mayonnaise. The user should have the option of choosing multiple items with multiple quantity. Print a bill in the end.Program Name: <LastNameFirstInit>_PetShelter You work at a Pet Shelter that take in homeless pets. You have been tasked with creating a report that shows a list of all the dog breeds currently staying at the shelter. This list should include the breed name along with the count for each breedcurrently being housed at the shelter. In addition, at the end, the report should display the name of breed that we have the most (max) of currently at the shelter. In addition, your program should utilize methods for building the report and searching for the max breed count. Two parallel arrays have been provided. You can use the following code to get you started. //START CUTTING CODE HERE public class MichakR_PetShelter { public static void main(String[] args) { String[] breedNames = {"Bulldog", "German Shepherd", "Golden Retriever", "Beagle", "Poodle", "Boxer", "Mixed Dog", "Husky"}; int[] breedCounts = {2,5,3,1,8,1,11, 3}; //generate report //get Max Breed //print report } public…True or False The order of operations dictates that the division operator works before the addition operator does.
- 11 Worksheet 5 Note:Solution using Matlab Code Write a program that prompts the user to enter a number within the range of 1 through 7, those numbers represent the weekdays as shown in the table. If the entered number is more than 7, display 'invalid day'. Number 1 2 3 4 5 6 7 Day Sunday Monday Tuesday Wednesday Thursday Friday Saturday Type of the day Workday Workday Workday Workday Workday Weekend Weekend The program should continue to repeat itself 10 times, after which, the program should stop. Furthermore, the program should be able to show a message saying if this is a 'workday' or a 'weekend day'. Note: you are required to add a comment beside your command. Hint: to add a comment you may use the % sign. thank guys you dodo great.C++ Movie Data Create a program that uses a structure named MovieData to store the following information about a movie: Title Genre Director Year Released Running time (in minutes) Write a program that prompts the user for input and allows all of these member data values to be specified. Make sure you input the entire title, genre, and director for the movie. You should also make sure that the year is inputted as a number, and that the running time is also a number. For the year it should be after 1887, and for the running time the number should be greater than 0. The program should create two MovieData variables and create/use a method void displayMovie(MovieData) to display the information about the movie in a clearly formatted manner.Classification Based on Range Write a program that takes the income of an employee and calculates the corresponding net income and tax portion based on the following information: • tax = 42%: income > $114000• tax = 28%: $74000 <= income < $114000• tax = 14%: $34000 <= income < $74000• tax = 0%: income < $34000