Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can this please be done in C programming language! thanks 11.14 Lab Week 11: Online shopping cart In main.c Build the ItemToPurchase struct with the

Can this please be done in C programming language! thanks

image text in transcribed

image text in transcribed

11.14 Lab Week 11: Online shopping cart In main.c Build the ItemToPurchase struct with the following specifications: Data members char itemName int itemPrice int itemQuantity and create two functions MakeltemBlank Has a pass by reference itemToPurchase parameter. Reference Figure 7.4.1. Sets item's name-"none", item's price = 0, item's quantity 0 PrintitemCost Has a pass by value itemTPurchase parameter. Ex. of PrintltemCost0 output: Bottled Water 10 @ $1 $10 (2) In main0. prompt the user for two items and create two objects of the ItemToPurchase struct. Before prompting for the second item, enter fflush(stdin), to allow the user to input a new string Ex: Item 1 Enter the item name: Chocolate Chips Enter the item price: 3 Enter the item quantity: 1 Item 2 Enter the item name: Bottled Water Enter the item price: 1 Enter the item quantity: 10

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

Databases In Networked Information Systems 6th International Workshop Dnis 2010 Aizu Wakamatsu Japan March 2010 Proceedings Lncs 5999

Authors: Shinji Kikuchi ,Shelly Sachdeva ,Subhash Bhalla

2010th Edition

3642120377, 978-3642120374

More Books

Students also viewed these Databases questions

Question

Solve for x: 2(3x 1)2(x + 5) = 12

Answered: 1 week ago