Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Pls use C programming thanks The tab delimited file vehicle.txt contains the sales information of different types of vehicles (car, MPV, bus and lorry) as

image text in transcribed

Pls use C programming thanks

The tab delimited file vehicle.txt" contains the sales information of different types of vehicles (car, MPV, bus and lorry) as follows: (Fail "vehicle.txt" mengandungi maklumat jualan jenis kenderaan yang berbeza (kereta, MPV. bas dan lori). Maklumat di dalam fail tersebut dipisahkan oleh tab adalah seperti berikut: Month Car MPV Bus Lorry January 100 50 25 February 150 25 20 March 125 66 12 April 35 30 25 May 30 13 June 95 33 35 22 75 45 22 75 80 15 (a) Draw the flowchart to read the file, calculate the sum of sales and average of sales for each type of vehicle, and then store it into a file named "sales.txt. Lukiskan carta alir untuk membaca fail, mengira jumlah jualan dan purata jualan bagi setiap jenis kenderaan, dan kemudian menyimpannya ke dalam fail bernama "sales.txt".) (6 Marks / Markah) (b) Write a C program to read the file, calculate the sum of sales and average of sales for each type of vehicle, and then store it into a file named "sales.txt". [Tulis satu aturcara untuk membaca fail, mengira jumlah jualan dan purata jualan bagi setiap jenis kenderaan, dan kemudian menyimpannya ke dalam fail bernama "sales.ext"./ (14 Marks / Markah)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

3. How frequently do the assessments occur?

Answered: 1 week ago