What's new

C & C++ ICT Proficiency Exam Hands On Exam HELP C++

onthego_ram

Journeyman
Joined
May 18, 2022
Posts
12
Reaction
1
Points
17
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?
 
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.
 
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++?
:)
 
Last edited:

Similar threads

Back
Top