Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help in urgent C programming A used car dealer needs a simple computer program that can record basic information about the cars for sale

image text in transcribed

Need help in urgent C programming

A used car dealer needs a simple computer program that can record basic information about the cars for sale at his yard. You are requested to propose a prototype of a program that can record 5 car information in the file (file.txt) and display back all the 5 records. All the records must contain the following information: a. Car Make (i.e Proton, Honda, Mercedes-Benz, etc) b. Car Model(i.e Saga, Accord, C200, etc) C. Year the car was made d. Cubic Capacity (cc) (i.e 1200, 1500, 1600, etc) You need to write a simple program in C based on the following pseudo-code: 1. Declare a structure name car which contains a. Car_make [20] b. Car_model [20] c. Year made d. Cubic Capacity (cc) 2. In the main function main() a. Assign car structure to carl array size 5 b. Declare file pointer *fptr c. Open a text file name file.txt for writing in binary mode(wb) d. Using loops, Enter all the info as stated in 1. e. Write to file.txt f. Close file. g. Display message record successfully saved h. Open the file.txt for reading in binary moderb) i. Display message retrieving records j. Using loops, display all records. i. Record No ii. Car Make 11. Car Model iv. Year Made v. CC k. Close file. Write a complete C program based on the

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

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions

Question

Effective Delivery Effective

Answered: 1 week ago