🔒 Closed ICT Proficiency Exam Hands On Exam HELP C++

Status
Not open for further replies.
Good Day,
Patulong naman po ako sa mga naka pag take na ng hands on exam ng DICT proficiency Exam.
Gusto ko lng makahingi ng sample program na pinapagawa pag C++ ang piniling programming language.
Ito lang kasi kabisado ko.
Subukan kong sagutin/gawan ng program ang sample na i reply nyo dito.

maraming salamat.
Stay Awesome!
 
Print hello word using 1 variable of array, kailangan ganito ang format

H * * * * tapos, dapat isaisa
  • E * * * mag display yung
  • * L* * letters, everytime
  • * * L * na press ko ang
  • * * * O enter key
HAHAHAHAA, KAYA BA?
 
subukan ko lods, balikan ko keo.
Print hello word using 1 variable of array, kailangan ganito ang format

H * * * * tapos, dapat isaisa
  • E * * * mag display yung
  • * L* * letters, everytime
  • * * L * na press ko ang
  • * * * O enter key
HAHAHAHAA, KAYA BA?
salamat lodi sa exercise. nagwa ko din :)

#include <iostream>
using namespace std;
class hello{
public:
void helloAsterisk(char arrA[]){
for(int x=0;x<11;x++){
cin.ignore();
for(int y=0;y<11;y++){
if(x==y){
cout << arrA[x] << " ";
}else{
cout << "* ";
}
}
}
}
};
int main(){
hello myObj;
char arrA[11]={'h','e','l','l','o',' ','w','o','r','l','d'};
cout << "hit enter" << endl;

myObj.helloAsterisk(arrA);


return 0;
}

Number system conversions yata ang posibleng ipagawa. At practice ka rin ng file manipulation.
thanks sa advise idol.
ano naman IDE ang madalas ipagamit pagka C++ ang pinili?
tas console or GUI app po pinapagawa sa C++?
:)
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 3K
    Views
  • 3
    Participants
Last reply from:
onthego_ram

Online now

Members online
881
Guests online
896
Total visitors
1,777

Forum statistics

Threads
2,278,931
Posts
28,986,896
Members
1,226,663
Latest member
DeividOliveira1
Back
Top