J Jirachi2016 Eternal Poster Joined Feb 20, 2016 Posts 740 Reaction 190 Points 269 Age 23 Nov 14, 2020 #1 Attachments You do not have permission to view the full content of this post. Log in or register now.
R Red Satan Forum Veteran Elite Nov 14, 2020 #2 Ano ba meaning mo ng help para diyan? kami ba pinapagawa mo ng assigment mo na iyan o gagawa ka ng code at ipapacheck mo lang sa amin kung tama? Last edited: Nov 14, 2020
Ano ba meaning mo ng help para diyan? kami ba pinapagawa mo ng assigment mo na iyan o gagawa ka ng code at ipapacheck mo lang sa amin kung tama?
Z ZXCHkr Forum Veteran Nov 14, 2020 #3 Maglapag ka ng code mo para tignan namin kung may mali idol. Wag yung kami yung gagawa
J Jirachi2016 Eternal Poster Nov 15, 2020 TS TS #6 #include <iostream> using namespace std; struct customer { int cstmrnmber; char name[50]; char address; double contactno; double temp; } c[10]; int main() { cout << "Enter information of Customer:\n " << endl; for(int i = 0; i < 10; ++i) { c.cstmrnmber = i+1; cout << "For Customer number" << c.cstmrnmber << ",\n" << endl; cout << "Enter the name of Customer: "; cin >> c.name; cout << "Enter the Address of Customer: "; cin >> c.address; cout << "Enter Contact number: "; cin >> c.contactno; cout << "Enter the temperature:"; cin >> c.temp; cout << endl; } cout << "Displaying Information: " << endl; for(int i = 0; i < 10; ++i) { cout << "\nCustomer number: " << i+1 << endl; cout << "Name: " << c.name << endl; cout << "Address: " << c.address << endl; cout << "Contact number: " << c.contactno << endl; cout << "Enter the temperature:" << c.temp << endl; } return 0; }
#include <iostream> using namespace std; struct customer { int cstmrnmber; char name[50]; char address; double contactno; double temp; } c[10]; int main() { cout << "Enter information of Customer:\n " << endl; for(int i = 0; i < 10; ++i) { c.cstmrnmber = i+1; cout << "For Customer number" << c.cstmrnmber << ",\n" << endl; cout << "Enter the name of Customer: "; cin >> c.name; cout << "Enter the Address of Customer: "; cin >> c.address; cout << "Enter Contact number: "; cin >> c.contactno; cout << "Enter the temperature:"; cin >> c.temp; cout << endl; } cout << "Displaying Information: " << endl; for(int i = 0; i < 10; ++i) { cout << "\nCustomer number: " << i+1 << endl; cout << "Name: " << c.name << endl; cout << "Address: " << c.address << endl; cout << "Contact number: " << c.contactno << endl; cout << "Enter the temperature:" << c.temp << endl; } return 0; }
J Jirachi2016 Eternal Poster Nov 15, 2020 TS TS #7 bat kung nag input na po ako sa address biglang magtatapos sir
J Jirachi2016 Eternal Poster Nov 15, 2020 TS TS #8 #include <iostream> using namespace std; struct customer { int cstmrnmber; char name[50]; char address; double contactno; double temp; } c[10]; int main() { cout << "Enter information of Customer:\n " << endl; for(int i = 0; i < 10; ++i) { c.cstmrnmber = i+1; cout << "For Customer number" << c.cstmrnmber << ",\n" << endl; cout << "Enter the name of Customer: "; cin >> c.name; cout << "Enter the Address of Customer: "; cin >> c.address; cout << "Enter Contact number: "; cin >> c.contactno; cout << "Enter the temperature:"; cin >> c.temp; cout << endl; } cout << "Displaying Information: " << endl; for(int i = 0; i < 10; ++i) { cout << "\nCustomer number: " << i+1 << endl; cout << "Name: " << c.name << endl; cout << "Address: " << c.address << endl; cout << "Contact number: " << c.contactno << endl; cout << "Enter the temperature:" << c.temp << endl; } return 0; }
#include <iostream> using namespace std; struct customer { int cstmrnmber; char name[50]; char address; double contactno; double temp; } c[10]; int main() { cout << "Enter information of Customer:\n " << endl; for(int i = 0; i < 10; ++i) { c.cstmrnmber = i+1; cout << "For Customer number" << c.cstmrnmber << ",\n" << endl; cout << "Enter the name of Customer: "; cin >> c.name; cout << "Enter the Address of Customer: "; cin >> c.address; cout << "Enter Contact number: "; cin >> c.contactno; cout << "Enter the temperature:"; cin >> c.temp; cout << endl; } cout << "Displaying Information: " << endl; for(int i = 0; i < 10; ++i) { cout << "\nCustomer number: " << i+1 << endl; cout << "Name: " << c.name << endl; cout << "Address: " << c.address << endl; cout << "Contact number: " << c.contactno << endl; cout << "Enter the temperature:" << c.temp << endl; } return 0; }
H homer_simpson Eternal Poster Nov 16, 2020 #9 Issues: yung address is defined as char, so single char. yung contactno at temp defined as double, so not unless may input validation ka, mage-exit agad yan.
Issues: yung address is defined as char, so single char. yung contactno at temp defined as double, so not unless may input validation ka, mage-exit agad yan.